Help for an XML novice: I have a set of individual XML files/records. I want to extract the value of two or three elements in each record and export those to, e.g. a CSV.
Can I do this with XPath?
@The_BFOOL XPath + XSLT can do this, but XPath alone just points at the elements.
@anj @platypus something in Python would actually be perfect - in context, we already have a Python script (written by former student) that takes software objects based on an input ID and creates XML records for EaaSI, including a newly-generated UUID.
The UUID is what actually shows up in our platform, so I want that ID->UUID pairing to match precisely what I'm looking at. Incorporating a new snippet into the existing script would be way more efficient than adding another step!
@The_BFOOL @anj threw this together super quick https://gist.github.com/ruthtillman/8f0224eeb51df47b2fd5ef8ad542746b
it's mostly about the XML parsing part. Gotta run to a meeting.
digipres.club is a space for folks interested in productive conversations about, well, digital preservation! If you enjoy talking about how to do memory work with computers, or even with cardboard boxes of old photos, you belong with us on digipres.club. Many of us are/were Twitter users looking for an inclusive and community supported approach to social media. If any of these things sound good to you, consider joining us now.