假设我有以下XML模式文件和以下XML文档文件。我有两个问题:
由于XML模式文件中没有指定目标命名空间,Information元素位于哪个命名空间中?
在XML文档文件中使用Information时,它属于哪个命名空间?请注意,在这种情况下,我不从XML文档文件引用XML模式文件。
XML模式文件:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="Information" type="xs:string"/>
</xs:schema>
XML文档文件:
<?xml version="1.0" encoding="utf-8"?>
<Information>Hello XML</Information>
thanks in advance, George