XMLBeans

XMLBeans project is a technology for accessing XML by binding it to Java types.
Download

XMLBeans Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • The Apache Software Foundation
  • Publisher web site:
  • http://httpd.apache.org/apreq/

XMLBeans Tags


XMLBeans Description

XMLBeans project is a technology for accessing XML by binding it to Java types. XMLBeans project is a technology for accessing XML by binding it to Java types. XMLBeans provides several ways to get at the XML, including:· Through XML schema that has been compiled to generate Java types that represent schema types. In this way, you can access instances of the schema through JavaBeans-style accessors after the fashion of "getFoo" and "setFoo". · The XMLBeans API also allows you to reflect into the XML schema itself through an XML Schema Object model.· A cursor model through which you can traverse the full XML infoset.· Support for XML DOM.Start off with your own stuff:If you want to get right to it with your own XML schema and instance, follow these basic steps:Install XMLBeans. Compile your schema. Use scomp to compile the schema, generating and jarring Java types. For example, to create a employeeschema.jar from an employeesschema.xsd file: scomp -out employeeschema.jar employeeschema.xsdWrite code. With the generated JAR on your classpath, write code to bind an XML instance to the Java types representing your schema. Here's an example that would use types generated from an employees schema: File xmlFile = new File("c:employees.xml"); // Bind the instance to the generated XMLBeans types.EmployeesDocument empDoc = EmployeesDocument.Factory.parse(xmlFile); // Get and print pieces of the XML instance.Employees emps = empDoc.getEmployees(); Employee[] empArray = emps.getEmployeeArray(); for (int i = 0; i < empArray.length; i++) { System.out.println(empArray); }What's New in This Release:· Updated to the latest XMLSchema.xsd - January 25, 2006· Updated XmlBeans to work with SaxonB-8.6.1 in place of SaxonB8.1· XQuery external variable binding support What's New in This Release: · Finer grained support for CDATA · Upgraded support for Saxon 9 · Added more fine-grained control over XML to Java name mapping · Add support for JVM-supported encodings · Bug fixes


XMLBeans Related Software