Jump to content

cd_catalog_island


Guest muybn
 Share

Recommended Posts

On the pages www.w3schools.com/xml/tryit.asp?filename=cd_catalog_island_thead and www.w3schools.com/xml/tryit.asp?filename=cd_catalog_island, it indicates that you can bind an XML file to an HTML file. After trying the format listed there, however, I can't get this code to work in an HTML file I create on my own (using <xml id="[xmlid]" src="[xmlfile].xml"></xml>).After researching the matter further, other sources say that binding and displaying data from XML in an HTML page can only be accomplished with JavaScript.Is this code an error by someone who posted the code in these w3schools pages, or am I not picking up on something?

Link to comment
Share on other sites

muybn,What is your target(Browser)? IE only?Did you include both source definitions(xml(src) and (table)datasrc)?

<xml id="cdcat" src="cd_catalog.xml"></xml><table border="1" datasrc="#cdcat">

If you are after a broader audience you might check out the DOM method.Cross Browser DOMThanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...