XML inside HTML
One practical way to use XML is to use XML within an HTML document. This process is called binding. The easiest way to include XML inside an HTML document. This is done using the XML tag and document ID. This identifier will later be useful for displaying the document. And then you need to link the data in XML with the HTML document.
In the example below, a table is created that displays the data.
We are looking at the code:
<Html> <BODY> <H2> hello XML </ h2> <XML ID = "xmlSteps"> <? Xml version = "1.0"?> <Steps> <Step> <Name> Step1 </ name> </ Step> <Step> <Name> Step2 </ name> </ Step> <Step> <Name> Step3 </ name> </ Step> </ Steps> </ XML> <Table datasrc = "# xmlSteps"> <Tr> <Td> <div datafld = "name"> </ div> </ td> </ Tr> </ Table>
And here is the result:
Comments
When commenting on, remember that the content and tone of your message can hurt the feelings of real people, show respect and tolerance to your interlocutors even if you do not share their opinion, your behavior in the conditions of freedom of expression and anonymity provided by the Internet, changes Not only virtual, but also the real world. All comments are hidden from the index, spam is controlled.