top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the use of annotations in reference to an xml document?

0 votes
325 views
What is the use of annotations in reference to an xml document?
posted Jan 2, 2018 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The annotations are used in a xml document to provide additional information about the xml document. The annotation element can be followed by a documentation element to make it understandable to a user (human). In case an annotation element is followed by an appInfo element then the information is meant to be used by an application.

Example of an annotation followed by document element:

<xsd:element name=”books”>
<xsd:annotation>
<xsd:documentation xml:lang=”en”>
This is a collection of best-selling books.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
answer Jan 2, 2018 by Shivaranjini
...