Home » U++ Library support » U++ Core » how to check specific end tag in a xml file?
how to check specific end tag in a xml file? [message #35785] |
Wed, 21 March 2012 11:57  |
ayana
Messages: 16 Registered: November 2011
|
Promising Member |
|
|
Hi All,
How to check for a specific end tag in the large XML file while parsing it?
Suppose the file is,
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE AddressBook>
<AddressBook>
<person>
<name>qw</name>
<surname>we</surname>
<address>we</address>
<email>er</email>
</person>
<person>
<name>rer</name>
<surname>ty</surname>
<address>ui</address>
<email>io</email>
</person>
<person>
<name>oo</name>
<surname>jlj</surname>
<address>bh</address>
<email>cft</email>
</person>
</AddressBook>
The user enters a name in an edit field of GUI, if the name entered matches with the gathered text of 'name tag' the corresponding person details should get add to XMLTree.
For Example:
while(! p.End)
{
if ( p.Tag ( "person" ))
{
if ( p.Tag ( "person" ))
{
if ( p.Tag ( "name" ) )
{
if( editfield.name==p.ReadText())
{
Add that "<person> to </person>" details to XmlTree
}
}
}
}
}
Thanks in Advance,
-Ayana
|
|
|
Goto Forum:
Current Time: Tue Apr 29 15:59:55 CEST 2025
Total time taken to generate the page: 0.01171 seconds
|