Posted on 2011-05-03
Medium Priority
Last Modified: 2012-05-11
What's the best way for Java to write XML?  I will be querying a database and writing the results to XML.  
Question by:lcor
LVL 23

Accepted Solution

cmalakar earned 500 total points
ID: 35513134
It depends..

if you are writing only one small xml then DOM should be enough.

If you are creating different types of XML's then a framework like JAXB will be good.
LVL 86

Assisted Solution

CEHJ earned 500 total points
ID: 35513160
LVL 74

Assisted Solution

sdstuber earned 500 total points
ID: 35513194
if you are querying from an oracle db the SQL itself can generate XML results for you.

LVL 92

Assisted Solution

objects earned 500 total points
ID: 35517070

though propably simplest to do it directly for database as sdstuber suggests

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question