以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  请教高手,关于msxml解析器的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=8082)


--  作者:baifeifei
--  发布时间:6/3/2004 8:58:00 PM

--  请教高手,关于msxml解析器的问题
<?xml version="1.0" encoding="gb2312"?>
<books xmlns="x-schema:9-1.xml">
<book>书本</book>
</books>


<?xml version="1.0"?>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
        xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <ElementType name="books">
    <element type="book"/>
    </ElementType>
    <ElementType name="book" content="textOnly"/>
</Schema>

在Schema中对book元素的定义改为dt:type="int"
提示:Error parsing'xxxx as int datatype.
在解析器显示一堆乱码
就是不显示"书本"两字
我是想在提示中显示 Error parsing'书本' as int datatype

还有一个问题
<?xml version="1.0" encoding="gb2312"?>
<books xmlns="x-schema:9-1.xml">
<book>书本</book>
</books>

<?xml version="1.0"?>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
        xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <ElementType name="books">
    <element type="bk"/>
    </ElementType>
    <ElementType name="bk" content="textOnly"/>
</Schema>
为什么上下元素名字不匹配,也能正确显示
小弟很困惑,请教高手


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
35.156ms