Hi Don,
Sorry I used $line =~ s/(&)/(& amp;)/g; would it be different with yours?
Many thanks, Nan
In reply to Re^4: Why XML not well formed? by nan in thread Why XML not well formed? by nan