Re: [xmljs-users] How to load an XML file with xml for script?
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-03-03 16:34:40
|
Hello! There are a couple of different ways to do this in XML for <SCRIPT>. If you are only loading XML data from your own domain, the easist way to do this is to use the xmlIOLoadLocalData method in xmlIO.js. If you would like to load data from another domain (something I don't think MSXML lets you do), you can also use one of the server-side proxies. You can find documentation on this feature at the following address: http://xmljs.sourceforge.net/website/documentation-tools.html#toolsIOLoadLocalData You can find sample code that demonstrates this in action at the following address: http://xmljs.sourceforge.net/website/tools-loadLocalXML.html Hope this helps! David --- "Nermin B." <us...@gm...> wrote: > I would like to load an XML file from web server and parse its values while > using xml for script. All examples I was able to found are limited to parsing > XML that is within html on the page locally. > > Currently I am using Microsoft.XMLDOM for loading an separate XML file > into page: > > > xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); > xmlDoc.async = false; > while(xmlDoc.readyState != 4) {}; > xmlDoc.load(mydata.xml); > > var rootNode = xmlDoc.documentElement; > > (And than reading elements) > > mydata.xml is an separate file stored locally. > > How will this code look with XML for script?? > > Thank you in advance: > > N.B. > > -- > +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ > 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |