What are the rules for making a tag name in XML?

Questions by janelyn   answers by janelyn

Showing Answers 1 - 12 of 12 Answers

vaibhav

  • Apr 6th, 2007
 

Rules remains the same as for any standard C/C++ or any other programming language. Tag name can't start with any special character or contain, numeric value. There is no theoritical limit on the size of variable name.

-Thanks
Vaibhav

  Was this answer useful?  Yes

Vijay anand

  • May 29th, 2007
 

Tag names can't have spaces in it.

  Was this answer useful?  Yes

SS

  • Aug 23rd, 2007
 

Rules for making a tag name are
1.It should start with a letter or underscore(_)
2.There are no reserved words , but however xml(in any case) should not be used as a tag name
3.It can include digits, hyphen,periods, ':' can be used but best avoided because it is used for the namespace.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions