What are the element naming conventions in XML ?

Answer Posted / g.h

The naming conventions for XML tags depend entirely on the
context in which XML is deployed. Every company, project or
collective may choose their own naming conventions. One of
the chief advantages of XML as a format is that it is
descriptive and names are chosen by whoever creates an
XML-based format.

The conventions are probably best inherited from the problem
domain for which XML is used. Say that we're modelling a
Java object in XML. If we try to mimic the structure of the
Java class as closely as possible, including field names,
then the logical choice would be the Java naming conventions.
If on the other hand we're using XML to represent a database
resultset, and columns are represented by XML tags with the
column names enclosing the column value as text, then the
best choice would be to stick to the naming conventions for
the database system.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can child elements be specified upon using a sequence compositor?

465


Explain about non-XML resources?

558


How to tell web browsers that your web pages have atom feeds?

487


How do you find a url address?

490


How do I override an xml namespace declaration that uses a prefix?

483






Provide an example of xml.

505


How do I extract data from xml to excel?

456


Define is null operator.

525


How xml is different from html?

489


What is the use of xslt element?

469


What are the elements of wsdl?

489


What is the difference between xml and excel?

471


Explain about the role of xml in soap?

491


What happens if your atom feed fails the validation?

458


What are rss feeds used for?

462