Hi – I’m new to the list and a month into Max.
find one. This seems unfortunate. Am I missing something? Is there one
included? ( I tried DOMParser and searched for sample code )
I finally used a parser built out of regular expressions – which works I
guess. Though, it’s not super clean.
I tried using [ detox ] and the tap parser, though they didn’t load the file
contents into a DOM tree like structure I’m familiar with.
Thanks for any thoughts.
Visiting Researcher – USC Interactive Media Division
They only happen to meet in your web browser.
That’s clear – thanks.
it was jason’s question, so i’m glad it’s clear to him and he got it
but jennek, would you please give me a little more detail on how
On Nov 8, 2005, at 12:58 PM, Jason Harlan wrote:
> couldn’t find one. This seems unfortunate. Am I missing
> something? Is there one included? ( I tried DOMParser and
> searched for sample code )
> I finally used a parser built out of regular expressions – which
> works I guess. Though, it’s not super clean.
The following has both DOM and SAX style parsers written in Core JS.
You would just use the MaxMSP file object to read in the file to a
string which could be passed to these functions.
Note that you can add classes and functions to be used by other
scripts by placing the js file in the jsextensions folder, as is
discussed in the following archive post, and demonstrated by the
Jitter utility jsextensions installed with Jitter:
Let us know if you encounter any problems.
this is what i used:
and here’s another – an elegant regular expression parse:
though it lacks higher level method calls that the gazingus one has.
I’d look for a public domain library capable of parsing XML into a DOM
(and serializing the DOM back to XML), that could be called from the Max
And luckily enought I do not have to search the web for this anymore,
as Joshua has already posted the URL where such a library can be found.
On 8 Nov 2005, at 22:49, Joshua Kit Clayton wrote:
how you would use its classes in your javavascripts. As Joshua recalled,
put it in the jsextensions folder
The DOM is a pretty large animal and a full XPath implementation is
nontrivial, so we are lucky that other people have created this
library and share it with us.
On Monday, this message was posted to the MaxMSP 2005 Mailing List archives, which automatically put it in the queue, as the mailing list archives are read-only, and no longer accepting entries. Sometimes, people will reply to an old thread and it will get updated in the list archives, and I’ll move it out to the main MaxMSP list.
List subscribers, I would encourage you to visit the thread and read over mzed’s posting, and see if you can offer any help. Here’s a direct link to this thread:
Sorry for the length of this message, it’s just a somewhat difficult situation to explain.
You can try SoftXPath —> http://www.softxml.com/softxpathdemo.htm