Hi, I am trying to validate an xml document against a schema in the schemas database. Schema is in root of the schema database.
Schema root element: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" targetNamespace="urn:hl7-org:v3" elementFormDefault="qualified"> Source Xml is in another database. Source xml root element : <document xmlns:voc="http://www.hl7.org/v3/voc" xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://www.fda.gov/oc/datacouncil/schemas/spl/spl.xsd"> I am trying to validate xml document with the below code. xquery version "1.0-ml"; import schema "urn:hl7-org:v3" at "/spl.xsd"; declare default element namespace "urn:hl7-org:v3"; let $node := fn:doc("/referenceData/01C3122F-E791-40A5-B52E-963CB6685F71.xml") return validate strict{ $node } I am getting the below error: XDMP-VALIDATEBADARG: (err:XQTY0030) validate strict { $node } -- Argument to validate expression must be document or element node. Can anyone suggest a possible solution? Regards, Jibin G V Innodata Isogen Technologies Disclaimer: ----------- "This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
