469,307 Members | 2,064 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

How to Go to the Last Tag of an XML File.

Dear Forum Members
I am giving an XML Format.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<XML-SSDFILELIST>
<Training>
<a1.LABELNAME><![CDATA[BRKCD_STMNSWTINVIN_C]]></a1.LABELNAME>
<a1.KEY><![CDATA[6707]]></a1.KEY>
<a1.FINISHED><![CDATA[This is a Finished data ]]></a1.FINISHED>
<a1.CONTACT-NUMBER><![CDATA[This is a CONTACT-NUMBER data ]]></a1.CONTACT-NUMBER>
<a1.DEFAULT></a1.DEFAULT>
<a1.MIN></a1.MIN>
<a1.MAX></a1.MAX>
<a1.UNIT></a1.UNIT>
<a1.FORMULA></a1.FORMULA>
<a1.FORMULA-DESC></a1.FORMULA-DESC>
<a1.ADVANCED-FORMULA></a1.ADVANCED-FORMULA>
<a1.INTERNAL-ADAPT-DESC></a1.INTERNAL-ADAPT-DESC>
<a1.DATA-DESC-REPORT></a1.DATA-DESC-REPORT>
<a1.REV-DESC></a1.REV-DESC>
</Training>
<Training>
<a2.LABELNAME><![CDATA[BRKCD_STREDSWTINVIN_C]]></a2.LABELNAME>
<a2.KEY><![CDATA[6708]]></a2.KEY>
<a2.FINISHED><![CDATA[This is a Finished data ]]></a2.FINISHED>
<a2.CONTACT-NUMBER><![CDATA[This is a CONTACT-NUMBER data ]]></a2.CONTACT-NUMBER>
<a2.DEFAULT></a2.DEFAULT>
<a2.MIN></a2.MIN>
<a2.MAX></a2.MAX>
<a2.UNIT></a2.UNIT>
<a2.FORMULA></a2.FORMULA>
<a2.FORMULA-DESC></a2.FORMULA-DESC>
<a2.ADVANCED-FORMULA></a2.ADVANCED-FORMULA>
<a2.INTERNAL-ADAPT-DESC></a2.INTERNAL-ADAPT-DESC>
<a2.DATA-DESC-REPORT></a2.DATA-DESC-REPORT>
<a2.REV-DESC></a2.REV-DESC>
</Training>
</XML-SSDFILELIST>

I want to know how to go to the Last Node of the XML File
Here it is Training and How to read the a2.LABELNAME.

Regards
Madhu K
Jul 3 '07 #1
1 1083
Motoma
3,237 Expert 2GB
What node do you consider the last node? Typically, it is bad practice to rely on data coming in a certain order, as that is contrary to XML's purpose. The best way would be to search for the particular node name you are looking for using the various XML tools you are given.
Jul 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Eric Lilja | last post: by
35 posts views Thread by RyanS09 | last post: by
7 posts views Thread by DemonWasp | last post: by
6 posts views Thread by magix | last post: by
6 posts views Thread by =?Utf-8?B?VGhvbWFzWg==?= | last post: by
8 posts views Thread by gregpinero | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.