| 第36卷 第8期 | 西 安 交 通 大 学 学 报 | Vol.36 No8 |
| 2002年8月 | Journal of Xi'an Jiaotong Universtity |
Aug. 2002 |
Design and Implementation of the Extensible Markup Language Parser
Ding Feng,Wang Yu,Shen Junyi, Qi Yong
(School of Electronics and Information Engineering,Xi'an Jiaotong Univercity 710049,China)
![]()
![]()
Abstract:To parse data in a extensible markup language (XML) document, a general parser
named XMLP is designed and implemented. Any XML document will be parsed, validated and
serialized by the XMLP. The function of parsing includes document object model (DOM)
parsing and simple API for XML (SAX) parsing. As optimized way of DOM parsing named
deferred expanding is provided with less memory than common DOM parsing. The function of
validating includes the validating against document type definitions (DTDs) or XML
schemas, no matter they are inside or outside of the parsed documents. The function of
serializing includes ways about DOM and SAX.
Keywords:XML;parse;DOM;SAX