Questions tagged [xml-formatting]

82 questions
226
votes
12 answers

Free XML Formatting tool

Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly? Thanks Edit ~ I am using XML Notepad on Windows XP.
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
20
votes
4 answers

Writing formatted XML with XmlWriter

I'm trying to write to an XML file to the isolated storage but I would like to format it like this:-
None
  • 203
  • 1
  • 2
  • 5
15
votes
7 answers

Is there a stylesheet or Windows commandline tool for controllable XML formatting, specifically putting attributes one-per-line?

I am searching for an XSLT or command-line tool (or C# code that can be made into a command-line tool, etc) for Windows that will do XML pretty-printing. Specifically, I want one that has the ability to put attributes one-to-a-line, something…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
15
votes
4 answers

How to format XML document in Linux

I have following XML tags in a large number. sh_SEET15002GetReKeyDetails 642 I want to get this formatted in the following manner. I have tried using xmllint but it is not working for me. Please provide…
Aditya
  • 151
  • 1
  • 1
  • 3
14
votes
2 answers

XML formatting Indentation Tags Matching - Linux

I have an XML file whose format is quite compressed and all tags are stick together like…
HardCode
  • 1,613
  • 4
  • 21
  • 42
8
votes
5 answers

Format XML file in c++ or Qt

I have an XML file where outputs are not getting formatted. That means all the outputs are in a single line but I want to break it tag by tag. For e.g. -
Viku
  • 2,845
  • 4
  • 35
  • 63
7
votes
3 answers

Tools to format XML in Visual Studio 2010

Is there an XML formatter available as an add-in for Visual Studio 2010? I am currently using Notepad++ and using the XML Tools plug-in to get the formatting sorted. Is there an add-in for VS2010, which will do something similar?
abhi
  • 3,082
  • 6
  • 47
  • 73
7
votes
2 answers

Export the Eclipse XML Formatting Rules?

Is there a way to export the settings defined in Window > Preferences Dialog under XML > XML Files > Editor in Eclipse 3.5 Galileo (Java EE Package)? And where do Eclipse stores these settings? Now i got an eclipse_xml_format.epf with the following…
Christopher Klewes
  • 11,181
  • 18
  • 74
  • 102
6
votes
1 answer

How to remove schema node in web api if return format is xml?

I have a web api method that takes format as a parameter that provides returning both xml and json.The data type that method return is DataTable.In json format everything looks fine but in xml format the schema of datatable and some other attributes…
mr.
  • 679
  • 12
  • 30
6
votes
2 answers

SQL Server XML Query formatting

When I query SQL Server with a FOR XML statement, I get the expected the result in the following format...that is without proper indentation --- 11112222 How do I format this …
GilliVilla
  • 4,998
  • 11
  • 55
  • 96
5
votes
2 answers

XML formatting in java - Mainting the state indent

I have an XML file that I open and edit few attributes in the node and then save it back, but due to some reason whatsoever the saved XML's are not indented properly as the one before. Here my code through which I save the XML file: …
spaniard89
  • 307
  • 1
  • 6
  • 18
4
votes
1 answer

Is there a way to pretty print XML with vertical alignment?

I have a config file which has some XML like: I would like to have a pretty printer…
brianegge
  • 29,240
  • 13
  • 74
  • 99
4
votes
2 answers

Need help in formatting JAXB output

I have some objects let's say two, A and B. These objects from the same class. I need to marshal these objects using JAXB and the output XML should be in this form: an id an id
Osama FelFel
  • 1,511
  • 2
  • 15
  • 17
3
votes
2 answers

How to perform XML style checking?

Unformatted XML is a problem in our build. I would like to include style checking for XML documents, primarily looking for poor indentation. What is the best tool to use? (The build uses Ant).
Synesso
  • 37,610
  • 35
  • 136
  • 207
3
votes
1 answer

Geographical identification location (GeoLocation/GeoTag) in SVG

I am wondering how to geotag SVG maps. My search results Geotags are available in metadata formats such as Exif, XMP and GeoTIFF. There is even a geotag for SMS (based on "geo:" URI) But there is no geotags in SVG standard. And not found…
oHo
  • 51,447
  • 27
  • 165
  • 200
1
2 3 4 5 6