This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我正在使用 KissXML (iOS) 创建一个 xml 文档。一切都很好,但是当我想使用XMLString方法将 DOM 写入 NSString 时,输出 xml 字符串包含 xml 声明(<?xml version="1.0" encoding="UTF-8" ?>)。有没有办法从生成的 xml 字符串中删除这个声明?