XML library reliable?

Alex Rice alrice at ARCplanning.com
Tue Jul 22 01:15:00 EDT 2003


On Monday, July 21, 2003, at 11:35  PM, Joël Guillod wrote:

> <p>©2003 by Joël Guillod</p>
> <p><font color="#0000FF"><u>joel.guillod at net2000.ch</u></font></p>
> <p></p>

Joel, the little I've used the XML lib I've not had any reliability 
problems. In your example I can tell you what the error is, but not 
WHY. I don't know enough about XML.

If you make the second parameter to revCreateXMLTree to be "true", 
that's parseBadData, you will get the error message back from the 
function, instead of a xml tree ID:

xmlerr, can't parse xml
Entity 'euml' no defined

I don't know what's "bad" about that entity, but I do know that most 
html, found in web pages out in the wild, is not valid XML. Apparently 
not all htmlText is not valid XML either.

Now correct me if I'm wrong, but is revCreateXMLTree negating the 
meaning of parseBadData? That is, it's parsing bad data when you have 
parseBadData = false, but when I set parseBadData = true, then it stops 
parsing with the error message?  It's late and I'm weary so please 
confirm and if so I'll file a bug.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com




More information about the use-livecode mailing list