I can loop through the nodes and pull content out of the xml that is in brackets i.e. <name>John</name>.
How do I pull something like this: <name Pagenum="2">John</name> and basically pull only the name where pagenum=2.
Here is part of the actual xml file:
---------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
- <course>
+ <globalInfo>
<courseName>"Q-20"</courseName>
<uiPath>"Interface/[fileName]"</uiPath>
<graphicsPath>"media/"</graphicsPath>
<templatesPath>"templates/[templateName]"</templatesPath>
<dataPath>"data/"</dataPath>
</globalInfo>
- <topics>
- <topic orderID="1">
- <pages>
+ <pageData pageNum="1">
<fileName>"AN_AQS_20AMDS-AAA-A20-00-00-0000-001A-T.xml"</fileName>
<templateName />
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
- <pageData pageNum="2">
<fileName>DMC-AN_AQS_20AMDS-AAA-A20-00-00-0002-041A-T.xml</fileName>
<templateName>splitpane.swf</templateName>
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
- <pageData pageNum="3">
<fileName>DMC-AN_AQS_20AMDS-AAA-A20-00-00-0003-018A-T.xml</fileName>
<templateName />
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
---------------------------
Thanks in advance!
How do I pull something like this: <name Pagenum="2">John</name> and basically pull only the name where pagenum=2.
Here is part of the actual xml file:
---------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
- <course>
+ <globalInfo>
<courseName>"Q-20"</courseName>
<uiPath>"Interface/[fileName]"</uiPath>
<graphicsPath>"media/"</graphicsPath>
<templatesPath>"templates/[templateName]"</templatesPath>
<dataPath>"data/"</dataPath>
</globalInfo>
- <topics>
- <topic orderID="1">
- <pages>
+ <pageData pageNum="1">
<fileName>"AN_AQS_20AMDS-AAA-A20-00-00-0000-001A-T.xml"</fileName>
<templateName />
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
- <pageData pageNum="2">
<fileName>DMC-AN_AQS_20AMDS-AAA-A20-00-00-0002-041A-T.xml</fileName>
<templateName>splitpane.swf</templateName>
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
- <pageData pageNum="3">
<fileName>DMC-AN_AQS_20AMDS-AAA-A20-00-00-0003-018A-T.xml</fileName>
<templateName />
- <navText>
"Click
<I>Next</I>
to continue"
</navText>
</pageData>
---------------------------
Thanks in advance!