Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating XML files from one data file in a java program

 
michael byrd
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 21546
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic