Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

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


  • From: "Michael Kay" <mike@...>
  • To: "'Manos Batsis'" <manos_lists@...>,"'Senthil Nathan'" <rsennat@...>,<xml-dev@...>
  • Date: Mon, 17 Dec 2007 13:54:12 -0000

 
> > 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/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor