[jdom-interest] How to get src:key attribute

Mark Hortman mark.hortman at jcafeinc.com
Thu Dec 19 10:53:45 PST 2002

Looks like you need have a namspace "src".  
You need call the getAttribute(String name, Namespace ns) method.

PS Try the getAttributeValue method...

-----Original Message-----
From: netizen [mailto:netizen.mail at attbi.com]
Sent: Thursday, December 19, 2002 12:32 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] How to get src:key attribute

I'm using xindice and one of the attributes it puts o the root element
is a attribute src:key but when i tried to get that value
String strBuff = docXML.getRootElement()
                       .getAttribute( "src:key" )

Returns an exception java.lang.NullPointerException error.

Any ideas?


More information about the jdom-interest mailing list