1、Introduction to XMLBeans
XMLBeans is a tool that allows you to access the full power of XML in a Java friendly way. It is an XML-Java binding tool. The idea is that you can take advantage the richness and features of XML and XML Schema and have these features mapped as naturally as possible to the equivalent Java language and typing constructs. XMLBeans uses XML Schema to compile Java interfaces and classes that you can then use to access and modify XML instance data. Using XMLBeans is similar to using any other Java interface/class, you will see things like getFoo or setFoo just as you would expect when working with Java. While a major use of XMLBeans is to access your XML instance data with strongly typed Java classes there are also API's that allow you access to the full XML infoset (XMLBeans keeps full XML Infoset fidelity) as well as to allow you to reflect into the XML schema itself through an XML Schema Object model.
译:XMLBeans是一个工具,通过它可以在Java中访问XML的强大功能。它是将XML和Java绑定的工具。这意味着,你能享受XML和XML Schema的超级特性,并且可以将其很好地转换为Java代码。XMLBeans利用XML Schema编译成Java接口和类,以至于你能用来访问和修改实例化的XML数据。使用XMLBeans与使用Java接口/类一样,你将看到象SET和GET这样的方法,它们是在Java中经常用到的。XMLBeans的主要用处是通过强大的Java类来访问实例化XML数据,利用Java类中的API可以访问XML