XML Beautifier.
-
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
-
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
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
-
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
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 -
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 Bloghttp://xmlcooktop.com/[^] Davy
My Personal Blog - Homepage.
Scottish News - Angus Blog, Perth Blog and Dundee Blog -
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
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)
-
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