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



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

Answer / 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

More C Sharp Interview Questions

Can you inherit multiple classes in c#?

0 Answers  


Define clr in .net?

0 Answers  


What are the three types of operators?

0 Answers  


what class is underneath the sortedlist class?

0 Answers   Siebel Systems,


When To use HashTable In C#

0 Answers   Infosys,






Explain the 3 types of properties in c# with an example?

0 Answers  


Are c and c# the same thing?

0 Answers  


What is the benefit of using interface in c#?

0 Answers  


What does mean before a string in c#?

0 Answers  


Differentiate between response.expires and response.expiresabsolute?

0 Answers  


What is a value type in c#?

0 Answers  


how to handle errors in sqlserver

1 Answers  


Categories