Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML declaration in DTD System ID? ...

From: Russell Potter <russ.potter@-------.--->
To: NULL
Date: 7/9/2009 11:36:00 AM
Peter,

> I'd sniff the first few bytes. If we're talking about a DTD here, then 
> pretty much the two non-white-space characters are going to have to be 
> an MDO (<!) which means 0x3C 0x21 or 0x00 0x3C 0x00 0x21 (or the other 
> way round depending on the BOM).

A DTD could legally contain quite a few
declarations in any order (in the absence
of a BOM - which is only optional, anyway),
so I think trying to guess the encoding
just from the first few bytes would be
a non-trivial under-taking and the result
far from conclusive.

Russell


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