Solved

Online Tool to create a Canocalization of XML

Posted on 2014-09-04
6
1,554 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 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

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

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

726 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