Kvark Absent Member.
Absent Member.
555 views

Parse XML list?

Hello, I have a list of system status that comes in such format:

<set1>
<key1>
     A
</key1>
<key2>
     A
</key2>
<key3>
     B
</key3>
<key4>
     A
</key4>
<keyX>
     A/B
</keyX>
</set1>
<set2>
...
</set2>

and I would like to got new xml list of same structure but need to check values of that keyN and if its A then not include it to the new list - how I could do that with a flow? I find XML related operations but not get how to combine them to gether to make this idea happend, any help or example, someone? 

 

=-=-=-=-=-=-=-=-=-=-=-=--=-=
In wine wisdom!
In the beer force!
In water, the microbes...
Labels (1)
Tags (1)
0 Likes
2 Replies
Esme Absent Member.
Absent Member.

Re: Parse XML list?

Did you ever sort this out?  I have found the OO XPath/XML tools to be quite fiddly and have often resorted to scriptlets to do this sort of thing.  It is more effort, but more predictable, in my experience.

Kvark Absent Member.
Absent Member.

Re: Parse XML list?

Not sorted, but was switch to another project so this currently stay unsorted 😞 I have been saw thise directives for work with XML sections - but dont get it how to use it, maybe need to play wioth that alone, was expected somebody provide atleast example flow for easy start, but seems not 🙂 

=-=-=-=-=-=-=-=-=-=-=-=--=-=
In wine wisdom!
In the beer force!
In water, the microbes...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.