<country>INDIA</country>Country Name : How i create a element like t
Showing the country name with in the tags of "COUNTRY" and also have to show the Field Description so that user can understand easily.
sometimes have to show
<country>INDIA</country> Country Name
<ID>12345</ID> Record Number.
<TOTAL>6789</TOTAL> Total No. of . Cases
like this....
pls suggest
# 1 Re: <country>INDIA</country>Country Name : How i create a element like t
You can either do this:
<country>India</country><!-- Country name -->
<id>12345</id><!-- Record number -->
<total>6789</total><!-- Total number of cases -->
Or this (if the comments are considered part of the data):
<country remark="Country name">India</country>
<id remark="Record number">12345</id>
<total remark="Total number of cases">6789</total>
# 2 Re: <country>INDIA</country>Country Name : How i create a element like t
What tools are you using? XSLT? C#? .NET? PHP?
andreasblixt has provided a good way of laying out the data if that's what you were asking for.
You might also consider putting that type of documentation in a schema, eg in an <annotation> node.