Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXmlStreamReader split xml
Forum Updated to NodeBB v4.3 + New Features

QXmlStreamReader split xml

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 797 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    estanisgeyer
    wrote on last edited by
    #1

    I have an XML file that I read with QXmlStreamReader, but in the need to split the structure and content of an xml node and children. I like doing this with QXmlStreamReader or do I have to use QDomDocument?

    Thanks,

    Marcelo

    Marcelo Estanislau Geyer
    Standard Net Tecnologia / Brazil

    1 Reply Last reply
    0
    • P Offline
      P Offline
      panosk
      wrote on last edited by
      #2

      Hi,

      By "split the structure and content of an xml node and children" you mean you want to write these in a separate xml file, removing them from your original file? In that case, you could probably use two QXmlStreamWriters along with your QXmlStreamReader to write two new xml files. That can get a little messy, so QDomDocument could probably be more convenient.

      If by splitting you mean that you want to restructure your xml file (create new nodes, etc), then you would need one QXmlStreamWriter while reading your original file.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved