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
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 724.3ocyW00aaBCE8YxuBKj1SiE4O.R5dZ62wZ0DP7Rckwf.SaVq5+8YeMzz 0RFgrT2VoXWewAeNGeu1m7vhfv7pc71PzWQ+.ED7vhf.HjMPP+3fvxrcExrV XZgk711rs7vH2yz7cZHNYHhXCLtJ+lujlLD7WUJsJqjCO56MhL4vSTckUcZI WCudReTWH8uq4NrEFhtZ+WPnFlOsOXclt3ZgZ6Oa3EZ2WglvVlDgnX1RbDJA aaIqWhe5EYwTq3dXEHzkXazGWrv1DcjhQdmVWoFi4jYxu7L01CvQxg4HgFa4 HIYskcT7PK5pSfLJ9cFn+pMVMJGIMetWVH4YMH4HzMgM2M5j+oPDY1vi1++8 KMD9j0HFE5Ho6EoyWhvAzNwXZE8rUTHT54WWPVwbJ.zktxUj3E43dIRxGqbI gLWMgdvCJhNoCKnDH6HMwJJrK7XNhQT3EBYKZrSPiiemEFRJT1PuH01krxuB SqTTvGWXXu2Bi6XEZJHI9VX11T0UiXiIL3OHBiqHxqmuzv2x2Uitz72ceF8s 1t7VsP2o4nKC+D1zLhdwhOaWcMbs0Sel8cU8tTvttUz2hjJ.HiHDDL473ICO E+hc9TRFZe50TTUVxUt8xvSfZNDNJ2niyM7bMS3NNjsBNNbFT.lPnTndoaaX Qrw+ad0V00TLHzCNJQ6WmMbSpsJSKL1O2OIaw+ylz0hMa3pmyyMh1rbIGTlw SdNV7Xs7MIddAneywCcB7X8d4S7DOEd7r9P9eyeJEapqL1N6Shs+vCpsPfxf dBKFpHfg6WqyKIXmYRPwoKWYA+EXWuiDtguEjfdrUxD+jYbLmrX+o7ejvCHh 9AOVO3ShG3FFOUJGeTkxw9CO3iIgl4M7XszM8UA9COfypIEH1otg4rVjUWeK uos+cBXwXN5lpF6vzHXnP4FBFbLtkuULL+0PjrFieGswrSWiyE7tzXiIFy57 3h+..34izC -----------end_max5_patcher-----------