I have code that generates and xmlNode tree that conforms to an XML
schema.
To make sure I validate it against the schema.
libxml2 gives the error below.
"Schemas validity error : Internal error: xmlSchemaVStart, no instance
to validate."
which is generated roughly on line 27679 in the newest cvs of
xmlschemas.c
http://cvs.gnome.org/viewcvs/libxml2/xmlschemas.c?rev=1.202&view=log
Now this is because we called xmlSchemaValidateOneElement(
schema_validation_context, generated_node )
since this node never was associated with a document
schema_validation_context->doc is NULL
Tree validation used to work like this in an older version of libxml2.
(2.6.17 I believe)
1. Why is a document required now?
2. How do I create an xmlDoc and associate it with my root node
or in other words make my rootnode the children of the document?