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

Illustrate namespaces in c#?

546


What is a three-tier application.

555


Explain constructor in c#?

680


If a child class instance is created, which class constructor is called first - base class or child class?

503


What does readonly mean in c#?

538






What is generic types in c#?

507


Explain how to add controls dynamically to the form using c#.net.

551


What is the difference between list and ilist in c#?

482


Can enum be null c#?

519


what is the scope of anonymous type ?

576


Which of the following API is used to hide a window?

533


Explain the constructor in c#.

568


What is uint64_t?

523


What is written in c#?

533


What is the difference between field and variable in c#?

463