Results 1 to 6 of 6

Thread: innerText in an XML file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Qt products
    Qt3
    Platforms
    Windows
    Thanks
    53

    Default innerText in an XML file

    hello, with C# xml library I'm reading a xml file that contains this:
    "http://www.ggggg/fff&hello";
    Qt Code:
    1. While (xmlReader) {
    2. if (link)
    3. string link = reader.Value; //link now hasn't "amp;"
    4. }
    5. XMLWriter my_xml_writer;
    6. myTag.InnerText = link; //here problem
    7. write_to_file_as_xml
    To copy to clipboard, switch view to plain text mode 
    Above, innerText take the right thing(without "amp;") but the output file has "&". I note (debugging) that myTag has also one other property: innerXML that it contains the "&".
    I guess, xml library, seeing a '&' add automatically a 'amp;' after &;
    I need to read from a file that has "&" and write to output file as "&" only. Is there a solution, please?

    thanks.
    Last edited by mickey; 22nd January 2008 at 17:13.
    Regards

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Replies: 2
    Last Post: 8th November 2007, 20:15
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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
  •  
Qt is a trademark of The Qt Company.