Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Psoroulas John
t;> >> >> >> On Fri, February 22, 2008 21:14, Wing Yew Poon wrote: >> >>> Sorry, typo - the query should have been "declare default element >>> namespace 'mynamespace'; /a/b". >>> >>> >>> >>> >>> >>> From:

Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Pascal Maugeri
t;. > > > > > > > > > > From: Wing Yew Poon [mailto:[EMAIL PROTECTED] > > Sent: Friday, February 22, 2008 11:11 AM > > To: user@xmlbeans.apache.org > > Subject: RE: Applying XPath to an XML with or without namespace &

Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Pascal Maugeri
--- > *From:* Wing Yew Poon [mailto:[EMAIL PROTECTED] > *Sent:* Friday, February 22, 2008 11:11 AM > *To:* user@xmlbeans.apache.org > *Subject:* RE: Applying XPath to an XML with or without namespace > > Pascal, > in > > > > what you have

RE: Applying XPath to an XML with or without namespace

2008-02-23 Thread Psoroulas John
e 'mynamespace'; /a/b". > > > > > From: Wing Yew Poon [mailto:[EMAIL PROTECTED] > Sent: Friday, February 22, 2008 11:11 AM > To: user@xmlbeans.apache.org > Subject: RE: Applying XPath to an XML with or without namespace > > > > Pascal, &

RE: Applying XPath to an XML with or without namespace

2008-02-22 Thread Wing Yew Poon
Sorry, typo - the query should have been "declare default element namespace 'mynamespace'; /a/b". From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 11:11 AM To: user@xmlbeans.apache.org Subject: RE: Applying XPa

RE: Applying XPath to an XML with or without namespace

2008-02-22 Thread Wing Yew Poon
Pascal, in what you have is every element within and including a being qualified as having the namespace "mynamespace". Thus, the XPath must qualify the elements too. This is only logical. There are a couple of ways you can qualify the elements in the XPath. You can use the prolog you have