Community
    • Login

    XML pretty print not working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.3k Views
    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.
    • HaoH
      Hao
      last edited by

      Hi,

      I’m using Notepad++ 7.7.1 with XML Tools Plugin 3.1.1.1

      I’m unable to get pretty print to work. The input XML is a single line and it’s shown with pretty format in a browser. In Notepad++ it’s shown as 3 lines

      <?xml version=“1.0”?>[CR][LF]
      The node is neither valid nor invalid because no DTD/Schema declaration was found
      XML content

      Note the [CR][LF] at the end of the first line

      How could I fix it? I can’t upgrade it

      Thanks

      gerdb42G 1 Reply Last reply Reply Quote 0
      • gerdb42G
        gerdb42 @Hao
        last edited by

        @Hao Please note the following hints to formatting in this forum. There you can find how to mark text to be inserted literally and thus avoiding to get it mangled by the forum software.

        The CR LF is most likely shown because you have activated the option to show special characters which are normally invisible. Just hit the Pilcrow Symbol (“¶”) in the toolbar to disable.

        In the XMLTools Menu disable the Option “Enable auto Validation” and reload the file. That should prevent the other lines form appearing.

        Your version of Notepad++ is pretty outdated. Maybe you should ask your Admin about possibilities to update.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors