[Dojo-interest] Re: Passing XML from ASP.net webservice

Aaron Evans aaronmevans at gmail.com
Thu Sep 28 06:38:45 MDT 2006


Yes, just operate on the returned XML DOM object directly using the
standard JS API.  I do it all the time...

On 9/28/06, Robert Koberg <rob at koberg.com> wrote:
> Martin Plotz wrote:
> > So if there is any way to use xml with dojo, that would be great.
> >
>
> You can use:
>
> dojo.io.bind({
>    url: "path/to/some.xml",
>    mimetype: "text/xml",
>    load: function(type, xmlDom, httpreq) {
>      var aDom = xmlDom;
>      handleIt(aDom);
>    },
>    error: function(type, error){
>      dojo.debug("type: " + type);
>      dojo.debug("error: " + error);
>    }
> });
>
> And just operate on the DOM directly. If you are familiar with XSL you
> could use the dojo/src/xml/XslTransform.js to
> manipulate/display/transform it that way.
>
> best,
> -Rob
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>


More information about the Dojo-interest mailing list