fixed a namespace error on attribute reporting bug pointed out by Tobias
* SAX2.c: fixed a namespace error on attribute reporting bug
pointed out by Tobias Reif
* test/p3p result/p3p result/noent/p3p: this test case was wrong
using xmlsn instead of xmlns...
Daniel
diff --git a/SAX2.c b/SAX2.c
index a55e6a4..c627b7c 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -1027,6 +1027,11 @@
if (ns != NULL) {
xmlAttrPtr prop;
namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, ns);
+ if (namespace == NULL) {
+ ctxt->sax->error(ctxt->userData,
+ "Namespace prefix %s of attribute %s is not defined\n",
+ ns, name);
+ }
prop = ctxt->node->properties;
while (prop != NULL) {