大家都知道xml可以用xpath来寻址,但是当xml文件的加上一些schema验证的属性后,xpath不在起作用(在xmlspy可以找到,但是程序里面找不到)
<?xml version="1.0" encoding="utf-8"?>
<FundamentalData xmlns="http://aa.bb.com/" xmlns:doc="http://aa.bb.com/doc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://aa.bb.com/
D:\Equity\Production\FundamentalProgram\FundamentalLoader\FundamentalDataChange.xsd">
原来的头是这样的:
<?xml version="1.0" encoding="utf-8"?>
<FundamentalData xmlns:xsd="http://www.w3.org/2001/XMLSchema">
种种情况下,可以正常工作, 不知道为什么改成上面的格式就不行了