Code Red > AutoLISP (Vanilla / Visual)

XML Read and Write

(1/2) > >>

Kerry:
Does anyone have any source they are prepared to share for Reading, Parsing, Writing XML files from Vlisp in AutoCAD ?

I imagined either VLisp or VB6 DLL source. <callable from VLisp>


Regards
Kerry

Chuck Gabriel:
You can use the XML COM libraries Microsoft provides from VLISP, can't you?

nivuahc:
Am I missing something? XML is just text, right? Why wouldn't you treat it like any other text file?

Chuck Gabriel:

--- Quote from: nivuahc on December 11, 2005, 11:25:27 AM ---Am I missing something? XML is just text, right? Why wouldn't you treat it like any other text file?

--- End quote ---

Not exactly.  XML is structured text.  Any XML parser should be able to validate an XML file against a schema or document type definition that describes how that file should be structured.  Parsing XML manually would be no trivial task.  Besides, why would you want to when so many well-written parsers already exist?

If you are interested in learning more about it, check out http://www.w3schools.com/xml/default.asp.

JohnK:
Using the COM is a pain in the behind!

I'll look around Kerry.

Navigation

[0] Message Index

[#] Next page

Go to full version