xml file reading

Go4Expert Member
21Sep2006,11:47   #1
harish13's Avatar
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).
Go4Expert Founder
21Sep2006,13:03   #2
shabbir's Avatar
Loop through the characters read till you find <person as the characters.