Hello,
while I'm parsing a XML file (xmlreader) I must create an object (MYXML) that represent it; I was thinking something about this:
Qt Code:
  1. <xml>
  2. <body>
  3. <book>
  4. <title> Hello </title>
  5. </book>
  6. </body>
  7. <xml>
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. class MYXML {
  2. private Elementroot = new Element();
  3. public MYXML() { }
  4.  
  5. public class Element {
  6. String text;
  7. List<Attribute> att = new List<Attribute>(); //can be empty
  8. List<Element> childs = List<Element> (); //can be empty
  9. }
  10.  
  11. public class Attribute {
  12. String name = null;
  13. String value = null;
  14. }
  15. }
To copy to clipboard, switch view to plain text mode 
Can be fine? Do you know where can I find an example of this thing? I saw a QT class that implements exactly what I want to do but I can't find it.
thanks