Hello, I''m looking for a cross-browsers library based on prototype.js that wraps XML dom. I tried to extend XML dom elements by using Object.extend and Element.extend without success. It works fine with firefox (Object.extend) but don''t work with IE (msxml). I suppose that IE objects are not ''prototype based'' objects. Is there a way to go around this issue like prototype did it with HTML dom elements. I''m surprised notice that prototype do not provide such functionnalities because we are often led to deal with xml data with Ajax requests. I suspect that it''s not easy or even not possible.... Thanks for your help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I was hoping for the same thing. I got tired of dancing up and down XML trees. It''s a pain. I gave up and converted my data structures to JSON. It''s much easier to deal with. My hair has even grown back since. On Jun 20, 4:26 am, fdb <frederic.da...-6cnB5FyhgwQ@public.gmane.org> wrote:> Hello, > > I''m looking for a cross-browsers library based on prototype.js that > wraps XML dom. > I tried to extend XML dom elements by using Object.extend and > Element.extend without success. > It works fine with firefox (Object.extend) but don''t work with IE > (msxml). > I suppose that IE objects are not ''prototype based'' objects. > Is there a way to go around this issue like prototype did it with HTML > dom elements. > I''m surprised notice that prototype do not provide such > functionnalities because we are often led to deal with xml data with > Ajax requests. I suspect that it''s not easy or even not possible.... > > Thanks for your help--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That is correct; you cannot extend DOM prototypes in IE (what Object.extend() does). There is a project called Sarissa you might want to look at: http://dev.abiss.gr/sarissa/> Sarissa is an ECMAScript library acting as a cross-browser wrapper for > native XML APIs. It offers various XML related goodies like Document > instantiation, XML loading from URLs or strings, XSLT transformations, XPath > queries etc and comes especially handy for people doing what is lately known > as "AJAX" development. > > Supported browsers are Mozilla - Firefox and family, Internet Explorer with > MSXML3.0 and up, Konqueror (KDE 3.3+ for sure), Safari and Opera. Konq and > Safari offer no XSLT/XPath scripting support AFAIK. >Somebody brought it into a project I was involved with last year. It seemed powerful but heavyweight. But if a full range of XML manipulation is what you need it might be the ticket. FYI, it has nothing to do with Prototype though. And hair retention is not guaranteed. ;-) -Fred On Fri, Jun 20, 2008 at 3:26 AM, fdb <frederic.dalbo-6cnB5FyhgwQ@public.gmane.org> wrote:> > Hello, > > I''m looking for a cross-browsers library based on prototype.js that > wraps XML dom. > I tried to extend XML dom elements by using Object.extend and > Element.extend without success. > It works fine with firefox (Object.extend) but don''t work with IE > (msxml). > I suppose that IE objects are not ''prototype based'' objects. > Is there a way to go around this issue like prototype did it with HTML > dom elements. > I''m surprised notice that prototype do not provide such > functionnalities because we are often led to deal with xml data with > Ajax requests. I suspect that it''s not easy or even not possible.... > > Thanks for your help-- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This is something I''ve wanted as well, the core team has always just cried in the name of JSON. But it would be very convenient to have a nice proto extension to handle XML data. A lot of times the client side developer doesn''t have a choice in the data services data format, which XML is still a very popular choice, there is still a very firm need for this. I think this is something I''ll look into, i had come up with a very hacky workaround that just stuffed the responseText into a dom object, worked fine for FF as it handles "custom" html tags, but there needs to be better support. http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/7ab88758e366a468/e01de1a0b6c739bf?lnk=gst&q=xml#e01de1a0b6c739bf http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/85ca2ad61a46475/88fc1dae471d1ef0?lnk=gst&q=xml#88fc1dae471d1ef0 http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/d4ed18819287080e/a2ee4bf79bd873e1?lnk=gst&q=xml#a2ee4bf79bd873e1 -- Matt Foster Ajax Engineer Nth Penguin, LLC http://www.nthpenguin.com On Jun 20, 10:54 am, "Frederick Polgardy" <f...-SMQUYeM9IBBWk0Htik3J/w@public.gmane.org> wrote:> That is correct; you cannot extend DOM prototypes in IE (what > Object.extend() does). > > There is a project called Sarissa you might want to look at: > > http://dev.abiss.gr/sarissa/ > > > Sarissa is an ECMAScript library acting as a cross-browser wrapper for > > native XML APIs. It offers various XML related goodies like Document > > instantiation, XML loading from URLs or strings, XSLT transformations, XPath > > queries etc and comes especially handy for people doing what is lately known > > as "AJAX" development. > > > Supported browsers are Mozilla - Firefox and family, Internet Explorer with > > MSXML3.0 and up, Konqueror (KDE 3.3+ for sure), Safari and Opera. Konq and > > Safari offer no XSLT/XPath scripting support AFAIK. > > Somebody brought it into a project I was involved with last year. It seemed > powerful but heavyweight. But if a full range of XML manipulation is what > you need it might be the ticket. > > FYI, it has nothing to do with Prototype though. And hair retention is not > guaranteed. ;-) > > -Fred > > > > On Fri, Jun 20, 2008 at 3:26 AM, fdb <frederic.da...-6cnB5FyhgwQ@public.gmane.org> wrote: > > > Hello, > > > I''m looking for a cross-browsers library based on prototype.js that > > wraps XML dom. > > I tried to extend XML dom elements by using Object.extend and > > Element.extend without success. > > It works fine with firefox (Object.extend) but don''t work with IE > > (msxml). > > I suppose that IE objects are not ''prototype based'' objects. > > Is there a way to go around this issue like prototype did it with HTML > > dom elements. > > I''m surprised notice that prototype do not provide such > > functionnalities because we are often led to deal with xml data with > > Ajax requests. I suspect that it''s not easy or even not possible.... > > > Thanks for your help > > -- > Science answers questions; philosophy questions answers.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
While prototype.js happens to be more JSON oriented, no one is really stopping community from developing an add-on extension : ) I think it''s clear that solid XML-manipulation is never going to the core (unless prototype ever decides to become modular - and even then it''s not clear who will be maintaining it) I''m not sure why there are no such add-ons around, but you are always welcome to submit one to scripteka. - kangax On Jun 20, 4:02 pm, Matt Foster <mattfoste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is something I''ve wanted as well, the core team has always just > cried in the name of JSON. But it would be very convenient to have a > nice proto extension to handle XML data. > A lot of times the client side developer doesn''t have a choice in the > data services data format, which XML is still a very popular choice, > there is still a very firm need for this. I think this is something > I''ll look into, i had come up with a very hacky workaround that just > stuffed the responseText into a dom object, worked fine for FF as it > handles "custom" html tags, but there needs to be better support. > > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thr... > > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thr... > > http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thr... > > -- > Matt Foster > Ajax Engineer > Nth Penguin, LLChttp://www.nthpenguin.com > > On Jun 20, 10:54 am, "Frederick Polgardy" <f...-SMQUYeM9IBBWk0Htik3J/w@public.gmane.org> wrote: > > > That is correct; you cannot extend DOM prototypes in IE (what > > Object.extend() does). > > > There is a project called Sarissa you might want to look at: > > >http://dev.abiss.gr/sarissa/ > > > > Sarissa is an ECMAScript library acting as a cross-browser wrapper for > > > native XML APIs. It offers various XML related goodies like Document > > > instantiation, XML loading from URLs or strings, XSLT transformations, XPath > > > queries etc and comes especially handy for people doing what is lately known > > > as "AJAX" development. > > > > Supported browsers are Mozilla - Firefox and family, Internet Explorer with > > > MSXML3.0 and up, Konqueror (KDE 3.3+ for sure), Safari and Opera. Konq and > > > Safari offer no XSLT/XPath scripting support AFAIK. > > > Somebody brought it into a project I was involved with last year. It seemed > > powerful but heavyweight. But if a full range of XML manipulation is what > > you need it might be the ticket. > > > FYI, it has nothing to do with Prototype though. And hair retention is not > > guaranteed. ;-) > > > -Fred > > > On Fri, Jun 20, 2008 at 3:26 AM, fdb <frederic.da...-6cnB5FyhgwQ@public.gmane.org> wrote: > > > > Hello, > > > > I''m looking for a cross-browsers library based on prototype.js that > > > wraps XML dom. > > > I tried to extend XML dom elements by using Object.extend and > > > Element.extend without success. > > > It works fine with firefox (Object.extend) but don''t work with IE > > > (msxml). > > > I suppose that IE objects are not ''prototype based'' objects. > > > Is there a way to go around this issue like prototype did it with HTML > > > dom elements. > > > I''m surprised notice that prototype do not provide such > > > functionnalities because we are often led to deal with xml data with > > > Ajax requests. I suspect that it''s not easy or even not possible.... > > > > Thanks for your help > > > -- > > Science answers questions; philosophy questions answers.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
All the Ajax stuff in Netflix.com is XML-based, AFAIK. I think this would be a nice extension also. If you''ve already done some thinking about how this might look in terms of an API and feature set, I''d be happy to take a look and help out. -Fred On Fri, Jun 20, 2008 at 3:02 PM, Matt Foster <mattfoster01-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This is something I''ve wanted as well, the core team has always just > cried in the name of JSON. But it would be very convenient to have a > nice proto extension to handle XML data. > A lot of times the client side developer doesn''t have a choice in the > data services data format, which XML is still a very popular choice, > there is still a very firm need for this. I think this is something > I''ll look into, i had come up with a very hacky workaround that just > stuffed the responseText into a dom object, worked fine for FF as it > handles "custom" html tags, but there needs to be better support.-- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---