Yes, you can parse XML that way, but you shouldn't. It's more work than you originally thought.
Example: I've tried two parts of the xml syntax, <?xml version="1.0"?> and namespaces <foo:bar />, and it didn't seem to parse either. (At least if I understood the output right, it doesn't say "parsed" or "not parsed").
So it's the typical "author's idea of xml" parser, not xml parser.