• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding files  RSS feed

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get xml file in original formate reading in to files


any one please tell me
 
pawank gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could you please brief on your problem
 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i Have XML file called des.xml,I wanted to Write it in to Text file I the Orginal File Formate like Tree Structure,I tried To Read In to Text file but it is printing in the Single Line.
Please Spend Yor Time && Reply this
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML has no formatting rules about whitespace.

This xml:

is exactly the same as this xml:

So there is nothing in the XML standard to dictate that you should render it with line breaks and tabs. Which means this is a question about how to add linebreaks to a file, and that is not an advanced question. Moving...
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This place is so cool. The first hit on Google for "java xml pretty print" is the Ranch FAQ Section.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!