关于XML读取问题: 通过XSD读取XML时, 对 xsi:nil="true" 的tab, 如何才能获取到null值.我现在是用dom4j的SAXReader读取XML的,用org.dom4j.XPath xPath.valueOf()方法无法返回null值.
请高手大侠们帮忙!!!<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<clients>
<client>
<code>C1</code>
<name>name1</name>
</client>
<client>
<code>C2</code>
<name xsi:nil="true"/>
</client>
</clients>
</root>
请高手大侠们帮忙!!!<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<clients>
<client>
<code>C1</code>
<name>name1</name>
</client>
<client>
<code>C2</code>
<name xsi:nil="true"/>
</client>
</clients>
</root>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货