Wireshark-bugs: [Wireshark-bugs] [Bug 4395] New: Extracted XML misplaces element attributes

Date: Wed, 13 Jan 2010 12:59:26 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4395

           Summary: Extracted XML misplaces element attributes
           Product: Wireshark
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: doug.smith@xxxxxxx


Build Information:
Version 1.2.3 (SVN Rev 30730)
--
The extracted XML places XML attributes in the wrong locations. Consider the
raw format of a SOAP request:

0000  3c 53 4f 41 50 3a 45 6e  76 65 6c 6f 70 65 20 78   <SOAP:En velope x
0010  6d 6c 6e 73 3a 53 4f 41  50 3d 22 75 72 6e 3a 73   mlns:SOA P="urn:s
0020  63 68 65 6d 61 73 2d 78  6d 6c 73 6f 61 70 2d 6f   chemas-x mlsoap-o
0030  72 67 3a 73 6f 61 70 2e  76 31 22 20 78 6d 6c 6e   rg:soap. v1" xmln
0040  73 3d 22 75 72 6e 3a 73  63 68 65 6d 61 73 2d 78   s="urn:s chemas-x
0050  74 72 61 63 2d 66 6d 72  2d 63 6f 6d 3a 62 32 62   trac-fmr -com:b2b
0060  22 20 53 4f 41 50 3a 65  6e 63 6f 64 69 6e 67 53   " SOAP:e ncodingS
0070  74 79 6c 65 3d 22 75 72  6e 3a 65 6e 63 6f 64 69   tyle="ur n:encodi
0080  6e 67 73 2d 78 74 72 61  63 2d 66 6d 72 2d 63 6f   ngs-xtra c-fmr-co
0090  6d 3a 76 31 2e 30 22 3e  3c 53 4f 41 50 3a 42 6f   m:v1.0"> <SOAP:Bo

The extracted XML should look like:

<SOAP:Envelope xmlns:SOAP="urn:schemas-xmlsoap-org:soap.v1"
xmlns="urn:schemas-xtrac-fmr-com:b2b"
SOAP:encodingStyle="urn:encodings-xtrac-fmr-com:v1.0"> etc.

Instead, the XML is represented both in the gui and in the file export like
this:

  <SOAP:Envelope>
        xmlns:SOAP="urn:schemas-xmlsoap-org:soap.v1"
        xmlns="urn:schemas-xtrac-fmr-com:b2b"
        SOAP:encodingStyle="urn:encodings-xtrac-fmr-com:v1.0"
        <SOAP:Body>

The extracted representation loses the attributes assocaited with the
SOAP:Envelope element, instead placing them as element content. This wreaks
havoc with anyone trying to parse or work with the infoset of the extracted
XML.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.