You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Erik Schroeder <es...@wausaufs.com> on 2002/02/07 14:35:12 UTC

RE: binary data in an XML file

http://www.w3.org/TR/REC-xml#charsets

Perhaps you could encode the data in BASE64?

-----Original Message-----
From: Ranjana Srivastava [mailto:rsrivastava@CTCHOME.com]
Sent: Thursday, February 07, 2002 7:36 AM
To: xerces-c-dev@xml.apache.org
Subject: binary data in an XML file



I have a file that has some binary data in one of the elements. when I
tried opening this document with an XML editor it gave me some errors.If
i try parsing this file with DOM/SAX it gives me a runtime Exception and
then machine just hangs up. I then tried adding the binary data in a
CDATA section instead. That did not help either.
My Questions are:
Is it possible to have binary data in an xml file.?
Is it possible to parse such a file with DOM/SAX? If yes, some pointers
on how to proceed will be appreciated.
I am using the Borland C++ builder on a Windows98/2000 machine.

Ranjana Srivastava
Controller Technologies Corporation
810-532-8400



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org