Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove first line from an String containing XML?

 
raul saini
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a string which contains XML.
I want to remove its first line and save it back to String.

How can I do that?

Thanks
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show a sample String with the xml... do you mean the string contains "xml" or a xml document? Is there a line separator (\n) between the xml string and other strings?

Please TellTheDetails
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic