Font Size: a A A

Design And Realization Of The XML Parser Based On DOM

Posted on:2006-05-12Degree:MasterType:Thesis
Country:ChinaCandidate:H ZhaoFull Text:PDF
GTID:2168360155457014Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
In the rapid developing times of Internet and E-commerce, extensible markup language (XML), as the new carrier and standard of information exchanging and calculating on the internet, has been widely used. It plays an irreplaceable role in the field of data exchanging. XML parser offers foundation for the information processing of XML. If the information in the XML document is to be adequately used, XML need consequently to be efficiently parsed. The current parsing approaches mainly fall into two types: the DOM (Document Object Model) parsing and the SAX (Simple API for XML) parsing. DOM is a kind of tree-like parsing technique, which constructs an integrated parsing tree in the EMS memory, through which the overall dynamic accessing to the whole XML document can be achieved. SAX is a 'pushing forward' model used to deal with the XML drive and a lightweight interface, which is not the W3C standard but a widely acknowledged API, and is the standard that most SAX parser has to observe when realizing. Unlike the DOM parser that builds a tree-like chart of the whole document, the SAX parser activates a series of events when it reads the document. These events have been submitted to the event processor that consequently provides accessing to the document contents. However, the SAX parser still has the defects such as it cannot offer sample access to the XML document and cannot support revising the XML where problems exist.Presently, when the DOM parsing approach, basing on the W3C standard, is employed to parse the XML document, an integrated tree has to be built in the EMS memory according to the elements in the document, but with the extending of the XML document size, the consuming memory space necessary for the parsing is remarkable and the processing time is lasting. Therefore, it will be of great significance to reduce the required memory space when parsing and to cut down the processing time.In light of the shortcomings of the DOM parsing, the author proposes a...
Keywords/Search Tags:XML, parser, DOM (document object model), SAX (simple API for XML), hash table
PDF Full Text Request
Related items