做网站费用 优帮云,自学网,网站建设结构方案,网站建设流程图片注意#xff1a;我是EclipseLink JAXB (MOXy)领导者,也是JAXB 2 (JSR-222)专家组的成员.Can Castor do this? If so, what would be the Ant task syntax for it.If not, would perhaps JAXB be a better alternative?下面是如何使用JAXB完成此操作的示例#xff1a;产品xm…注意我是EclipseLink JAXB (MOXy)领导者,也是JAXB 2 (JSR-222)专家组的成员.Can Castor do this? If so, what would be the Ant task syntax for it.If not, would perhaps JAXB be a better alternative?下面是如何使用JAXB完成此操作的示例产品xmlnshttp://www.w3.org/2001/XMLSchematargetNamespacehttp://www.example.org/Productxmlns:tnshttp://www.example.org/ProductelementFormDefaultqualified由于多个XML模式导入Product.xsd,因此我们可以利用episode文件,以便只生成一次与Product.xsd相对应的类.xjc -d out -episode product.episode Product.xsdProductPurchaseRequest.xsd下面是导入Product.xsd的XML模式的示例xmlnshttp://www.w3.org/2001/XMLSchematargetNamespacehttp://www.example.org/ProductPurchaseRequestxmlns:tnshttp://www.example.org/ProductPurchaseRequestxmlns:prodhttp://www.example.org/ProductelementFormDefaultqualified当我们从这个XML模式生成类时,我们将引用我们从Product.xsd生成Java类时创建的剧集文件.xjc -d out ProductPurchaseRequest.xsd -extension -b product.episodeProductQuoteRequest.xsd下面是导入Product.xsd的XML模式的另一个示例xmlnshttp://www.w3.org/2001/XMLSchematargetNamespacehttp://www.example.org/ProductQuoteRequestxmlns:tnshttp://www.example.org/ProductQuoteRequestxmlns:prodhttp://www.example.org/ProductelementFormDefaultqualified再次,当我们从这个XML模式生成类时,我们将引用我们从Product.xsd生成Java类时创建的剧集文件.xjc -d out ProductQuoteRequest.xsd -extension -b product.episode了解更多信息