Methods and systems thereof for processing Extensible Markup Language
(XML) documents are described. In one embodiment, an XML document
comprising content in an XML format is parsed. The content is converted
into pcodes according to a conversion key; that is, an XML tag is
converted into a pcode can be converted back to XML using the conversion
key. A pcode file including the parsed XML document, converted into
pcode, is thereby generated. The pcode file is smaller than the original
XML document and the content is already parsed, so the time needed to
process the pcode file is significantly less than the time needed to
process an XML document. Memory usage and the time needed to send and
receive information are also improved.