in reply to Re: Re: Re: Re: Preferred Methods (again)
in thread Preferred Methods (again)

With an XML parser you don't have to change your parsing for grabbing the root element when the input changes

Not when the content changes, but when the format changes you do. You example was a format change: <root><foo/><root><bar/></root></root> <!-- Yes, your regex will take the second <root> --> If that's even legal, it would certainly require changes in your code to get the right part.