Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
Some future release
-
None
Description
InnerXml() would return the text containing the current StartElement and all its children recursively
InnerText() would return only the child nodes inside the StartElement (not including itself)
Both functions should return a QString with the Xml, while pointing to the corresponding EndElement of the StartElement on which the function started.
I have already written these functions in my own class derived from QXmlStreamReader, and i don't have a problem submitting my code for review. If you want my code please just ask.
As far as I'm aware there is no easy way to do these seemingly routine tasks without using the full-blown XML library. This would eliminate the dependency on the Dom objects because you could quickly iterate through child objects using the streamreader.