Solved

Online Tool to create a Canocalization of XML

Posted on 2014-09-04
6
1,746 Views
Last Modified: 2014-09-10
Does anyone know of an online tool that will provide canonicalization of an XML file ?

Thanks
0
Comment
Question by:Anthony Lucia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 45

Assisted Solution

by:aikimark
aikimark earned 250 total points
ID: 40305491
Format your XML here and select the compact option.
http://www.freeformatter.com/xml-formatter.html

Le me know if it doesn't do everything you need.
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 250 total points
ID: 40306117
Hi Anthony,

Depend on what you like to do, a simple validation?
or a complete check against the corresponding XSD?

Notepad++ with the XML Plugin is a nice tool fot XML logical validation.
for the XML vs. XSD check there are some nice Online checkers.
e.g. http://devutilsonline.com/xml/validate
0
 
LVL 36

Expert Comment

by:mccarl
ID: 40311332
Anthony,

The answers that you have selected are either wrong or not completly correct.

@murphey2's answer deals with XML validation which is a totally different topic to canonicalization.

@aikimark's answer will provide some of the functions of canonicalization but is not complete, eg. yes it will normlize whitespace, etc but it won't re-order attributes according to alphabetical order, etc.

The following tool seems to get you probably as close as you will get to fully compliant canonicalization, although in my experience each implementation may have some slight differences in certain (although probably rare) circumstances.

http://www.soapclient.com/xmlcanon.html
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 40311454
"re-order attributes according to alphabetical order"?

Why should you, if you rearrange it you can't validate it against the XSD.

BTW, the Notepad++ plug-in can also do the XML vs XSD validation.
0
 
LVL 36

Expert Comment

by:mccarl
ID: 40311895
@murphey2,

You still seem to be concerned about validation. The question author is not asking anything about XML validation. If you read the question again, you will see that it is about XML Canonicalization.
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 40313875
Anthony,
Canonicalization can be done in Notepad++ in 3 steps:
 > Plugins  > Xml Tool > Linerize
 > Plugins  > Xml Tool > Pretty print (libXML)
and optional:
 > Edit > Line operations > sort lines
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question