simonB2006
Programmer
okay, so i'll try and keep it succinct !
I have a page, and in the page there is an iframe 'f1'.
Some code wanders off and gets one of these :
- req_catXML = new ActiveXObject("Microsoft.XMLDOM")
and loads 'stream.xlm' for my XML object, and another
- req_catXSL new ActiveXObject("Microsoft.XMLDOM")
and loads 'tree.xsl' for my XSL object.
I then call :
f1.document.open();
f1.document.write(req_catXML.transformNode(req_catXSL));
fr1.document.close();
.... obviously there's some code inbetween, but at the end of the day my iframe is beautifully populated with the contects of my XML file, formatted by the XSL file. Lovely
Now the problem comes !
When I try to access the iframe dom .... x = document.getElementsByTagName("Body")[0].outerHTML ... it just gives me "<Body></BODY>" !?
In other words, even though I can see the table, it does not appear to be an official part of the doc/body ? I kind of expected this.. normally i do this kind of thing with normal HTML and i append my tables to the body as children ... but I am not really used to XML/XSL ... and the XSL/XML file is a complete document generated with transformNode ... and i wouldn't know how to begin doing this with .appendChild !!
Anyone ideas ?
I can of course put source code up if required, but it's all wrapped up in my own objects etc ... and might cause more confusion !?
Many thanks in advance !
Simon
I have a page, and in the page there is an iframe 'f1'.
Some code wanders off and gets one of these :
- req_catXML = new ActiveXObject("Microsoft.XMLDOM")
and loads 'stream.xlm' for my XML object, and another
- req_catXSL new ActiveXObject("Microsoft.XMLDOM")
and loads 'tree.xsl' for my XSL object.
I then call :
f1.document.open();
f1.document.write(req_catXML.transformNode(req_catXSL));
fr1.document.close();
.... obviously there's some code inbetween, but at the end of the day my iframe is beautifully populated with the contects of my XML file, formatted by the XSL file. Lovely
Now the problem comes !
When I try to access the iframe dom .... x = document.getElementsByTagName("Body")[0].outerHTML ... it just gives me "<Body></BODY>" !?
In other words, even though I can see the table, it does not appear to be an official part of the doc/body ? I kind of expected this.. normally i do this kind of thing with normal HTML and i append my tables to the body as children ... but I am not really used to XML/XSL ... and the XSL/XML file is a complete document generated with transformNode ... and i wouldn't know how to begin doing this with .appendChild !!
Anyone ideas ?
I can of course put source code up if required, but it's all wrapped up in my own objects etc ... and might cause more confusion !?
Many thanks in advance !
Simon