To bind an XML file to an HTML file:
1,Use a line similar to the following:
2,Use the SPAN element or TABLE element to bind the XML file to the elements at the proper location
Here's the HTML code:
Item | Manufacturer | Model | Cost |
---|---|---|---|
Here's the XML file, parts.xml.
Here's the DTD:
type (computerautoairplane) #IMPLIED>
Notice in the implementation, below, that the attributes specified by the XML file are overridden by the default attributes in HTML. None of the items are displayed using the color or font sizes specified by the CSS file that is referenced in the XML file, so that reference in the XML file is not effective.
Here's how it looks. If you can't see the contents of the table, your browser probably does not support XML or the Microsoft Data Source Object (DSO) programming model.
No comments:
Post a Comment