>I would not do that. You are assuming that
>
>(1) all tags start after a new line (fgets) which is not always the case
>(2) only space chars can precede tags (not TABs for example)
>(3) maybe other things
>
>The only correct way is to parse the file char by char
>
>or better - as suggested - use xmladapter
I was not able to load this file into XMLAdapter. What has to be adjusted to make it load?
If it's not broken, fix it until it is.
My Blog