2

how to execute sql which is placed in an xml file using Java code?

1 Answer 1

1
  • 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
Sign up to request clarification or add additional context in comments.

3 Comments

how to take the sql out to xml...? i want to execute it from the XML....could you post the code?
Can you post (an example/part of) the XML?
<sqlQuery>select * from table<sqlQuery>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.