What does it meant to say “the canonical” form of XML ?

Answer Posted / ajay vikram

"The purpose of Canonical XML is to define a standard format for an XML document. Canonical XML is a very strict XML syntax, which lets documents in canonical XML be compared directly.
Using this strict syntax makes it easier to see whether two XML documents are the same. For example, a section of text in one document might read Black & White, whereas the same section of text might read Black & White in another document, and even in another. If you compare those three documents byte by byte, they'll be different. But if you write them all in canonical XML, which specifies every aspect of the syntax you can use, these three documents would all have the same version of this text (which would be Black & White) and could be compared without problem.
This Comparison is especially critical when xml documents are digitally signed. The digital signal may be interpreted in different way and the document may be rejected.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type is string in c#?

481


What is int16?

514


What is datatable in c#?

490


How Global.asax is used ?

614


Give examples for reference types?

541






Which operator cannot be overloaded in c sharp?

495


What is int32 maxvalue?

516


How to use the sreamReader class to read form a text file?

554


What exactly happens when we debug and build the program?

2177


What is the process of delegation?

495


Explain the process of Serialization?

548


How C# 4.0 supports dynamic programming language?

573


What benefit do you get from using a primary interop assembly (pia)?

515


What is the use of static members with example using c#.net.

491


What is thread pooling?

534