code_junkie

Best Way to get XML from a JDBC resultset

Nov 13th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <ResultSet>
  2. <MetaData>
  3. <Column name="...." type="..."/>
  4. ....
  5. <MetaData>
  6. <Data>
  7. <Row><Cell value="valueConvertedToString"/><Cell null="true"/></Row>
  8. ....
  9. </Data>
  10. </ResultSet>
  11.  
  12. <ResultSet>
  13. <MetaData>
  14. <Column name="id" type="int"/>
  15. <Column name="color" type="string"/>
  16. ....
  17. <MetaData>
  18. <Data>
  19. <Row><id value="45"/><color null="true"/></Row>
  20. ....
  21. </Data>
  22. </ResultSet>
Add Comment
Please, Sign In to add comment