<DIV>Hi,</DIV>
<DIV> I am having a problem getting an element from a document based upon the namespace. The document looks like</DIV>
<DIV> </DIV>
<DIV><?xml version="1.0" encoding="UTF-8" standalone="yes" ?><BR><Workspace><BR> <RetrieveLocationInfoByAddressRequest><BR> <Address><BR> <house_number>8000</house_number><BR> </Address><BR> </RetrieveLocationInfoByAddressRequest><BR> <GetLocationInfo><BR> <Reply><BR> <ns1:asonReplyMessage0000_MSG xmlns:ns1="<A href="http://www.omg.org/IDL-MAPPED">http://www.omg.org/IDL-MAPPED</A>"><BR> <ns1:e911Sur>O9</ns1:e911Sur><BR> <ns1:e911Exempt>EX</ns1:e911Exempt><BR> <ns1:e911Nrg></ns1:e911Nrg><BR> <ns1:operSur4Ind></ns1:operSur4Ind><BR> </ns1:asonReplyMessage0000_MSG><BR> </Reply><BR> </GetLocationInfo><BR></Workspace></DIV>
<DIV> </DIV>
<DIV>I want to get the element ns1:asonReplyMessage0000_MSG. I was using xpath explorer to find out the xpath expression of the elements and xpath explorer gives the xpath expression as /Workspace/GetLocationInfo/Reply/ns1:asonReplyMessage0000_MSG. When I use this xpath expression in my code, it doesn't returns any element from the document. What am I doing wrong. Maybe I am not specifying the xpath expression correctly. Can someone help me.</DIV>
<DIV> </DIV>
<DIV>thanks</DIV>
<DIV>Prashant</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software