how to parse xml from javascript string?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

how to parse xml from javascript string?

From: <aaronwmail-usenet@yahoo.com>
Date: Sun Dec 04 2005 - 00:45:04 CET

Ok, I've seen many examples of javascript
parsing an XML document retrieved from a file
indicated by a URL.

The problem is I need to parse (usually small)
xml *strings* embedded in the javascript program
or generated locally, and I can't find any way
to do this exposed (even though some internal
part of the engine clearly is capable of doing it).
Am I missing something?

I'm aquainted with Xparse, but it seems to do
strange things with invalid XML
(rather than giving up with an error) and also may
have licensing issues for my purposes. I've seen
references to other parsers implemented in
javascript. Is there a good one with a BSD style
license? Other options?

Please inform! thanks! -- Aaron Watters

===
there ain't no sanity clause!
Received on Sun Dec 11 14:30:57 2005