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:

XML внутри HTML