Hi, I have the following record structure in xml documents. My intention is to get <Metadata> nodes with value "dc.Title" on "name" attribute. Then I wanto to make a copy of the selected <Metadata> element, rename them to <MetadataNoDiacritics> (or mark them with an attribute for later retrieval) and append them back on its appropriate place on the tree structure.
I have tried with elementtree findall and I can retrieve the nodes I need but I can't rename them and append them back to the original structrue. Thanks for help.
I have tried with elementtree findall and I can retrieve the nodes I need but I can't rename them and append them back to the original structrue. Thanks for help.
<DirectoryMetadata>
<FileSet>
<FileName>1948\.pdf</FileName>
<Description>
<Metadata mode="accumulate" name="dc.Title"> Títle with diácritics</Metadata>
<Metadata mode="accumulate" name="dc.Creator">Smith, Ronald</Metadata>
<Metadata mode="accumulate" name="dc.Date">1949</Metadata>
<Metadata mode="accumulate" name="dc.Relation^isPartOf">Journal </Metadata>
</Description>
<FileSet>
<DirectoryMetadata>