[Expat-bugs] [ expat-Bugs-752139 ] < error

SourceForge.net noreply at sourceforge.net
Wed Jun 11 05:30:41 EDT 2003


Bugs item #752139, was opened at 2003-06-10 13:03
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=752139&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: < error

Initial Comment:
<Test>
<Row>&#60;OK&#62;</Row>
</Test>

For the test case above, I assume the result in 
void characterDataHandler(void *userData, const 
XML_Char *s, int len)
{
}

*s should be "&#60;OK&#62;"
but the result I got was "<"

Is it a bug or by design?

Thanks.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-06-11 04:30

Message:
Logged In: NO 

And what you got was probably "<OK>" (if my guessing for 60 
and 62 chars is correct), but in wide (16b, 2-bytes), not old, 
one-byte characters. So "<" 0 "O" 0 "K" 0 ">" 0 and trailing 
duble-0 for end-of-string-zero-char. Latter may be my faulty 
memory, for callback have probably just block and its width, 
not wide-character C-string :) ). Hoping it wasn't to messy.

d.n.hotch

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2003-06-10 13:25

Message:
Logged In: YES 
user_id=290026

According to section 4.4 in the XML specs
(XML Processor Treatment of Entities and References)
the behaviour of Expat appears to be correct.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=752139&group_id=10127



More information about the Expat-bugs mailing list