[Expat-discuss] binary in XML?
Desmond Chan
deschan3@attbi.com
Thu, 12 Sep 2002 14:27:56 -0700
Hi all,
I am aware that it is not advisable to include binary in a XML document.
Yet I would like to know if and how I can use expat to parse a XML
document with binary in it.
For example,
<file>
<data length=100>...</data>
</file>
It is a file element with data of 100 bytes. "..." is 100 bytes of binary
data. Is it possible to ask expat to simply copy 100 bytes of data to a
buffer after it sees <data length=100>, then skips that 100 bytes and start
parsing the doc as text from the end tag again?
Thanks,
Desmond