Hi all,
I want to return the value where attribute is 15, from the xml data below. Is there a way i can search the xml and find 'attr num = 15' and then return the value. I would sooner search for the 'attr num = 15' rather than locate it with the path e.g. \MyCompoundDocument\MyAttributes\.. etc.. because this path may change in the future.
Code:<?xml version="1.0" encoding="UTF-8"?> <MyCompoundDocument xmlns=""> <MyAttributes> <Group class="system" name="System" desc="These attributes describe the My system used to create this file." ord="8"> <Attr num="13" name="Language" desc="My language code." type="i" ord="1" value="0"> <Valid perm="r"/> </Attr> <Attr num="14" name="Licence" desc="My licence code." type="s" ord="2" value="9735-8923-3075-8201-3618-0243"> <Valid perm="r"/> </Attr> <Attr num="15" name="Build" desc="My software build." type="s" ord="3" value="2023.1.2323"> <Valid perm="r"/> </Attr> </Group> <Group class="custom"




Reply With Quote
