A method, system and apparatus for generating an XML document to represent
network protocol packet exchanges are provided. Each data packet consists
of different internal fields. The fields are identified are used to
generate the XML document. Specifically, the different fields are used as
tagged element of the XML document.