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

Does xml replace html?

502


If xml does not have closing tag will it work ?

502


How often does rss feed update?

470


What is difference between internal and external dtd?

466


Can I use xml namespaces in dtds?

502






Explain the purpose of XSLT in XML?

517


How is xsl different from cascading style sheets? Why is a new stylesheet language needed?

458


Is soundcloud an rss feed?

448


How does rss work?

460


What is mean by xsl?

468


How do I use graphics in xml?

475


How do you create a docx file?

500


How do you display xml with xslt?

538


Can we frame our own xml tags?

681


Where do we use xml in Ms.net?

1677