A sliding window technology based hardware
XML (Extensive Markup Language) parser comprises an initialization storage unit, inter-stack registers, a data transmitting module, a
lexical analysis module, a format checking module and an
XML document tree building module; the data transmitting module is used for generating a sliding window; the
lexical analysis module is used for extracting a character
stream of an
XML document into a token; the format checking module is used for checking the token of the XML document through an XML
syntax rule; the initialization storage unit is connected with the data transmitting module and used for transmitting the initialization information of the XML document; the data transmitting module is connected with the
lexical analysis module and used for transmitting the sliding window information; the lexical analysis module is connected with the format checking module and the XML
document tree building module and used for transmitting the token information; the XML
document tree building module is connected with a memory and used for transmitting the XML document tree information; the inter-stack registers which are used for improving the
throughput rate are arranged between the modules which are connected with each other respectively. According to the sliding window technology based hardware XML parser, the working efficiency of the XML parser is greatly improved, the
high resolution performance can be implemented, the hardware cost is low, and the practicability is high.