Forum Discussion

hgorina's avatar
hgorina
Frequent Visitor
10 years ago
Solved

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 ...
  • Eric_Zhang's avatar
    10 years ago

    hgorina

    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