XML elements must follow these naming rules:
Though no words are reserved for naming, and you can use any letters, numbers for a name, but a good naming practice should be:
1) Make names descriptive. For example: <firstname>,<lastname>.
2) For separate words, You may use an underscore: <table_size>. Avoid use dash "-", dot ".", and colon ":". If you name something "table-size", or "table.size", or "table:size", some software may misunderstand it.
3) Keep a name short and simple, like: <city_name>. Do not use a name like this: <the_name_of_the_city>.
4) If you need to use non-English letters like ¨¦¨°¨¢ in XML, your should check with the software vendor to find out if it supports them.
- Names can contain letters, numbers, and other characters
- Names must not start with a number or punctuation character
- Names must not start with the letters xml (or XML, or Xml, etc)
- Names cannot contain spaces
Though no words are reserved for naming, and you can use any letters, numbers for a name, but a good naming practice should be:
2) For separate words, You may use an underscore: <table_size>. Avoid use dash "-", dot ".", and colon ":". If you name something "table-size", or "table.size", or "table:size", some software may misunderstand it.
3) Keep a name short and simple, like: <city_name>. Do not use a name like this: <the_name_of_the_city>.
4) If you need to use non-English letters like ¨¦¨°¨¢ in XML, your should check with the software vendor to find out if it supports them.
No comments:
Post a Comment