[jdom-interest] Xpath element returning NULL

Anand, Rajesh Rajesh_Anand at ml.com
Tue Jun 21 23:43:03 PDT 2005


Folks,

	Can someone help please.

	I'm trying to locate this element, code snippet...

	Element element1 = (Element) XPath.selectSingleNode(pf.doc,
"SOAP-ENV:Envelope/SOAP-
ENV:Body/getIndex:IndexServiceRequest/getIndex:EndDate");

	This is the copy of the xml....

	<?xml version = "1.0" encoding = "UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<EDSI-HDR:EDSIHeader
xmlns:EDSI-HDR="http://namespace.worldnet.com/EDSI/Standards/Headers/EDS
IHeader_2_0/">
<EDSI-HDR:MessageType>GetIndexService</EDSI-HDR:MessageType>
<EDSI-HDR:MessageTypeVersion>1.0</EDSI-HDR:MessageTypeVersion>
<EDSI-HDR:TimeStamp>2005-05-18T08:47:06-0400</EDSI-HDR:TimeStamp>
</EDSI-HDR:EDSIHeader>
<PRO-HDR:RequestResponseHeader
xmlns:PRO-HDR="http://namespace.worldnet.com/EDSI/Standards/Headers/Prot
ocolHeaders_1_0/" SOAP-ENV:mustUnderstand="1">
<PRO-HDR:CorrelationID>GMI</PRO-HDR:CorrelationID>
</PRO-HDR:RequestResponseHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<getIndex:IndexServiceRequest
xmlns:getIndex="http://namespace.worldnet.com/EDSI/Product/Services/GetI
ndexData_v1_0/">
<getIndex:VendorSpecificSymbol>DG0005M</getIndex:VendorSpecificSymbol>
<getIndex:BeginDate>2005-05-18</getIndex:BeginDate>
<getIndex:EndDate>2005-05-18</getIndex:EndDate>
<getIndex:LevelOrMembers>Level</getIndex:LevelOrMembers>
<getIndex:DataVendorName>Bloomberg</getIndex:DataVendorName>
</getIndex:IndexServiceRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


	Why is element retruning NULL.

	Thanks in advance.


Rajesh Anand
Tel: + (44) (0) 207 996 1152
Mob: + (44) (0) 7947273151
Email:Rajesh_anand at ml.com
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050622/369216d5/attachment.htm


More information about the jdom-interest mailing list