Forums Register Login

creating XML files from one data file in a java program

+Pie Number of slices to send: Send
I have a data file that will contain multiple XMLs that I need to parse into separate individual XML files that will be store in a database. Each individual file should start with the <statement> and end with </statement>. After I create a new XML file I need to extract the name from the newly created file before storing it in the database. Is there an easy way to do this? Here is the file :

<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>


Thanks
+Pie Number of slices to send: Send
Looks like "deppe12", who signs himself "Bill", has the same problem in the Sun forum here:

http://forum.java.sun.com/thread.jspa?threadID=700329&tstart=0

Follow the advice given there by "dmbdmb".
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 695 times.
Similar Threads
Missing message for key index.title
Trouble connecting to MS Access via ODBC
JSP returning old data, database was changed correctly!
someone pleasssseeee help !!!
Making multiple files from single file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:08:13.