in reply to Re: Splitting XML file on Processing Instructions
in thread Splitting XML file on Processing Instructions
Maybe it's possible to write the contents of the <no> elements to an array and get the first with $a[0] and the last with $a[$#] but I didn't manage to change the code with respect to that. Maybe you can help me once more?<?split ?> <h1>text</h1> <text> Textinhalt <no>4</no> </text> text ... text <no>18</no> <no>19</no> <no>20</no> <h6>text</h6> <?split ?>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Splitting XML file on Processing Instructions
by pbeckingham (Parson) on Jun 24, 2004 at 13:11 UTC |