Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML Beautifier.

XML Beautifier.

Scheduled Pinned Locked Moved XML / XSL
c++questioncsharpvisual-studioxml
6 Posts 5 Posters 0 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    cagey
    wrote on last edited by
    #1

    Does anyone know of a good beautifier for XML that works with Visual Studio? Unfortunately, for now I am stuck with Visual C++ 6.0, but I would like to use it to edit XML, and most of the XML I am working with is poorly formatted (actually, all one line). I guess a reasonable follow up question would be, does anyone know of a good XML editor (that doesn't cost much)? But I would really prefer to do my editing in Dev Studio, so a plugin is still preferable. Thanks, Cagey

    G B D 3 Replies Last reply
    0
    • C cagey

      Does anyone know of a good beautifier for XML that works with Visual Studio? Unfortunately, for now I am stuck with Visual C++ 6.0, but I would like to use it to edit XML, and most of the XML I am working with is poorly formatted (actually, all one line). I guess a reasonable follow up question would be, does anyone know of a good XML editor (that doesn't cost much)? But I would really prefer to do my editing in Dev Studio, so a plugin is still preferable. Thanks, Cagey

      G Offline
      G Offline
      G Steudtel
      wrote on last edited by
      #2

      Hi, I don't know about a beautifier, but have a look at www.firstobject.com, there will be an inexpensive (no cost) xml editor. Regards G. Steudtel

      D 1 Reply Last reply
      0
      • G G Steudtel

        Hi, I don't know about a beautifier, but have a look at www.firstobject.com, there will be an inexpensive (no cost) xml editor. Regards G. Steudtel

        D Offline
        D Offline
        Davy Mitchell
        wrote on last edited by
        #3

        I use cooktop (I think thats the name!) and it is excellent. It formats and validates XML, XSL etc. Davy
        My Personal Blog - Homepage.
        Scottish News - Angus Blog, Perth Blog and Dundee Blog

        D 1 Reply Last reply
        0
        • D Davy Mitchell

          I use cooktop (I think thats the name!) and it is excellent. It formats and validates XML, XSL etc. Davy
          My Personal Blog - Homepage.
          Scottish News - Angus Blog, Perth Blog and Dundee Blog

          D Offline
          D Offline
          Davy Mitchell
          wrote on last edited by
          #4

          http://xmlcooktop.com/[^] Davy
          My Personal Blog - Homepage.
          Scottish News - Angus Blog, Perth Blog and Dundee Blog

          1 Reply Last reply
          0
          • C cagey

            Does anyone know of a good beautifier for XML that works with Visual Studio? Unfortunately, for now I am stuck with Visual C++ 6.0, but I would like to use it to edit XML, and most of the XML I am working with is poorly formatted (actually, all one line). I guess a reasonable follow up question would be, does anyone know of a good XML editor (that doesn't cost much)? But I would really prefer to do my editing in Dev Studio, so a plugin is still preferable. Thanks, Cagey

            B Offline
            B Offline
            Blake Coverett
            wrote on last edited by
            #5

            Certainly not a plugin, though you could add it to your tools menu easily enough. This is what I use:

            using System.IO;
            using System.Xml;
            class FormatXml {
            static void Main(string[] args) {
            XmlTextReader r = new XmlTextReader(args[0]);
            XmlTextWriter w = new XmlTextWriter(new StreamWriter(args[1]));
            r.WhitespaceHandling = WhitespaceHandling.None;
            w.Formatting = Formatting.Indented;
            w.Indentation = 1;
            w.IndentChar = '\t';
            w.QuoteChar = '\'';
            w.WriteNode(r, false);
            w.Close();
            }
            }

            Adjust the Indentation, IndentChar and QuoteChar properties to match your tastes. -- -Blake (com/bcdev/blake)

            1 Reply Last reply
            0
            • C cagey

              Does anyone know of a good beautifier for XML that works with Visual Studio? Unfortunately, for now I am stuck with Visual C++ 6.0, but I would like to use it to edit XML, and most of the XML I am working with is poorly formatted (actually, all one line). I guess a reasonable follow up question would be, does anyone know of a good XML editor (that doesn't cost much)? But I would really prefer to do my editing in Dev Studio, so a plugin is still preferable. Thanks, Cagey

              D Offline
              D Offline
              dog_spawn
              wrote on last edited by
              #6

              Frontpage 2003 (ick!) beautifies XML. It is a very poor XML editor though (no surprise eh?).

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups