A method, system and apparatus for diagnosing network protocol errors using an
XML document are provided. Data packet exchanges are captured and used to generate
an XML document. In one embodiment, the XML document is passed through a parser
to diagnose the errors. In another embodiment, the network protocol errors are
diagnosed by visually inspecting the XML document.