Excel, JDOM and Xpath

F

Franz Bayer

Hello, I try to write a application, that converts a xls-workbook into a xml
with a given xsd.
So far so good. Everything is working this way:

XLStoXML myXLStoXML = new XLStoXML("routendaten_example.xls",
"step.xml");
new XMLtoObjects("step.xml", "routendaten_example.xml");

I convert a xsl into a xml and than convert it into another xml fitting my
xsd, so that I can work with xPath (its easier to work with names, than with
fixed numbers like in the excelsheet).

But I don't want to save the step.xml.

So I tried following:

XLStoXML myXLStoXML = new XLStoXML("routendaten_example.xls");
new XMLtoObjects(myXLStoXML.getDocument(),
"routendaten_example.xml");

But this is not working.

The first example is also just working with the ISO-8859-1 encoding and not
with an UTF-8 encoding.

Any suggestions?

/franz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top