Using XPATH is my Java code.Please see.

Hi,

Why is my xpath giving null for the the flwg

Code: ( text )

<Configuration>

<Listener.Whiteboard>

<AQListener>

<Product>A</Product>

<Message.Class>XMLMessage</Message.Class>

<Database>

<URL></URL>

</Database>

</AQListener>

</Listener.Whiteboard>

</Configuration>

Java Code:

1) wbCL.initialise(m_config.getNode("/Configuration/Listener.Whiteboard"));

2)privatevoid initialise(Node confignode){

XPath xpath = XPathFactory.newInstance().newXPath();

Node listenerconfignode = (Node)xpath.evaluate("AQListener",confignode, XPathConstants.NODE);

}

Am I missing something?

Please help as this a PROD issue that has come up.

Thanks,

[1021 byte] By [bhuru_luthriaa] at [2007-11-27 4:32:24]
# 1
listenerconfigcode is NULL
bhuru_luthriaa at 2007-7-12 9:42:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Does anyone know the answer for the above?The listenerconfignode is set to NULL.No offence meant please
bhuru_luthriaa at 2007-7-12 9:42:04 > top of Java-index,Java Essentials,Java Programming...