I have a QByteArray postData...WHere the postData contains data like dis
"<?xml version="1.0"?>
<EntryGateDetails>
<EntryDate>2013-01-05 12:49</EntryDate>
<UserID>35199</UserID>
</EntryGateDetails>
Now how can i parse these...?
Printable View
I have a QByteArray postData...WHere the postData contains data like dis
"<?xml version="1.0"?>
<EntryGateDetails>
<EntryDate>2013-01-05 12:49</EntryDate>
<UserID>35199</UserID>
</EntryGateDetails>
Now how can i parse these...?
Load this QByteArray in to a QDomDocument, and read the childred (QDomElements), and then the tag names (EntryGateDetails, EntryDate, UserID, etc..)
Or use QXmlStreamReader.