.NET怎么给XML写声明呢?
比如<?xml version="1.0" encoding="utf-16">
xmlTextwriter的WriteStartDocument()没有写在注释中写入编码类型的参数啊?
还有,如何按照Xpath的格式向Xml文件这写入节点,属性和内容?
比如
<channel>
<title>
电脑
</title>
</channel>
<channel>
<title>
家俱
</title>
<channel>
要向第2个<channel>中加入<description>桌子</description>如何实现?