-- 作者:kingkanjing
-- 发布时间:3/18/2004 10:21:00 AM
-- 谢谢你的关注——关于“标记没有被关闭”的奇怪问题[求助]
我写了如下程序: example.xml <?xml version = "1.0" encoding="GB2312" standalone = "no"?> <联系人列表 xmlns="x-schema:fclmlschema.xml"> <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?> 不知道应不应写这句话 <联系人列表> <联系人> <姓名>张三</姓名> <ID>001</ID> <公司>A公司</公司> <EMAIL>zhang@aaa.com</EMAIL> <电话>(010)62345678</电话> <地址> <街道>五街1234号</街道> <城市>北京市</城市> <省份>北京</省份> </地址> </联系人> <联系人> <姓名>李四</姓名> <ID>002</ID> <公司>B公司</公司> <EMAIL>li@bbb.org</EMAIL> <电话>(021)87654321</电话> <地址> <街道>南京路9876号</街道> <城市>上海</城市> <省份>上海</省份> </地址> </联系人> </联系人列表> 及fclmlschema.xml <?xml version="1.0" encoding="GB2312" ?> <Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"> <AttributeType name="公司"/> <ElementType name= "姓名"/> <ElementType name= "ID"/> <ElementType name= "公司"/> <ElementType name= "EMAIL"/> <ElementType name= "电话" dt:type="fixed.14.4"/> <ElementType name= "街道"/> <ElementType name= "城市"/> <ElementType name= "省份"/> <ElementType name= "地址" content="eltOnly"> <element type= "街道" /> <element type= "省份" /> <element type= "城市" /> </ElementType> <ElementType name= "联系人" content="eltOnly"> <element type= "姓名" /> <element type= "ID" /> <element type= "公司" /> <element type= "EMAIL" /> <element type= "地址" /> </ElementType> <ElementType name= "联系人列表" content="eltOnly"> <element type= "联系人" /> <attribute type="公司"/> </ElementType> </Schema> 运行的时候报错——下列标记没有被关闭: 联系人列表! 由于刚刚接触xml,我想</联系人列表> 应该就是关闭标记了吧,可是为什么一直无法通过呢,盼给新手以指点,谢了
|