(1)在XMLSpy中新建xml文档,并输入以下代码:
<?xml version="1.0" encoding="GB2312"?>
<!DOCTYPE company [
<!ENTITY name "abc.beijing">
<!ENTITY addr "beijing">
]>
<company>
<name>&name;</name>
<addr>&addr;</addr>
</company>
(1)在XMLSpy中新建xml文档,并输入以下代码:
<?xml version="1.0" encoding="GB2312"?>
<!DOCTYPE company [
<!ENTITY name "abc.beijing">
<!ENTITY addr "beijing">
]>
<company>
<name>&name;</name>
<addr>&addr;</addr>
</company>