Using Java applet to read XML data islands

With the XML DSO you can embed XML data in your html pages. There are many examples on how to use the XML DSO to embed data in your web pages. However you should also know that accessing the data in the data islands is also possible by using the Java Applets.


_______________________________________________

A java applet that serves the XML data is shipped with the Internet Explorer browser. You can use this DSO to get data from an XML file and this data is available in the html page. All you have to do is to embed an applet in the html page. A sample code to include an applet is given below.

<APPLET
CODE="com.ms.xml.dso.XMLDSO.class"
ID="DS"
WIDTH="0"
HEIGHT="0"
MAYSCRIPT="true">
<PARAM NAME="URL" VALUE="yourXMLFile.xml">
</APPLET>

The 'param' tag indicates the location where the XML data is found. The 'code' attribute specifies the package where the code to access the XML file is available. The XML data from the file specified in the 'param' tag is got by the XML DSO and it parsed and this data is bound to the html page in the areas defined.




_______________________________________________

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________




 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

Copyright - © 2004 - 2017 - All Rights Reserved.