Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: Rick Jelliffe <rjelliffe@-------.---.-->
To: XML-Dev <xml-dev@-----.---.--->
Date: 8/21/2006 11:56:00 AM
Melvin Chin wrote:
> May I seek some opinions on this topic/proposal?
>
> ===================================================================
> To extend XML spec just a little to permit use of "</>" (GXTC)
> to be placed wherever it is permitted in the current XML spec
> to place a closing tag.  The semantics will be to effect a
> closing of the nearest open tag before the position of GXTC.
> ===================================================================
I released some C utilities to do this in 1999
www.---.com

The source code is gone now (anyone have a copy?), but they are trivial 
to write.

Another approach is to use the open source SP parser, which is 
cross-platform and distributed in most Linux distributions (IIRC) and do 
that. It includes a tool to generate XML.

In SGML it is called short-tag minimization (as distinct from end-tag 
omission). You will probably have to adjust the SGML declaration (syntax 
configuration file) as appropriate.

You may find it easier to write your own little stack tracing tool to 
pre-process the semi-XML coming in. If you are doing this as an internal 
matter (i.e. as a stage in production) then ignore anyone who says "but 
it is not standard": how you organize your internal processes is your 
business, and in any case, it probably is standard (i.e., ISO IS 8879 as 
amended). If you are doing this and you are going to publish or on-send 
the data, don't do it.

Cheers
Rick Jelliffe

* I wrote a little C program to do this


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent