[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: loadXMl() with NS6

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: 'pranav ' <pranav@i...>
  • Date: Wed, 16 May 2001 06:28:47 -0600

loadxml mozilla
From http://www.mozilla.org/newlayout/xml/ with hyperlink added and note

document.load() is a DOM extension invented by Microsoft. The load method takes one argument, a string, which is interpreted as a URI to an XML document. It tries to load the document asynchronously,
so you will need to set an event handler to observe the load event to do something after the document has loaded. See the load sample in the XML tests directory
(http://lxr.mozilla.org/seamonkey/source/content/xml/tests/load/). [Note: Loading the load.html file from the LXR generated page will not work and may crash Mozilla/Netscape 6 because LXR will munge
the test.xml file into HTML and serve it as HTML. To test this functionality, create the files on your local disk or on a webserver.]

My note:
LXR is their browser interface to their CVS, save the sample to a local
file and then edit it instead of directly trying to load it and then
view source.

If you want to build a DOM programmatically, call document.implementation
will get you a DOMImplementation interface that you can build a 
document by making calls to createDocument(), createElement(), etc
from the DOM Level 2 Spec.

I believe that DOM Level 3 intends to provide a standard mechanism for 
obtaining a DocumentBuilder for ECMAScript.  For now, call document.implementation for Netscape and new ActiveXObject("MSXML2.DOMDocument").DOMImplementation to build the DOMImplementation.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.