Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   xml file reading (http://www.go4expert.com/forums/xml-file-reading-t1448/)

harish13 21Sep2006 11:47

xml file reading
 
hi,
i have a xml file like this

<detail>
<person>
<name>kshd</name>
<age>22</age>
</person>
<person>
<name>kshdrerewr</name>
<age>24</age>
</person>
</detail>

i opened this file using fopen and read some 2KBs into a buffer.
what i want to do is i want to set the pointer to "person"(first occurance).

shabbir 21Sep2006 13:03

Re: xml file reading
 
Loop through the characters read till you find <person as the characters.


All times are GMT +5.5. The time now is 14:27.