[ expat-Bugs-825475 ] Expat can't handle "Father& Son" string

"SourceForge.net" <[email protected]>
Newsgroups gmane.text.xml.expat.bugs
Message-ID <[email protected]>
Bugs item #825475, was opened at 2003-10-17 08:56
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=825475&group_id=10127

Category: None
>Group: Not a Bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Jouni Virtanen (jouniv)
Assigned to: Karl Waclawek (kwaclaw)
Summary: Expat can't handle "Father&amp;Son" string

Initial Comment:
Hello!

I have got the XML document described belowe:

<?xml version="1.0" encoding="UTF-8"?>
<NAME>Father&amp;Son</NAME>

When expat calls the handler function:

static void characterData
(
 void *userData,
 const XML_Char *s,
 int len
)

variable *s contains string "Father" and I am wondering
why is the original string "Father&amp;Son" truncated.
I have compiled expat lib 1.95.6 in HP-UX with default 
options. Is there any chances to get this working?

Regards
Jouni



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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2003-10-18 01:54

Message:
Logged In: YES 
user_id=3066

The documentation covers this; this is normal for a SAX-like
parser.
Closing this report as not a bug.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2003-10-17 09:48

Message:
Logged In: YES 
user_id=290026

Are you aware of this part of the documentation for
the character data handler?

<quote>
A single block of contiguous text free of markup may still 
result in a sequence of calls to this handler. In other words, 
if you're searching for a pattern in the text, it may be split 
across calls to this handler.
</quote>

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=825475&group_id=10127
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.