There is a variable szData = new char [qnSize]; which contains XML data accepted from the client. How to transfer it in XML parser?
There is a variable szData = new char [qnSize]; which contains XML data accepted from the client. How to transfer it in XML parser?
There are many ways to achieve that :
Isn't it amazing to see how much thing you can do with Qt and how many different ways, each suiting a different purpose, are available to do a single task?
- Create a QDocument and feed it through QDocument::setContent() then you can iterate over the node structure starting from QDomDocument::documentElement()
- Create a QXmlInputSource, fill it with QXmlInputSource::setData() and pass it to a QXmlReader
- (!needs Qt 4.3!) setup a QXmlStreamReader and feed it through QXmlStreamReader::addData()...
![]()
Current Qt projects : QCodeEdit, RotiDeCode
Bookmarks