I've an Apache Derby database built-in Netbeans. I am wondering if there's anyway to export the table contents as xml.

for instance:

`<employee>
<name="Kal"/>
<ID=10/>
<employee/>`   where employee is table name, name and ID just attributes 

There are several (free) options

Many of these involve writing some Java code. Regrettably, there's no built-in functionality in Derby for XML export. It only supports a CSV format. Best of luck!

Unsure if you're able to do XML by doing this, but possibly this can offer an intermediate step:

http://db.apache.org/derby/docs/10.4/tools/ctoolsimport16245.html

It is a guide compiled by Apache regarding how to import and export data from the Derby db.