weixin_39605326 2020-11-30 15:19
浏览 0

Copy XPath should include namespace

Originally reported on Google Code with ID 2426


What steps will reproduce the problem?
1. Open the XML below in Firebug
2. Copy the XPath to the header:MessageId
3. The result is something like /envelope/body/getresponse/header/messageid

What is the expected result? What do you see instead?
It should include the namespace, so something like
/SOAP-ENV:Envelope/SOAP-ENV:Body/tns:GetResponse/tns:Header/header:MessageId

Which version of Firebug? 1.4.3
Which version of Firefox? 3.5.3
On what operating system? WinXP


XML used:

--------
<envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <header></header>
   
      <getresponse xmlns:tns="http://www.abc.com/GetResponse/v01" xmlns:header="http://www.abc.com/Common/MessageHeader/v02">
         <header>
            <messageid>2009-10-23T09:54:20.044Z</messageid>
         </header>
         
      </getresponse>
   
</envelope>
-----------

(this xml is sanitized from secret company stuff so if it looks a little
weird, that is the reason)

Reported by db.netres on 2009-10-26 09:26:39

该提问来源于开源项目:firebug/firebug

  • 写回答

11条回答 默认 最新

  • weixin_39605326 2020-11-30 15:19
    关注

    Reported by johnjbarton.com on 2010-01-05 19:08:51 - Labels added: Type-Defect

    评论

报告相同问题?