Forum Discussion
hgorina
10 years agoFrequent Visitor
import (filter) xml nodes by node name
I have multiple XML files witn variety of data stored in them. i need to create tables based on the node names. The data contained in a different nodes of XML file is quite different here is ...
- 10 years ago
Not quite sure about your requirement, if you'd like to load the elements table by name but not sequentially(0,1,2 etc), you can try
let Source = Xml.Tables(File.Contents("C:\Users\user1\Desktop\1.XML")), Table2 = Source{[Name="User"]}[Table] in Table2
Eric_Zhang
Microsoft Employee
10 years agoNot quite sure about your requirement, if you'd like to load the elements table by name but not sequentially(0,1,2 etc), you can try
let
Source = Xml.Tables(File.Contents("C:\Users\user1\Desktop\1.XML")),
Table2 = Source{[Name="User"]}[Table]
in
Table2
hgorina
10 years agoFrequent Visitor
thanks!
It worked.
perhaps I need to clarify the task:
in multiple XMLs I am working with, some tables exist in all of them, and some tables exist in just some XMLs. Also, the table sequence order is not the same in some of them. that is why it was omportatn to get them by name
many thanks again:)