Re: Problem with Xpath query !!!
From: Nakah (nakahspam_at_free.fr)
Date: 04/12/04
- Next message: Dare Obasanjo [MSFT]: "Re: How to get ASP.NET using C# to transform Access Reports"
- Previous message: Derek Harmon: "Re: Problem with Xpath query !!!"
- In reply to: Derek Harmon: "Re: Problem with Xpath query !!!"
- Next in thread: No Spam: "Re: Problem with Xpath query !!!"
- Reply: No Spam: "Re: Problem with Xpath query !!!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Apr 2004 02:15:48 +0200
The node I'm trying to find is the same as your example but it doesn't work
with me. The Xpath expression is the same.
"Derek Harmon" <loresayer@msn.com> wrote in message
news:eJ5i9eAIEHA.3444@TK2MSFTNGP10.phx.gbl...
> Nakah,
>
> Can you share the XPath expression, and what the node you're trying to
find is?
> I'll take another look at it.
>
> Also, try qualifying the attribute and see if that's not it (in cases
where the schema
> has the attributeFormDefault='qualified' or the form on individual
attribute declarations
> is 'qualified,' this may be necessary).
>
> /default:grammar/default:rule[@default:id='Root']
>
>
> Derek Harmon
>
> "Nakah" <nakahspam@free.fr> wrote in message
news:%23JdSoX$HEHA.3248@TK2MSFTNGP12.phx.gbl...
> >
> > Thanks, I've just tried it but it doesn't work :'(
> : :
> > > "Derek Harmon" <loresayer@msn.com> wrote in message
> > > news:uqmsyB%23HEHA.2300@tk2msftngp13.phx.gbl...
> > > > method. Try adding this line into the above code snippet,
> > > >
> > > > xmlnsManager.AddNamespace("default",
> > > "http://www.w3.org/2001/06/grammar");
> > > >
> > > > and then in your XPath expression, Xpath, use the explicit prefix,
default, everywhere
> > > > you've assumed a default namespace URI is in effect (because as far
as XPath is
> > > > concerned, there is a default namespace URI in effect, but it's "",
not the
> > > > "http://www.w3.org/2001/06/grammar" URI you've expected).
> > > >
> > > > For example, an example XPath expression that used to be,
> > > >
> > > > /grammar/rule[@id='Root']
> > > >
> > > > becomes,
> > > >
> > > > /default:grammar/default:rule[@id='Root']
> > > >
> > > > given the attributes are unqualified (which is typically the
default).
> : : :
>
>
- Next message: Dare Obasanjo [MSFT]: "Re: How to get ASP.NET using C# to transform Access Reports"
- Previous message: Derek Harmon: "Re: Problem with Xpath query !!!"
- In reply to: Derek Harmon: "Re: Problem with Xpath query !!!"
- Next in thread: No Spam: "Re: Problem with Xpath query !!!"
- Reply: No Spam: "Re: Problem with Xpath query !!!"
- Messages sorted by: [ date ] [ thread ]