| Paradox Convention 2003 | Paradox and XML |
|
<root>here a (very) long line ...; </root>Now
textStream.readLine () has a 32kb limit on text lines, but
there is no limit to how long a "line" within an XML document can
be. Actually, many code-generated XML documents look like this: just one row
of text, without a single CR/LF pairNUL,
yet 50% of a Unicode UCS-2 XML file is made of NUL bytes when
it represents occidental scripts.<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">...
An XML document needn't be straight ASCII, or even ISO8859_*, and even less
Windows-1252. Plus, one must identify the actual encoding from the start:
<?xml is not the same byte sequence when it is encoded as
ASCII, UCS2 or UCS4.breakApart () doesn't solve that much.| © 2003 Frédéric G. MARAND - OSInet | ||