[libxml2] Revert "Make schema validation fail with multiple top-level elements"
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Revert "Make schema validation fail with multiple top-level elements"
- Date: Sun, 16 Jan 2022 15:02:03 +0000 (UTC)
commit c35628a24c33c6c3d2d9a9998bcc90e54b1757ea
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sat Jan 15 18:18:22 2022 +0100
Revert "Make schema validation fail with multiple top-level elements"
This reverts commit 4f2aee18f6e2d40e58eb224f4f7935dc2400fe25.
Fixes #305.
xmlschemas.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/xmlschemas.c b/xmlschemas.c
index 1efd0962..6b01fe26 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -28136,10 +28136,6 @@ xmlSchemaVDocWalk(xmlSchemaValidCtxtPtr vctxt)
VERROR(1, NULL, "The document has no document element");
return (1);
}
- for (node = valRoot->next; node != NULL; node = node->next) {
- if (node->type == XML_ELEMENT_NODE)
- VERROR(1, NULL, "The document has more than one top element");
- }
vctxt->depth = -1;
vctxt->validationRoot = valRoot;
node = valRoot;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]