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中有描述标签。它包含html标签。我在 android 中使用 SAX 解析器进行解析。但是当它从描述标签中获取数据时,它不会获取 html 内容,而不是任何标签。那么我如何解决使用 SAX 解析器从 XML 解析 html 内容的问题,请帮忙。
看起来您需要将描述包装在 CDATA 元素http://en.wikipedia.org/wiki/CDATA