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

Re: [xml-dev] Generic XML Tag Closer (GXTC)


  • From: "Eric Bréchemier" <eric.brechemier@...>
  • To: "Melvin Chin" <mc@...>
  • Date: Fri, 18 Aug 2006 11:40:01 +0200

  Hi Melvin,

> (...)
> Any opinion is fine, useful, crazy, nonsense, should be done,
> must not coz it's going to break many things ...
>

I would propose the following, standard-compliant approach,
illustrated by the sample below:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE _ [
  <!ELEMENT _ (#PCDATA|_)* >
  <!ATTLIST _ _ CDATA #REQUIRED>
]>
<_ _='document'>
  <_ _='head'>
    <_ _='title'>ScoreXML</_>
  </_>
  <_ _='body'>
    <_ _='p'>This is a ScoreXML sample</_>
  </_>
</_>

The overhead is only one character for end-tags (six for start-tags),
and there is a 1-1 mapping to any xml document...

Cheers,

Eric Bréchemier


[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
Keywords
xml