Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
ayana is currently offline  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



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ParseXML intermittent crash
Next Topic: bug in http.cpp
Goto Forum:
  


Current Time: Fri Apr 26 05:06:37 CEST 2024

Total time taken to generate the page: 0.03650 seconds