我在解析xml文件时出现了“The prefix "ns" for element "ns:Collection" is not bound.”问题,是不是xml文件格式有问题。xml文件如下:
<?xml version="1.0" encoding="UTF-8"?>
ns:Collection
ns:SystemCodeSYS_PRODUCT/ns:SystemCode
ns:TodoName延时审批/ns:TodoName
ns:TodoCount1/ns:TodoCount
ns:TodoURL http://eis.sz.gpgc.local/web/defectDelayAuditList.do?pMenu=yes/ns:TodoURL
ns:TargetMM_Content/ns:Target
/ns:item
/ns:Collection