---- Usage ---- ---- 2010-07-05 ---- ~~Licensed to the Apache Software Foundation (ASF) under one ~~or more contributor license agreements. See the NOTICE file ~~distributed with this work for additional information ~~regarding copyright ownership. The ASF licenses this file ~~to you under the Apache License, Version 2.0 (the ~~"License"); you may not use this file except in compliance ~~with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~Unless required by applicable law or agreed to in writing, ~~software distributed under the License is distributed on an ~~"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~KIND, either express or implied. See the License for the ~~specific language governing permissions and limitations ~~under the License. Usage * Generate a class binding/dataset from a schema If you already have a schema, then use the xsd goal by adding its execution in the pom.xml file. The xsdFile should point to the xsd file. +----+ 4.0.0 org.apache.maven.it it0006 library 1.0.0 it0006 src/main/csharp src/test/csharp org.apache.npanday.plugins maven-compile-plugin true org.apache.npanday.plugins maven-xsd-plugin xsd StockingHandlers_1_0.xsd +----+ To generate a dataset instead of classes, change the plugin configuation: +----+ [...] org.apache.npanday.plugins maven-xsd-plugin xsd StockingHandlers_1_0.xsd dataset +----+ * Generate a schema from an XML instance and then create a class binding from the generated schema You can also generate the schema from a sample XML file prior to generating the bindings. The xmlFiles tag allows you to specify one or more XML files. +----+ 4.0.0 org.apache.maven.it it0007 library 1.0.0 it0007 src/main/csharp src/test/csharp org.apache.npanday.plugins maven-compile-plugin true org.apache.npanday.plugins maven-xsd-plugin xml xsd ${basedir}/registry-config.xml ${project.build.directory}/generated-resources/registry-config.xsd +----+