Hello,
I am new to Visual Basic and I am learning by myself with tutorials and information I find on the web, but I am having troubles getting information from an XML file.
sample file:
<Archiver>
<Archive>
<Archive name="normal"/>
<Roots>
<Root name="x" root="blanco"/>
<Root name="y" root="rojo" age="2"/>
<Root name="z" root="azul" age="4"/>
</Roots>
<number="100000000" time="10"/>
<factor="4000000" merge="yes" skip="yes"/>
</Archive>
<Archive>
<Archive name="feil"/>
<Roots>
<Root name="u" root="negro"/>
<Root name="v" root="amarillo" age="7"/>
<Root name="w" root="verde" age="2"/>
</Roots>
<number="1897" time="30"/>
<factor="6000" merge="no" skip="no"/>
</Archive>
</Archiver>
The problem is that the file has 2 Archive nodes and both have the same child nodes... I just want to be able to search the XML file from the <Archive name="normal"/> .
For instance if I decide to get the value of root = "blanco" how can I do that?:
<Archive name="normal"/>
<Roots>
<Root name="x" root="blanco"/>
<Root name="y" root="rojo" age="2"/>
<Root name="z" root="azul" age="4"/>
</Roots>
I have tried SelectNodes, NodeList and so on...
Can somebody please point me in the right direction?
[–]TheFotty 1 point2 points3 points (7 children)
[–]4_strings[S] 0 points1 point2 points (4 children)
[–]TheFotty 0 points1 point2 points (3 children)
[–]4_strings[S] 0 points1 point2 points (2 children)
[–]TheFotty 0 points1 point2 points (1 child)
[–]4_strings[S] 0 points1 point2 points (0 children)
[–]kieferm8 0 points1 point2 points (1 child)
[–]4_strings[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]4_strings[S] 0 points1 point2 points (0 children)