Adding support to read the schema from the XML document on the fly.