Raghu,
You need to use something like JDOM and then set the
namespace.   Then parse through the document.   Looks
something like this:

        doc = builder.build(new StringReader(_content));
        root = doc.getRootElement();
        _ns = root.getNamespace("src");
        _key = root.getAttribute("key", _ns).getValue();

What I am doing here is using JDOM to parse the
document.  Then I tell it to get an attribute called key
using the namespace.   JDOM had documentation on this.
Also, check out javaworld.com and search for JDOM.

HTH,

Mark
 

Raghu Prasad wrote:

hello,
       i have problem regarding the use of 'src:key'.

Consider the output xml on executing xpath against
xindice:
---------------------------------------------------
<product product_id="120320"
xmlns:src=""http://xml.apache.org/xindice/NodeSource">http://xml.apache.org/xindice/NodeSource"
      src:col="/db/data/products"
      src:key="0625df6b0001a5d4000bc49d0060b6f5 ">
   <description>Glazed Ham</description>
</product>

----------------------------------------------------
(Note:The above document is got after xpath:
         //*/[EMAIL PROTECTED]'120320'] )

Now, how can i use 'src:key' from the output document
to again retrive the whole document?

Please suggest me the API to use or the method

Thanks in advance
                                 --ragu

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
Mark J Stang
System Architect
Cybershop Systems
 

begin:vcard 
n:Stang;Mark
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Mark Stang
end:vcard

Reply via email to