xsl-list
[Top] [All Lists]

Navigating XML when loaded using Javascript.

2005-02-23 11:30:22


I am new to the xsl list, but it appears to be a very informative and
helpful place. Hopefully i can find some help.

I am loading some xml using javascript, but cannot figure out how to
navigate it properly.  I can do it with a data island, but for some reason
cannot quite get it to work when loading it with javascript.

Here is some of the loading javascript:

        XMLdata="file.xml";
        XMLfile = new ActiveXObject("MSXML2.DomDocument");
        XMLfile.async = false;
        XMLfile.setProperty("SelectionLanguage", "XPath");
        XMLfile.validateOnParse = false;
        XMLfile.resolveExternals = false;
        XMLfile.load(XMLdata);

Just to give an example of how I am doing it.

Previous data island code:
<xml id="XMLfile" src="file.xml">

Previously I would use an external javascript file with somthing like:

        XMLfile.recordset.moveLast();
        currentRecord = XMLfile.recordset.recordcount - 1;

etc...

Any ideas?



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>