Perhaps if you post a (smallish but significant) extract of your XML file and the result you expect, we can give you more guidance.
In general, XML files have no concept of "next line". Whitespace, linefeeds, ... should be irrelevant for XML (a few exceptions notwithstanding). It is all tags and only tags that really count. Expecting some data to be "on the next line" is not guaranteed to work. It is the format not the form that you have to work with.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Find next line
by CountZero
in thread Find next line
by toddgow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |