Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    [SOLVED]QXmlStreamWriter::writeCharacters write ">" as &gt

    General and Desktop
    2
    3
    626
    Loading More Posts
    • 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.
    • saeedhardan
      saeedhardan last edited by

      As the title say and as written in the documentation :
      [quote]
      Writes text. The characters "<", "&", and """ are escaped as entity references "<", "&, and """. To avoid the forbidden sequence "]]>", ">" is also escaped as ">".
      [/quote]

      How to prevent that and make QXmlStreamWriter::writeCharacters writes > not &gt ?

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        AFAIK, you can't. Characters are being escaped to make sure that the resulting XML code is valid.

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • saeedhardan
          saeedhardan last edited by

          ohhh o.O , wow i thought i'm in a pinch, but i verified with my boss that its ok to do so , apparently its ok becuase they do this too .
          thanks a lot .

          1 Reply Last reply Reply Quote 0
          • First post
            Last post