Hi,

I know this isn't really a developer question but there isn't a user list so I 
figured this one might do

I have a very simple problem but I can't see the solution anywhere

My Xml file has a node with a character of Ascii 1 (the test file is below)
Xerces will fail to parse this
I have tried with Xerces 2.1 DOM, and Xerces 2.2 Sax and both fail

I debugged the DOM version (since that was where I hit the problem first) 
it gives me 'XMLErrs::InvalidCharacter' inside 'XMLScanner::scanCharData'
or 'XMLErrs::InvalidCharacterRef' inside 'XMLScanner::scanCharRef' if it's 
escaped

I can understand why since it has all control characters (0-31 except 9, 10 and 
13) flagged as invalid
I need a way to read them though since I am getting a machine generated string

I assume there is a simple solution to this,
presumably I need to replace one of the default classes with a custom one?, 
but I can see where or how to do it

can anyone give me some pointers on what I need to do?

        Thanks, Vin

// My code is essentially the few lines below
MemBufInputSource inputSource((const XMLByte*)sDoc.c_str(), sDoc.size(), &ch);
XercesDOMParser domParser;
domParser.parse(inputSource);

(It doesn't matter whether the char is escaped or not so I have it escaped here)
<DALML>
<V>1205&#001;,EX,FF,CAD</V>
</DALML>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to