Entity reference Synthesis

Source: Internet
Author: User

 

Sub-files of various external entities:

 

External generic Entity A. xml

<? Xml version = "1.0" encoding = "gb2312"?>
<Instructor>
<Name> Bai Yan </Name>
<QQ> 12345678 </QQ>
<Mobile phone> 13514573840 </mobile phone>
<Email> zhousuaige@csuinfosoft.com </Email>
</Instructor>
 

 

 

External generic Entity B. xml

<? Xml version = "1.0" encoding = "GB2312"?>
<Instructor>
<Name> Chen </Name>
<QQ> 66778899 </QQ>
<Mobile phone> 1334567890 </mobile phone>
<Email> chendia@csuinfosoft.com </Email>
</Instructor>
<Instructor>
<Name> Ma Yun </Name>
<QQ> 77889900 </QQ>
<Mobile phone> 13234565793 </mobile phone>
<Email> madia@csuinfosoft.com </Email>
</Instructor>
<Instructor>
<Name> dish </Name>
<QQ> 664538899 </QQ>
<Mobile phone> 13234567890 </mobile phone>
<Email> caicai@csuinfosoft.com </Email>
</Instructor>
<Instructor>
<Name> handsome Zhou </Name>
<QQ> 12345678 </QQ>
<Mobile phone> 13514573840 </mobile phone>
<Email> zhousuaige@csuinfosoft.com </Email>
</Instructor>

 

 

 

External common entity C. xml

<? Xml version = "1.0" encoding = "GB2312"?>

<Name> dish </Name>
<QQ> 664538899 </QQ>
<Mobile phone> 13234567890 </mobile phone>
<Email> caicai@csuinfosoft.com </Email>
</Instructor>
<Instructor>
<Name> handsome Zhou </Name>
<QQ> 12345678 </QQ>
<Mobile phone> 13514573840 </mobile phone>
<Email> zhousuaige@csuinfosoft.com </Email>
</Instructor>

 

Joint call of external common entities. xml

<? Xml version = "1.0" encoding = "gb2312"?>
<! DOCTYPE bedroom member [
<! ENTITY Table 1 SYSTEM "external common entity a. xml">
<! ENTITY Table 2 SYSTEM "external common entity B. xml">
<! ENTITY Table 3 SYSTEM "external common entity c. xml">
]>

<Bedroom member>
& Table 1;
& Table 2;
& Table 3;
</Bedroom member>


Custom object reference. xml

<? Xml version = "1.0" encoding = "UTF-8"?>
<! DOCTYPE Bai Yan's roommate [
<! ENTITY dormitory address "dezhi yuan dormitory, Hunan Normal University 409">
]>
<Bai Yan's roommate>

<Roommate>
<Name> Lang </Name>
<Age> 12 </age>
<! -- Reference a Defined Object: & Object Name; -->
<Address> & dormitory address; bed 1 </address>
</Roommate>

<Roommate>
<Name> Xiaoqiang </Name>
<Age> 42 </age>
<Address> & dormitory address; bed 2 </address>
</Roommate>

</Bai Yan's roommate>
 

This article is from the "Enthusiasm" blog

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.