I have a xml file. I have “Attributes” tag in “UiTree”->“UiTreeNode”->“Children”->“Attributes” (Even though their is a “Attributes” tag in “UiTree”->“UiTreeNode” I don’t need it.). So in this “Attributes” tag I have multiple “Attribute” tags with a attribute inside it. Now I want the values aria-label and text attribute values present in attribute tag which is in i.e., from each “Attributes” I want to extract aria-label and text simultaneously. Some times text might not be present (aria-label is present always) at that time I want it to display as an empty string. Can anyone help with this? (The below attachment is the xml file that I am using.)
Sorry @ sven.wullum1 I didn’t get a clear understanding from it. And here aria-label and text are attributes of “Attribute” tag so I need the values of a attribute not the text between the tags
I have iterated through the output of XPath and created a list of values for the aria tag, But you can manipulate it according to your need with this as reference.
@Gautham_Pattabiraman Thank you for offering help! I actually got solution from @ppr comment. But I appreciate your willingness to assist. If you want to give me another solution you are always welcome