Skip navigation
Currently Being Moderated

Reading XML from a plugin (Mac OSX 10.4.10)

Oct 22, 2007 3:05 AM

Hi gurus,

Basically, I want to read an XML file from within a plugin, without using the AIXMLxxxSuites. Sound simple? Answers on a postcard please, because I haven't managed it yet, and I'm running out of hair!

I've tried using libxml2, which works great... until you quit Illustrator, then it crashes and I can't stop it from doing so. I can only assume that something's being released when my plugin is unloaded which Illustrator's not expecting, causing a crash on exit, but I'm just guessing.

I've also tried eXpat, which was a complete nightmare to install but I got it working eventually. Only problem is that when you compile it with fink (or some other package manager) it compiles for your specific architecture, i386 in my case. This doesn't end well when you have over 500 mixed PPC/i386 Macs to target.

So anyone else got any ideas? I'm quite new to Mac development coming from a Windows dev background (where'd MSXML go?!) so please be gentle :)

Thanks in advance!

--W
 
Replies
  • Currently Being Moderated
    Oct 27, 2007 7:45 PM   in reply to Wayne Constable-AEjbzi
    I just use 'fopen' and 'fscanf' with a few simple loops to find the "<" and ">" and parse the tags appropriately...
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2007 3:21 PM   in reply to Wayne Constable-AEjbzi
    I see no reason why you couldn't get libxml, eXpat or Xerces working, however with the provided information I see no way to offer advice.

    I suspect it will take a debugger and a good look at your code to understand your situation, so I just offered a (simple) suggestion. I will add that you do get something by developing a home brewed solution, namely no limitations, cross platform capability, and complete understanding (hopefully).

    I run a software company based on opensource software, so I routinely build and use the packages you mentioned (without Fink). I am afraid however, that providing assistance here is beyond the scope of this forum.

    Best regards,

    -jeshua
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)