• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read and create a XML file  RSS feed

 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am reading a column in database, and the whole columns content the XML file as a String (including all the xml tag). So I need to write String to a temp.xml and read off this temp.xml again afterward
Please help on this thanks
REgards
 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know? Thanks for the hints or solution.
The string that reading from contents the start tage of the XML file such as:


So I need to read every single tag and then write to the file and name it with .XML.
thank you in advance
 
Paul Clapham
Sheriff
Posts: 22513
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You ask that as if there should be a simple answer. Here's a link to a book you can read:

http://www.cafeconleche.org/books/xmljava/chapters/index.html

At least... you would need to read that sort of thing if you wanted to extract data from the XML document you have there. If you just want to write a string to a text file (and the string just happens to contain XML) thenThe more I read your post the less I understand what you want to do with the XML.
[ April 10, 2007: Message edited by: Paul Clapham ]
 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the confusion, I will read on it.
I think both part of your reply is correct. The string contents the whole xml file, then on the browser, need to read this xml file and display data from the xml file.
Thanks for your response.
 
jay lai
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the confusion, I will read on it.
I think both part of your reply is correct. The string contents the whole xml file, then on the browser, need to read this xml file and display data from the xml file.
Thanks for your response.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!