xml parsing in Max?

Johann's icon

Hi there,

Anyone know of ways to parse xml inside Max? Any help would be much appreciated!

Thanks,

John

Luke Hall's icon

The [detox] Jasch external does this very well.

lh

AlexHarker's icon

Hi Johann,

I have developed an xml system using only standard MaxMSP objects (there's also another one in the digital orchestra toolbox which you could google). It's similar to detox in the way it parses data (except it uses regexp), but there are also a set of abstractions to deal with reading/writing xml files, plus you can parse it out by element to abstractions so that you can create your xml structure graphically - this works very well for fixed structures, but I also have some abstractions and tricks for making more dynamic structures.

It depends what you're trying to do whether or not the ability to deal with the hiearchical structure of an xml document graphically will be useful at all for you. If so, and you're interested in looking at it let me know I'll try to bundle up the stuff and get it to you...

Regards,

Alex

pid's icon

@ Alex:

this work of yours sounds awesome. can you bundle it all up for us plebs as well?!...

Johann's icon

Thanks for the help!

Alex - I'd be really interested to see what you have. If you're willing, you can send to jtammbuckle at gmail dot com.

Thanks again,

John

Timothy Place's icon

There is also the [tap.xml.sax] object in Tap.Tools ( http://electrotap.com/taptools ).

best,
Tim

AlexHarker's icon

Hey - sorry for not seeing this reply sonner - I'm used to getting emails from the forum - guess that's gone now...

@Johann - I'm sending on what I have shortly...

@pid - I'll try to package up and make public in time, but I'm stacked back with getting some other stuff ready for public release right now - if you want to see it sooner (rather than later) then message or coontact me with an email address.

Regards,

A.

marcc's icon

I'm also interesting in your parsing tool.
How could i contact you?
Thanks

AlexHarker's icon

Hi marc,

It's fairly undocumented at the moment (I didn't need to document it for myself yet), but if you want to look at what's there as it is at the moment you can find my email here:

Cheers

Alex

keepsound's icon
Max Patch
Copy patch and select New From Clipboard in Max.