Re: [dom4j-user] reading the value of an attribute

2007-06-12 Thread Edwin Dankert
You could try the following: String value = ((Element)test).element("value").attribute("key").getValue(); Regards, Edwin -- http://www.edankert.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - t

[dom4j-user] reading the value of an attribute

2007-06-12 Thread Aris Tsaklidis
i'm having a problem with reading the attribute value of a node. i tried different things but seems like nothing works like it should. The XMl is build like this      I'm getting the node by using an XPathExpression. Node test = Dom4jUtil.getNode("//*[starts-with(local-name(),'T