Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XML declaration in DTD System ID? ... [Thread Next] Re: XML declaration in DTD System ID? ...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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
