top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

While writing an xml document what are the rules that are to be followed?

0 votes
412 views
While writing an xml document what are the rules that are to be followed?
posted Jan 2, 2018 by Sathaybama

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

1 Answer

0 votes

Since xml does not have any predefined tags or elements there are not much problems in writing an xml document. Although there are a few rules that should be kept in mind while writing the document such as:
- The tags in xml once opened should also must be closed.
- All the tags in xml are case sensitive.
- All xml elements must be properly nested.

For Example:

<home>
<room>
….
….
</room>
</home>
  • The entire document must contain a root node which would contain all the tags defined in the document within it.
  • Any attribute values must be specified between quotes.
answer Jan 2, 2018 by Shivaranjini
...