realbasic-nug
[Top] [All Lists]

Re: Crashing the XML Engine

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Crashing the XML Engine
From: Stephen Tallent <stephen at tallent dot com>
Date: Tue, 31 Aug 2004 16:35:24 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6DCB206F-FB89-11D8-8B14-000D932CC652 at GreenRiverComputing dot com>

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>

<Prev in Thread] Current Thread [Next in Thread>