C validating xml against a schema

Does anyone know why they'd be returning different results? Validates the XML string/file against the specified XSD string/file.I have tried this successfully with XML that had a namespace and an XSD that had a target namespace. Is it possible to validate no Name Space XML against no Name Space XSD? Hi, I am trying to validate the following XML against an XSD (see bottom of this message) but I am unable to.I have registered the schema using: l_xsd xmltype; -- contains the schema dbms_xmlschema.registerschema('puk_query_response.xsd', l_xsd, TRUE, TRUE, FALSE, FALSE); but when I try: l_xml xmltype; -- contains the xml to be validated l_schema_valid := l_xml.isschemavalid('puk_query_response.xsd'); it always fails.However, when I register the XSD against a column in a table and then insert this XMLTYPE into that column, I do not get any errors.If I change the XSD to ensure failure when using this method, I do get an error, so it is registered and working.

If the XSD is publicly available using HTTP and referenced through a "schema Location" or "no Namespace Schema Location", then the validator will pick it up and it doesn't need to be specified/uploaded. and second is Message which will have error message if fetch Xml is not valid. Implement Process Fetch Xml() as given below which is returning 2 values, first is boolean flag Success indicating whether fetch Xml is valid or not.hi guys I need your suggestions / opinion for doing this the right way. if the Attribute is missing or invalid in the following element then it should say ID attribute invalid for "Watch" Element.I have a XML and a Schema for the same What I want is when its validated against the schema, it should give custom errors saying what happened and where...... Right now the validation works but the error returning our very vague, I need a way where I can customize the error or at least let the user know where the error is at what element and which attribute.

Leave a Reply