Author Topic: XML Read and Write  (Read 3317 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
XML Read and Write
« on: December 11, 2005, 04:00:54 AM »
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
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Chuck Gabriel

  • Guest
Re: XML Read and Write
« Reply #1 on: December 11, 2005, 10:33:23 AM »
You can use the XML COM libraries Microsoft provides from VLISP, can't you?

nivuahc

  • Guest
Re: XML Read and Write
« Reply #2 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?

Chuck Gabriel

  • Guest
Re: XML Read and Write
« Reply #3 on: December 11, 2005, 11:55:54 AM »
Am I missing something? XML is just text, right? Why wouldn't you treat it like any other text file?

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

  • Administrator
  • Seagull
  • Posts: 10626
Re: XML Read and Write
« Reply #4 on: December 11, 2005, 12:46:02 PM »
Using the COM is a pain in the behind!

I'll look around Kerry.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: XML Read and Write
« Reply #5 on: December 11, 2005, 02:37:01 PM »
You can use the XML COM libraries Microsoft provides from VLISP, can't you?

Yes, Chuck. Available time is my issue.

another option is to build a C# dll, but I need to service across several Acad releases.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: XML Read and Write
« Reply #6 on: December 11, 2005, 02:42:46 PM »
.. I recall there was a compiled library posted here some time ago. I'll have a look for/at that. This is a love job, so the expected 'norm' of providing source may have to be thrown out the window.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: XML Read and Write
« Reply #7 on: December 11, 2005, 05:01:57 PM »
TheSwamp.org  (serving the CAD community since 2003)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: XML Read and Write
« Reply #8 on: December 11, 2005, 06:02:47 PM »
Yep, That's the one ... Thanks Mark !
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: XML Read and Write
« Reply #9 on: December 12, 2005, 08:56:22 PM »
Well, im glad you found something that will work cause all i found were notes. (And that isnt very helpfull at all.)
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org