A jsfiddle example would be nice.

O.

On 2011-01-16, at 15:26, Ciul wrote:

> Hi MooTools pals.
> 
> This time I bring you a script I wrote by need, this will convert XML
> to an Object.
> 
> The difference between mine and others out there on the web, is that
> most of those are based on reading the XML file as a plain text,
> hence, it depends the way you write it, even, in some cases those
> could crash if you leave a blank space (to organize your XML).
> 
> Mine, is based on the XMLHttpRequest protocol, also based on W3
> guidelines (you can read from here link). I traverse the XML DOM (you
> may compare it to traverse a HTML DOM) while doing the convertion and
> implementing a recursive function to traverse it (hoping this will
> improve a lot the perfomance of the script).
> 
> Also keeping it small and simple to use :D
> 
> Posted at Forums:
> http://www.mooforum.net/script-showcase-f25/xml-object-converter-t4100.html
> 
> The next step is add it to MooGooMaps with the intention of let
> persons with almost none effort have their google maps with markers
> and funny stuff done from a simple XML document.
> 
> Example:
> 
> a node like
> 
> <Marker title="marker title" lat="10" lng="20" html="HTML to display
> inside an InfoWindow" />
> 
> in your xml will tell MooGooMaps to make a marker with those
> properties
> the same way it will be implemented in others script I have.
> 
> I'd be glad to receive any feedback from you, thanks.
> 
> Best regards,
> Ciul.

Reply via email to