xml 改错
发布网友
发布时间:2023-06-13 05:31
我来回答
共2个回答
热心网友
时间:2024-11-16 21:03
<picture> 请查看下这个标签的写法
你的斜杠的位置对么?
热心网友
时间:2024-11-16 21:04
我觉得也是picture的问题
你这个XML是在什么编辑器里写的啊?
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE customers[
<!ELEMENT customers (customer*)>
<!ELEMENT customers (username,password,picture)>
<!ELEMENT username (#PCDATA)>
<!ELEMENT password (#PCDATA)>
<!ELEMENT picture EMPTY>]
>
<!ATTLIST picture pic ENTITIES #REQUIRED>
<!ATTLIST customer ID ID #REQUIRED>
<!NOTION jpg system "nspaint.exe">
<!ENTITY pic 1 system"a.jpg"NDATA jpg>
<!ENTITY pic 2 system"b.jpg"NDATA jpg>
<!ENTITY pic 3 system"c.jpg"NDATA jpg>
<!ENTITY pic 4 system"d.jpg"NDATA jpg>
<customers>
<customer ID = "co500103">
<username> zhang </username>
<password> 12345678 </password>
<picture pic = "pic1 pic2 "/>
</customer>
<customer ID = "c0500208">
<username>wang </username>
<password> 1234 </password>
<picture pic = "pic3 pic4" />
</customer>
</customers>
第九行和第十行的REQVIRED改成REQUIRED