Hi,
I am trying to read and XML file with a structure similar to the snippet below.
<Top Element>
<Element 1>True</Element 1>
<Element 2>True</Element 2>
<Element 3>False</Element 3>
</Top Element>
I know how to use the Parse XML by calling out the element names but in the document I have there are hundreds of different element names that I don't want to call out specifically in my code. I understand that you can grab the Attribute info for each of these using the Text() like the following
info = "";
Parse XML(xml,
On Element("Top Element",
Text( info= info|| Trim( XML Text() ) || " " )
)
);
With the result of info being "True True False" which I could then parse into a list. But I don't really want to use this code for as I would not be able to easily know what the value of False actual belongs to. Is there anyway of getting all the Elements of an XML file and then maybe recursively calling the Parse XML function on those elements to get their attribute info?
Thanks,
Brandon