Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] XML Dissection in Wireshark

From: Sachin Gupta <sachgupta@xxxxxxxxx>
Date: Sat, 6 Nov 2010 21:04:51 +0530
Hi,

I made a Generic Wireshark Plugin which parses the XML protocol files and dissect the protocol packets, but due to some legal reasons I was not able to release it to Wireshark. 

You can define XML tags to define the protocols and the fields, use some XML to C++ parser (like I used tiny xml parser) and then
make a plugin which will read a specific directory for all the XML files at startup and make parsers for the protocols.

regards
Sachin




On Sat, Nov 6, 2010 at 12:04 AM, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
Hi,

1. Make sure that the XML dissector preferences are set correctly.
2. Look in the dtds subdirectory where the installed DTD's are stored.
   Use them as examples. Add your DTD here and start Wireshark to
   get it to load.

Thanks,
Jaap

On 11/05/2010 05:36 PM, upendra.allu@xxxxxxxxx wrote:
> Hi Anders,
> Thanks for the reply, But what type of application you are talking about?
> Here my main requirement is wireshark dissecting the XML files.
> Regards,
> Upendra
> ------------------------------------------------------------------------
> *From:* wireshark-dev-bounces@xxxxxxxxxxxxx on behalf of Anders Broman
> *Sent:* Fri 11/5/2010 4:12 PM
> *To:* Developer support list for Wireshark
> *Subject:* Re: [Wireshark-dev] XML Dissection in Wireshark
>
> Hi,
> Sorry, but the whole idea seems foolish to me. It would be much better
> to have the application outputting the xml data doing that in
> either pcap format or some other binary data that's easier to parse than
> xml.
> Just my 2 cents.
> regards
> Anders
>
> ------------------------------------------------------------------------
> *From:* wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] *On Behalf Of
> *upendra.allu@xxxxxxxxx
> *Sent:* den 5 november 2010 15:58
> *To:* wireshark-dev@xxxxxxxxxxxxx
> *Subject:* [Wireshark-dev] XML Dissection in Wireshark
>
> Hello,
> I have some queries regarding XML data dissection in Wireshark.
> Right now all the protocols in Wireshark can be dissected using "pcap"
> files.
> Now I have a requirement to use XML data to dissect some of the(ranap,
> mtp3 etc..) Wireshark protocols. after doing some investigation, I found
> that in order to dissect xml data, separate dtd files need to be written
> for all the required plug-ins. Which are similar to the files in “dtds”
> directory in Wireshark source code. Once after that I have to integrate
> the dtd files into wireshark code so as to make them to dissect XML
> data. now the following are my queries.
> 1. How to write a DTD file for a protocol? (is there any standard format
> for that? if so, can any one please let me know?)
> 2. Once after writing the DTD file, how to integrate the file into
> wireshark base code? (is the normal source code compilation is enough? I
> don’t think it will be enough as it is separate file format in wireshark)
> 3. what additional changes are required for this in the wireshark?
> 4. Finally, is my above approach for dissecting XML data is correct?
> If any one worked in above type of requirement please help me.
> Regards,
> Upendra
> **
>

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe