aspose file tools*
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
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?