I set up a test case to run through the scenario:
I can export to XML ok.
I can read the XML into a
string ok.
When I parse the XML via DOM, the query node loses newlines.
Going into the parse I have this:
Coming out of the parse I have this:
15:28:35,083 INFO [STDOUT] select name from report where name like 'test'
Here is the code:
if (node.getNodeName().equals("query")) {
query = ((Element)node).getTextContent();
System.out.println(query);
}
Could the getTextContent() be the culprit and it so how do I fix the situation?
Thanks!