RE: [xml-dev] having elements starting with integer in xml

From
Michael Kay <>
To
'Manos Batsis' <>, 'Senthil Nathan' <>,
Date
2007-12-17T13:54:12
ID
<015b01c840b4$4e56a010$6501a8c0@turtle>
Thread
RE: [xml-dev] having elements starting with integer in xml
> > I need to have the tags like,
> > <1-1>sdgdfgdfg</1-1>

As Manos says, you can prefix them. For example

<_1-1>sdgdfgdfg</_1-1>

But reading between the lines, I strongly suspect that a better document
design would be something like:

<element section="1" subsection="1">sdgdfgdfg</element>

Generally any kind of microsyntax appearing within element names is evidence
of poor design.

Michael Kay
http://www.saxonica.com/