Re: [XSLTalk] XPATH + Namespaces

Emanuil et all,

Your XPath now works if I take the namespace out of the <AddressRequest> 
tag, how do I declare this local default namespace with respect to the DOM??

To Refresh, the XML is:

<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
	<EnvelopeVersion>1.0</EnvelopeVersion>
	<Header>
		<MessageDetails>
			<Class>ADM-address-request</Class>
			<Qualifier>request</Qualifier>
			<TransactionID>L9MLHH1FB25F</TransactionID>
			<CorrelationID>296</CorrelationID>
			<GatewayTimestamp>2003-07-15T14:00:04</GatewayTimestamp>
		</MessageDetails>
	</Header>
	<Body>
		<AddressRequest xmlns="http://www.govtalk.gov.uk/gateway/addressrequest">
			<ServiceName>QES-ORG</ServiceName>
			<Key Type="ruref">49900011596T</Key>
		</AddressRequest>
	</Body>
</GovTalkMessage>


Thanks

Paul



dagda1@hotmail.com





>From: "Emmanuil Batsis (Manos)" <mbatsis@netsmart.gr>
>Reply-To: XSLTalk@yahoogroups.com
>To: XSLTalk@yahoogroups.com
>Subject: Re: [XSLTalk] XPATH + Namespaces
>Date: Tue, 15 Jul 2003 17:55:05 +0300
>
>
>
>Paul Cowan wrote:
>
> > 
>sRURef=oDOM.selectSingleNode("ar:GovTalkMessage/Body/AddressRequest/Key[@Type='ruref']").text
>
>that should be
>
>sRURef=oDOM.selectSingleNode("ar:GovTalkMessage/ar:Body/ar:AddressRequest/ar:Key[@Type='ruref']").text
>
>
>
>--
>Manos Batsis
>
>Netsmart S.A.
>
>Snail mail:
>Panepistimiou 58,
>10678, Athens, Hellas
>
>URL:    http://www.netsmart.gr
>Email:  mbatsis at netsmart dot gr
>Tel:    (+30) 210 33 02 608
>Fax:    (+30) 210 33 02 658
>FOAF:   http://forte.netsmart.gr/foaf/manos_foaf.rdf
>
>
>
>

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save up to 80% on top-quality inkjet cartridges & refill kits at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5702
http://us.click.yahoo.com/YrYXfA/AyWGAA/ySSFAA/2U_rlB/TM
---------------------------------------------------------------------~->

This discussion list is hosted at TopXML (topxml.com).  If you like what we're doing, please show your support by posting your small code snippets there!  Also, post your tech announcements and news on our new site, Markup World (markupworld.com)

To unsubscribe from this group, send an email to:
XSLTalk-unsubscribe@egroups.com
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Received on Tuesday, 15 July 2003 11:02:41 UTC