\begin{slide}{Programmierbeispiel}

benutzt JAXP-1.3, 

Beispiel aus M. Seebörger-Weichselbaum: Brückenschlag,
in XML-Magazin 2/05

\begin{verbatim}
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse( new File(param[0]) );
SchemaFactory schemafactory = 
    SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Source schemaFile = new StreamSource(new File(param[1]));
Schema schema = schemafactory.newSchema(schemaFile);
Validator validator = schema.newValidator();
validator.validate(new DOMSource(document));
\end{verbatim}

\end{slide}
