Learning: How to reference XML data in HTML

Source: Internet
Author: User
Tags object reference version
xml| data 1, embedded XML data
<meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
<title> First Intimate contact (non-Ruffian CAI version, please do not understand for infringement) </title>
<body>
<xml id= "First intimate Contact" >
< first intimate contact >
< object >xml</Object >
< intimacy degree > Exposure to XML a little precious place---data island </intimacy >
< conclusion > Feel good, is a good dongdong </conclusion >
</First Intimate Contact >
</xml>
<center><table border= "0" datasrc= "#第一次亲密接触" align= "center" width= "443" >
<tr>
&LT;TD bgcolor= "#99FF99" > Objects: <span datafld= "Objects" ></span></td>
&LT;TD bgcolor= "#3399CC" > Intimate degree: <span datafld= "Intimacy" ></span></td>
&LT;TD bgcolor= "#CC99CC" > Conclusion: <span datafld= "Conclusion" ></span></td>
</tr>
</table>
</body>

2. References to external XML files

First use the previous knowledge to build an XML file (not I lazy, give you a chance to exercise ^ ^)
Related to data content in the following <xml></xml>
<meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
<title> First Intimate contact (non-Ruffian CAI version, please do not understand for infringement) </title>
<body>
<xml id= "First intimate Contact" src= "Firstlove.xml" >
< first intimate contact >
< object >xml</Object >
< intimacy degree > Exposure to XML a little valuable local data island </intimacy >
< conclusion > Feel good, is a good dongdong </conclusion >
</First Intimate Contact >
</xml>
<center><table border= "0" datasrc= "#第一次亲密接触" align= "Center" >
<tr>
&LT;TD bgcolor= "#99FF99" > Objects: <span datafld= "Objects" ></span></td>
&LT;TD bgcolor= "#3399CC" > Intimate degree: <span datafld= "Intimacy" ></span></td>
&LT;TD bgcolor= "#CC99CC" > Conclusion: <span datafld= "Conclusion" ></span></td>
</tr>
</table>
</body>

We can refer to her by specifying the location of the XML file, usually by src= "Xxx.xml" references.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.