I don't quite understand your intention here. The namespace which contains the "key" attribute is called "htt p://xml.apache.org/xindice/Query"; "src" is a prefix to which it is often bound. So, if anything, you'd have to call XpathQueryService.setNamespace( "src", "htt p://xml.apache.org/xindice/Query" ).
However even this will only get you anywhere unless the documents you're querying actually CONTAIN such attributes. In general, Xindice adds this information to the query result, but you can't search on it, as it's not usually part of the original document... Maybe if you explained what you're trying to achieve? > -----Original Message----- > From: Advincula, Eric [mailto:[EMAIL PROTECTED] > Sent: 21 December 2002 07:52 > To: '[EMAIL PROTECTED]' > Subject: get document by querying namespace > > > I tried to query the src:key to return the xml doc source. > I tried setting > the XpathQueryService.setNamespace( "key", "key" ) > Or XpathQueryService.setNamespace( null, "key" ) then execute > query("//ServiceProperties [EMAIL PROTECTED]"); > > But always return 0 when I look at the size. So I know I'm doing this > wrong. Anyone hava ideas on how to do it properly? > > Thanks > >
