Results 1 to 2 of 2

Thread: XML processing instruction

  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default XML processing instruction

    Hello, i have to create an XML file, i start with this new processing instruction

    Qt Code:
    1. QDomNode xmlNode = XMLDomDocumentList.createProcessingInstruction ( "!DOCTYPE" , "RDPClientSettingsConfigFile" );
    2. XMLDomDocumentList.insertBefore ( xmlNode , XMLDomDocumentList.firstChild() );
    To copy to clipboard, switch view to plain text mode 
    the results is:
    Qt Code:
    1. <?!DOCTYPE RDPClientSettingsConfigFile?>
    To copy to clipboard, switch view to plain text mode 
    is there a way to remove "?" in the processing instruction?
    I'd like to have a results like this:
    Qt Code:
    1. <!DOCTYPE RDPClientSettingsConfigFile>
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: XML processing instruction

    I don't think this would be a processing instruction anymore, would it?

  3. The following user says thank you to wysota for this useful post:

    mattia (26th February 2008)

Similar Threads

  1. QThread and QEventLoop - Idle Processing
    By kloffy in forum Newbie
    Replies: 14
    Last Post: 28th April 2011, 11:41
  2. Replies: 4
    Last Post: 20th February 2007, 12:35
  3. Delays in processing events
    By Caius Aérobus in forum Qt Programming
    Replies: 6
    Last Post: 7th April 2006, 12:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.