Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在做一个项目,我需要获取 XML 文档的一些信息,然后插入另一个 XML 文档,但它们是不同的文件,新文件不能超过 400KB,我正在尝试返回Read() 方法返回他读取的最后一个元素,并删除 XmlWriter() 的元素。有任何想法吗?
你不能那样做。XmlReader是节点的只进读取器,并且XmlWriter是只进写入器。
XmlReader
XmlWriter