in reply to Stripping off the first line of file help!
But the module will accept a scalar instead of a file of XML to process. So you could slurp the file into a variable and then: Because the header appears only once, a workaround substitution like:
should be sufficient.s/\<\?.*\?\>//;
I would tend not to remove the first line, because carriage control is just noise to XML and shouldn't be part of any parsing algorithm - even a simple parsing helper as in this case.
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stripping off the first line of file help!
by Anonymous Monk on Mar 03, 2011 at 16:11 UTC |