XML parsers should accept already-parsed XML object too