473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

4 New Member
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 1131
Motoma
3,237 Recognized Expert Specialist
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

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

Similar topics

6
2256
by: Carol | last post by:
With ASP, I am generating a huge CSV file. It is to large to open in notepad. Can I use the Filesystem Scripting Object to read the very last line of the file and delete the very last...
2
3801
by: Eric Lilja | last post by:
Hello, I'm writing a simple program that upon start-up needs to open a text file and read a value on the last line. Then all other accesses to the file will be writes (at the end of it). I'm having...
4
7368
by: Andyza | last post by:
I'm using FileSystemObject to open and write to a tab delimited text file. First, I connect to a database and select some data. Then I create the text file and insert each record in the text...
35
11334
by: RyanS09 | last post by:
Hello- I am trying to write a snippet which will open a text file with an integer on each line. I would like to read the last integer in the file. I am currently using: file = fopen("f.txt",...
7
25855
by: DemonWasp | last post by:
I've been having some trouble getting the Scanner class to operate the way I'd like. I'm doing some fairly basic file IO and I can't seem to get the class to load the last line/token any way I try....
6
5766
by: magix | last post by:
Hi, when I read entries in file i.e text file, how can I determine the first line and the last line ? I know the first line of entry can be filtered using counter, but how about the last line...
3
7154
by: RAMohrmann | last post by:
Greetings, I am attempting to view all files in a directory and if those files have not been modified within the last couple days I will remove them. In order to do this I need to look at the...
6
5778
by: =?Utf-8?B?VGhvbWFzWg==?= | last post by:
Hi, Is it possible to read a file in reverse and only get the last 100 bytes in the file without reading the whole file from the begining? I have to get info from files that are in the last 100...
9
59309
by: mazen.s.m | last post by:
I have been trying to find a way to get the Domain and UserName of the user that last modified a file. I know how to get the owner of the file via WMI or Win32, but I can't find a way to get the...
8
1984
by: gregpinero | last post by:
I'm running code via the "exec in context" statement within a much larger program. What I would like to do is capture any possible errors and show a pretty traceback just like the Python...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.