Crash the application? the problem is definitely the MD5sum, but why
is it crashing the xml engine. and why is it waiting until toString to
crash it? Shouldn't it just whine about some xml spec violation rather
than crater the whole application? Is this even an xml spec violation?
Hmmm... it doesn't crash for me. But you are correct that it is an
xml spec violation, though. While you can put stuff like html and such
in a CDATA section, you can't put free form binary data in there
without surely having some bytes that conflict with the spec. And yes,
as you mentioned, base64 is the appropriate solution for putting binary
data in xml.
But regardless of whether or not it crashed for me, I agree that it
would be nice if it failed politely if I do something illegal as I am
creating the XML. I would expect that to be at least somewhat of a
perf hit, though, having to check every aspect of the entire xml spec
on every character every time I append a string. But I actually have
no idea. It may not be a big deal at all. I am fairly certain there
are already requests in the feedback sys to improve several aspects of
XML creation.
-stephen
===========================
Stephen Tallent
Tallent Communications, Inc.
stephen at tallent dot com
http://www.tallent.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|