[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: query on defining xml tags
- From: Brett Zamir <brettz9@y...>
- To: Senthil Nathan <rsennat@g...>
- Date: Thu, 06 Sep 2007 15:26:39 +0800
Hello,
An XML Name cannot begin with a number.
From the XML 1.0 Specs at http://www.w3.org/TR/2006/REC-xml-20060816/
(or see the formal definition at
http://www.w3.org/TR/2006/REC-xml-20060816/#IDANQDS or in the
off-chance you are trying to use XML 1.1, at
http://www.w3.org/TR/2006/REC-xml11-20060816/#IDAKUDS ):
A Name is a token beginning
with a letter or one of a few punctuation characters, and continuing
with
letters, digits, hyphens, underscores, colons, or full stops, together
known
as name characters.] Names beginning with the string "xml ",
or with any string which would match (('X'|'x') ('M'|'m')
('L'|'l')) ,
are reserved for standardization in this or future versions of this
specification.
Note:
The
Namespaces in XML Recommendation http://www.w3.org/TR/2006/REC-xml-20060816/#xml-names assigns a meaning
to names containing colon characters. Therefore, authors should not use
the
colon in XML names except for namespace purposes, but XML processors
must
accept the colon as a name character.
best wishes,
Brett
Senthil Nathan wrote:
587d37680709052308w6f0b590bp90e2ffb5e7b0e8f4@m..."
type="cite">
Hi,
This is a very basic question on defining xml tags. I'm not sure if
this is the right forum to ask.
Anyway, <1-1>data</1-1> Is this not the proper syntax for xml tags as
per the XML standards. I could parse the xml tags <if1-1>data</if1-1>,
but not the previous one. I would like to know about this.
Thanks
Senthil
_______________________________________________________________________
XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
|
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|