Solved

Online Tool to create a Canocalization of XML

Posted on 2014-09-04
6
1,457 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
  • 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 35

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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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 35

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

840 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