Parsing iTunes XML with [detox]…
Just poking around at this possibility. I loaded my iTunes library in, and it parses the
let me take this opportunity to make some self-advertisement for my advanced XML parser tools for Max (namely,
[sadam.rapidXML] and the Java-based
[sadam.sax]), which you’d find in my free library:
Hope this helps,
I think I’m looking to do similar things, but coming from a webpage. I downloaded and got your XML tools installed. I’m a little confused as to how they work.
Let’s say I wanted to have Max go to a particular URL, grab (scrape) the web page from there and then start to parse for a list of items, or some other data; Do I use jit.uldl somehow connected to sadam.rapidXML?
I’ve done programming before, but this area is so very new to me, I’m just trying to get started with a simple example of a patch or something, and then I can at least try to go from there. Is there a tutorial that illustrates this using your extensions? Or a simple patch that I could look at?
Thanks so much!
I created a small patch that would fetch a webpage and import it into my parser. Unfortunately I have no experience with Web content fetching in Max, actually this is my very first patch using [jit.uldl], so there might be some bugs out there in the example patch. Nevertheless, it seems to work with my own page:
----------begin_max5_patcher---------- 789.3ocyX98aaBCDG+YxeEV7baJ17qPeZ68s2mzTUkC3l3Nvf.GkrV0+2G9L zl00QrabhRqJWuyf4Ke374K44Yd9Kq2w57Q2h9Ixy64YddPHU.uAeO+J5t7R ZGbZ9UrtN5Jl+U5wjrcRHdQ8VQYMs.sVJat8la1tc67NZAsZ95M2vEErcyaV 2fpnxV9twq9gZgri+DSMCXx7fgv0ajkLo72MLsx78Q2MLTCUlulKVceKKWpG EGD2ekHLbjjr.b5O950vK.EVu7wqIQ6eqEzJ3N3+0VNsbbDwlJtn+9COuj2B pUEDEqB9xrYpCWYH3Drs8J3e3Va+zxPAVSjqLjJYfIBnBI3+PkPKoB9CoBwc TQm4zRa3E+36eyV3vERfOu6ugvJyjjCHVn1fCvSQNL1IjK0cjShZZ6eBQKge yKYzVz0XaIHLGJXsjJV8QVXhMmloZXhilBlKbBKSbGKepDspe8YCJC94TsFk DClrzofSpSJbQbYh1RaABj7LIPRz.gnMSlsj3jrEGVIOec+iGCg+LoIlVZJY +h5IASwmXmvmP2wmMhFZ9uPA1uYmozg..Y.RIYStk2k1NdbYM8yvESpurP2C Pxj6jEXIQBO0qmdjKmykr1OUYWSaOJz.zjcosRRQFkyC7RF5K8sJ0HsurS+j b+X23u2yHzMXvgSwtnKQ1sorn73vkI.JReb59GcdYH3t3WxEu+i0ABUE+uYV W8l17wGxgtvPuo0BVmjKnRdsXuyQ016dmzZdQACFeDeU7hl59xSCZ.c2G9Bz FIE4XIgCBlGqxhSGZ0Xz4H0pRF3Cn0EVJ0vDk552PKdTop+2APM9.BM1RghA IhWnMoQu54.sFd.sFYmVWfUhKSqTbzniCDJ4.BM0NglPzu12WofmCjJ1wKph BeCpDWwTUmINuhz.HCC1SqfyQJ1LCnJwRoRzekVw5L.h1De7ZMw.tZYx5vZd 2mslZRNPvYcWIhAupss.Z5Ip.ZrA3K4rROrAJJ5rpnHCTT1YUQYFnH02c64L oOzfrdaKZn21v8EMHl7J8XZks24kY+gk5c7s -----------end_max5_patcher-----------
This only demonstrates how you can import an XHTML into the objects (you can replace [sadam.rapidXML] with the other two parsers, the mechanism would remain the same). To browse/modify the actual content, please refer to the help files of my objects.
Hope this helps,
I’m psyched that you got back to me so quickly – I will check out the patch and see if I can extrapolate from there for my needs.
Very much appreciate it!!