aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2013-01-24 18:16:32 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2013-01-24 18:16:32 +0000
commit413e04d2b8705ed8797188c9b75332d84190358e (patch)
tree202e48cf629402dd23be2fefe66fe0ab837f49ae /doc
parent10dd94fa0ba446ca8edfd74290709b6621c4e776 (diff)
Update WiresharkXML.py to work with Python 2.7.
svn path=/trunk/; revision=47259
Diffstat (limited to 'doc')
-rw-r--r--doc/README.xml-output8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/README.xml-output b/doc/README.xml-output
index 3a8194f7ff..ab48423ae7 100644
--- a/doc/README.xml-output
+++ b/doc/README.xml-output
@@ -14,6 +14,10 @@ working on Analyzer. The specification can be found at:
http://analyzer.polito.it/30alpha/docs/dissectors/PDMLSpec.htm
+That URL is not functioning any more, but a copy can be found at:
+
+http://gd.tuwien.ac.at/.vhost/analyzer.polito.it/docs/dissectors/PDMLSpec.htm
+
A related XML format, the Packet Summary Markup Language (PSML), is
also defined by the Analyzer group to provide packet summary information.
The PSML format is not documented in a publicly-available HTML document,
@@ -151,9 +155,13 @@ import WiresharkXML
def my_callback(packet):
# do something
+# If the PDML is stored in a file, you can:
fh = open(xml_filename)
WiresharkXML.parse_fh(fh, my_callback)
+# or, if the PDML is contained within a string, you can:
+WiresharkXML.parse_string(my_string, my_callback)
+
# Now that the script has the packet data, do something.
------------------------------------------------------------