Hello World, heelo Daniel,
I'm validating an XML file against a schema (Delphi):
schParCtxt := xmlSchemaNewMemParserCtxt(schemBuf, schemBufLen);
sch := xmlSchemaParse(schParCtxt);
schValCtxt := xmlSchemaNewValidCtxt(sch);
schemaRet := xmlSchemaValidateDoc(schValCtxt, xmlFile);
If schemaRet is != 0 I'll get the error using xmlGetLastError:
if (schemaRet <> 0) then begin
schemError := xmlGetLastError();
...
...
end;
No matter for what reason nor where an error happens during the
validation, the schemError^.line value is always 0.
I'm using libxml2 2.6.26 with the Delphi bindings...
What am I doing wrong? What do I need to do to get a correct value?
Best regards
Andreas
--
Andreas Tscharner [EMAIL PROTECTED]
--------------------------------------------------------------------
"You take the blue pill and the story ends. You wake in your bed and
believe whatever you want to believe. You take the red pill and you
stay in Wonderland and I show you how deep the rabbit-hole goes."
-- Morpheus in Matrix
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml