how to execute sql which is placed in an xml file using Java code?
1 Answer
- Load the SQL Statement as a String out of the XML into a Java Variable (Using SAX or DOM, for example)
- Execute the SQL Statement
3 Comments
SmartestVEGA
how to take the sql out to xml...? i want to execute it from the XML....could you post the code?
Konerak
Can you post (an example/part of) the XML?
SmartestVEGA
<sqlQuery>select * from table<sqlQuery>