advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
Average Rating: 3.8/5 | Rate this item | 6 users have rated this item.
 

Making Use of the XML Data Source Object

The XML Data Source Object is an ActiveX control that allows you to manipulate data between XML files and HTML pages. This article will show you the basics of how to extract content from various XML data sources and how to present that data using a little JavaScript.  


advertisement
he XML Data Source Object (DSO) is a Microsoft ActiveX control that's been built into Microsoft Internet Explorer since version 4. This object allows you to extract content from an external XML file or XML data embedded in the HTML file into a HTML page.

You can use the XML-DSO in a Web page to extract content from an external XML file, extract XML data from XML data embedded in the Web page, and manipulate that data using JavaScript. However, it is not advisable to use this object for the Internet since XML-DSO only works on MSIE 4+ browsers, which can raise compatibility issues. It is much more advisable to use XML-DSO for intranets.

Getting Started
To initialize the XML-DSO object, use the <OBJECT> tag. The CLASSID for the XML-DSO is:


CLSID:550dda30-0541-11d2-9ca9-0060b0ec3d39
This ID uniquely identifies the XML-DSO. Initialize this control in a Web page using this code:

<OBJECT ID="SomeID" CLASSID="CLSID:550dda30-0541-11d2-9ca9-0060b0ec3d39"></OBJECT>
Though most OBJECTs have a number of parameters associated with them, the XML-DSO does not require any.

  Next Page: Extract Data Using an XML Data Island
Page 1: IntroductionPage 4: Use XML-DSO and JavaScript Together
Page 2: Extract Data Using an XML Data IslandPage 5: An XML Ticker Using XML-DSO
Page 3: Extract Data Using an External XML File 
Please rate this item (5=best)
 1  2  3  4  5
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About