This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to remove first line from an String containing XML? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to remove first line from an String containing XML?" Watch "How to remove first line from an String containing XML?" New topic
Author

How to remove first line from an String containing XML?

raul saini
Greenhorn

Joined: May 18, 2010
Posts: 18
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
Bartender

Joined: May 31, 2011
Posts: 1776
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove first line from an String containing XML?
 
Similar Threads
Remove first three bytes in a file.
" problems
simple sed command
removing first line from JAXB generated XML
Removing linefeed from String.