I've to implement a XML processor that contains some large preformatted text nodes. Years ago I had some problems with msxml(4-6), storing preformatted texts, without loosing the whitespace. Now we figured out, that a xs:string defaults to
<xs:whiteSpace value="preserve" id="string.preserve"/>
Assuming a XML without DTD or XSD
<myXML>
<myNode>Some text with whitespace</myNode>
<myNumber>123</myNumber>
</myXML>
To which type do XML elements default, if there is nothing declared ?
如果没有模型(DTD 或 XSD),则 XML 处理器将所有值解析为“已解析的字符数据”(即字符串)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.