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

From
Manos Batsis <>
To
Senthil Nathan <>,
Date
2007-12-17T13:33:01Z
ID
<>
Thread
Re: [xml-dev] having elements starting with integer in xml
Senthil Nathan wrote:
> Hi,
> I know as per xml standards, there can't be any elements in the xml file
> starting with an integer.
> 
> But if I need to have such integer tags, is there any workaround or
> anyother ideas to do that.
> 
> I need to have the tags like,
> <1-1>sdgdfgdfg</1-1>


The simplest thing to do is to adopt a standard prefix, e.g. "prefix_":

<prefix_1-1>sdgdfgdfg</prefix_1-1>

hth,

Manos