Re: Using XPathAPI.selectSingleNode directly from an exe file
Hi Andrew,
nd is of course not null. Otherwise it would have be falling also
inside the debugger too.
It was my mistake. I just tried not to confuse you with my
variables...
I added the throwable catch, and it really caught the exception!
But, I couldn't find any interesting information there.
(Sorry I still didn't study the SSCCE issue - I promise I will, but no
time now... :-( )
So , This is the updated and non modified code and the result:
--------------------------------------------------
Node xmlMapNode = null;
try {
Document doc = xTreeScm.getDocument();
String sXPath = mapMutNode.getXPath();
JOptionPane.showMessageDialog(m_wFrame, "Doc
element name: " + doc.getDocumentElement().getNodeName(), "Debug",
JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog(m_wFrame, "xPath: " +
sXPath, "Debug", JOptionPane.INFORMATION_MESSAGE);
xmlMapNode = XPathAPI.selectSingleNode(doc,
sXPath);
JOptionPane.showMessageDialog(m_wFrame, "1", "1",
JOptionPane.INFORMATION_MESSAGE);
} catch (TransformerException ex) {
JOptionPane.showMessageDialog(m_wFrame,
ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
return;
} catch (Throwable t) {
//what *else* could be failing here?!?
JOptionPane.showMessageDialog(m_wFrame,
"Throwable Message: " + t.getMessage(),
"Error", JOptionPane.ERROR_MESSAGE);
t.printStackTrace();
}
----------------------------------------------------
The result was : org/apache/xpath/XPathAPI...
No great news here I suspect...
I thank you so much for your time. Any more ideas?...