TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: clovis on June 23, 2010, 01:58:31 AM

Title: xml parser for lisp
Post by: clovis on June 23, 2010, 01:58:31 AM
Hello guys,
I was wondering if there is a parser for xml or if one has already be written.
Or is there some guide line do write one?
Thanks
Title: Re: xml parser for lisp
Post by: CADmium on June 23, 2010, 03:49:46 AM
Have a look to

(vlax-create-object "MSXML2.DOMDocument.3.0")

 .....
Title: Re: xml parser for lisp
Post by: Lee Mac on June 23, 2010, 05:21:35 AM
http://www.theswamp.org/index.php?topic=33065.0 (http://www.theswamp.org/index.php?topic=33065.0)
Title: Re: xml parser for lisp
Post by: dgorsman on June 23, 2010, 01:22:49 PM
Have a look to

(vlax-create-object "MSXML2.DOMDocument.3.0")

 .....


Careful with that - MSXML6 is recommended, as MSXML3 doesn't support goodies like XSD schemas.
Title: Re: xml parser for lisp
Post by: clovis on June 24, 2010, 01:47:11 AM
thanks a lot!!
I've found an discussion with you guys about how to connect to a rss (website information) (cadTutor)It looks very nice and it works great with the links provided but I also tried with a link here in the Netherlands without success
http://www.nu.nl/feeds/rss/algemeen.rss
I suspect that the extension is the part causing the error.?!?
Is there somewhere a link towards a howto handle xml with
Code: [Select]
(vlax-create-object "MSXML2.DOMDocument.3.0")?
I can learn a lot by dumping the object but I'm not familiar with the properties and methods
Thanks
Title: Re: xml parser for lisp
Post by: clovis on June 24, 2010, 09:39:16 AM
just found it!
http://msdn.microsoft.com/en-us/library/ms760305%28VS.85%29.aspx
Title: Re: xml parser for lisp
Post by: dgorsman on June 24, 2010, 10:24:06 AM
Also, have a wander through W3Schools.com.  Its not as technical but its easier to understand, especially the XSD and XSLT.  For the more technically-minded the original W3C XML specifications cover *everything* but there's a lot of minutia to wade through.