高手帮帮我,贴点解决的源码吧,,我是新手。。。
XML
========================================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/2/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:SL="http://schemas.microsoft.com/schemaLibrary/2003/2/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/2/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xml:space="preserve">
<w:body>
<w:t> 过去常喝茶,但现在不喝茶了。</w:t>
</w:body>
</w:wordDocument>
================================
在C#里这样取出:
XmlNode child =root.SelectSingleNode("/w:wordDocument/w:body");
会出错,,需要命名空间管理器或 XsltContext。此查询具有前缀、变量或用户定义的函数。
高手帮帮我,贴点解决的源码吧,,我是新手。。。