Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9752

Add "InnerXml()" and "InnerText()" functions to XmlStreamReader

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            karagog George Karagoulis
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes