in reply to Forcing XML to validate
< foo>stuff< /foo>..and that turns out to be not valid because of the space after the '<', you could do something like:
However, as I said, this is just a guess since I haven't seen what kind of invalid XML you actually have.$xml =~ s/<\s+/</g
thor
|
|---|