开始一个新行 
不适用于 SAX 解析器
我尝试了 DOM 和 SAX 解析器,我想从一个大的 XML 文件中读取类似这样的内容:
<qbody>What kind of environment that SQLite can run on? 
A. Android only 
B. Windows 
C. Windows and Mac 
D. Windows, Mac and Linux 
E. All of above and many more</qbody>
DOM 解析器识别 并创建一个新行,而 SAX 只是忽略之前的所有字符串 并仅给出 E. 以上所有内容以及更多内容作为输出。所以我的问题是如何创建新行语法以便它与 SAX 配合良好。有关更多信息,我将此解析器用于 Android 应用程序并读取本地 xml 文件。感谢您的帮助
I tried both DOM and SAX parser and I want to read something like this from a large XML file:
<qbody>What kind of environment that SQLite can run on?
A. Android only
B. Windows
C. Windows and Mac
D. Windows, Mac and Linux
E. All of above and many more</qbody>
DOM parser recognises the and makes a new line while SAX just ignore all the string before and just gives E. All of above and many more as output. So my question is how can I make a new line syntax so that it works well with SAX. For more info, I use this parser for an Android app and read local xml file. Thanks for your helps
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论