Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
convert a db blob of xml into a jdom XML object
Christopher Whu
Ranch Hand
Posts: 80
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i inherited a database that has full xml documents stored as blobs. The blobs look very similar to:
<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description> </book> </catalog>
is there any easy way to convert this blob info into a jdom xml object? thanks in advance!
Paul Clapham
Marshal
Posts: 28193
95
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you can convert it to something which JDOM can read from -- like an InputStream, for example -- then yes. And there is a way to get an InputStream from a PreparedStatement; check out the documentation for that class.
Christopher Whu
Ranch Hand
Posts: 80
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
TY sir. This helped
alot
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Creation of GUI from xml file
Set the Text for the xml tag
Parsing XML file
Turn this Java into Groovy!
Set the TextValue for the xml tag
More...