I'm trying to parse a DOM reponse from a web service. I'm looking to find a particular element in the reponse. I know the name of the element I need, but I won't always know it's position in the response.
For example, I receive the following response: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2006-04-05T18:18:00.547Z</Timestamp> <Ack>Success</Ack> <Version>461</Version> <Build>e461_core_Unified_2718252_R1</Build> </GeteBayOfficialTimeResponse> </soapenv:Body> </soapenv:Envelope> And I need the <timestamp> element. I can access it by doing this: <@elementvalue object="local$packageDOM" element="root().child(1).child(1).child(1)"> But I'd like to be able to reference <timestamp> instead of having to know the root/child relationships. Is there an easy way to do this? Dave Machin ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
