Results 1 to 3 of 3

Thread: interpreting "

  1. #1
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default interpreting "

    Hi..
    I would like to generate an Xml file from a text file that contains data ..
    But I have a problem with how to interpret the " inside an xml text:
    for example :


    Qt Code:
    1. QFile coordinates("coordinates.xml") ;
    2. coordinates.open(QIODevice::WriteOnly | QIODevice::Text);
    3. coordinates.write("<?xml version="1.0+" encoding="utf-8" ?>");
    To copy to clipboard, switch view to plain text mode 

    <?xml version="1.0+" encoding="utf-8" ?> contains many " that beaks the String I wanna put !!! So r there a way to interpret that " ..or to put its asci code ..

    if some one could help !! thanks
    Last edited by jpn; 20th May 2008 at 21:34. Reason: missing [code] tags

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: interpreting "

    J-P Nurmi

  3. #3
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: interpreting "

    Oups i find how .. I could just use \" ... thanks

Similar Threads

  1. Replies: 9
    Last Post: 12th July 2011, 22:14

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.