Changes

Jump to navigation Jump to search
597 bytes added ,  15:21, 23 May 2012
| valign='top' | '''Exceptions'''
| Todo
|-
| valign='top' | '''Examples'''
|
* <code>validate:xsd('doc.xml', 'doc.xsd')</code> validates the document {{Mono|doc.xm}} against the specified schema {{Mono|doc.xsd}}.
* The following example demonstrates how a document can be validated against a schema without resorting to local or remote URIs:
<pre class="brush:xquery">
let $doc := <simple:root xmlns:simple='http://basex.org/simple'/>
let $schema :=
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://basex.org/simple'>
<xs:element name='root'/>
</xs:schema>
return validate:xsd($doc, $schema)
</pre>
|}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu