You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Ali, Haneef" <ha...@hp.com> on 2005/07/01 04:51:59 UTC

RE: [ANN] XMLBeans V2 available

<--
XML parsing is now by default performed by Piccolo, a high performance
parser;
-->

	 Is "Piccolo" parser thread safe? "Piccolo doesn't seem to be
thread safe.

Following code throws exception with the default (Piccolo ) parser

	public void doPost(HttpServletRequest request,
HttpServletResponse response)throws ServletException,
	{
		XmlObject obj =
XmlObject.Factory.parse(request.getInputStream());
		// do something
	}


// Exception trace
org.xml.sax.SAXParseException: Unexpected  end of file after null
| | 16:23:58,920 INFO  [STDOUT]     at 
| | org.apache.xmlbeans.impl.piccolo.xml.Piccolo.
| | reportFatalError(Piccolo.java:1000)


It works if we change the underlying SAX parser.

Regards,
Haneef


-----Original Message-----
From: Radu Preotiuc-Pietro [mailto:radup@bea.com] 
Sent: Thursday, June 30, 2005 1:32 PM
To: dev@xmlbeans.apache.org; user@xmlbeans.apache.org
Subject: [ANN] XMLBeans V2 available

Based on the results of the vote published on the dev mailing list on
06/24, we are happy to announce the availability of XMLBeans V2.

XMLBeans is a tool that allows you to access the full power of XML in a
Java friendly way. You can take advantage of all 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 generate 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 to
access the full XML infoset (XMLBeans keeps XML Infoset fidelity) as
well as to reflect into the XML schema itself through an XML Schema
Object Model.

Here's a short list of improvements in this release:
*	Improved XQuery/XPath integration - Both XQuery and XPath on
XMLBeans are now fully integrated. XPath and XQuery expressions can
return other XMLObjects, or they can be executed using an XmlCursor
instance, in which case you manipulate the results using a cursor.

*	DOM Level II Support - DOM Level II support is now implemented
natively so that you can handle the underlying XML in the DOM style. You
can switch between DOM, XmlCursor, and XmlObject (either untyped or
typed). This improves performance and reduces the memory footprint over
Version 1.

*	Extensions - You can now add custom functionality to generated
XMLBeans. You can pass to the Schema Compiler 1) an interface that
defines the set of methods to implement and 2) a static handler that
implements this functionality. The generated classes will implement the
interface and, for each method, call out to the static handler.

*	Improved Error Handling - This version adds error codes and
ensures message consistency. In addition, fail-fast behavior is provided
for simple types, while access to the post schema validation infoset is
made available during validation. 

*	Performance - Performance has been improved across the board.
Native DOM support improves performance and memory footprint; XML
parsing is now by default performed by Piccolo, a high performance
parser; incremental compilation of only modified artifacts has been
added; and the performance of the XmlCursor implementation has been
greatly improved.

*	JDK 1.5 Generics - Generated classes now optionally take
advantage of JDK 1.5 Generics.  Note that JDK 1.4 continues to be
supported. 

*	XML Instance/XSD Generation - You can generate a sample XML
instance from schema using the xsd2inst tool (which uses the
SchemaInstanceGenerator class). You can also generate a schema from an
instance using the inst2xsd tool (which uses the Inst2Xsd class).

The XMLBeans team

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org