RE: How to generate XmlBeans jar using API instead of SCOMP?

2008-12-10 Thread Asaf Lahav
methods and doing a search on the mailing list, the topic has come up before. Radu _ From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 3:54 AM To: user@xmlbeans.apache.org Subject: How to generate XmlBeans jar using API instead of SCOMP? Is it possible

How to generate XmlBeans jar using API instead of SCOMP?

2008-12-09 Thread Asaf Lahav
Is it possible to generate an XmlBeans jar out of a schema using XmlBeans API instead of using SCOMP? Thanks in advance, Asaf

RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

2008-11-25 Thread Asaf Lahav
Is it possible to extract the schema document out of the generated XmlBeans? From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2008 7:30 PM To: 'user@xmlbeans.apache.org' Subject: extracting the schema (XSD/WSDL) from xmlbeans in runtime Hi everybody, Is there a way

extracting the schema (XSD/WSDL) from xmlbeans in runtime

2008-11-23 Thread Asaf Lahav
Hi everybody, Is there a way to extract the XSD or WSDL definition out of an XmlBean in runtime? I would like to be able to extract the schema document used to generate the XmlBeans in runtime. Thanks in advance, Asaf

navigating on XmlObjects

2007-08-06 Thread Asaf Lahav
I have several web services that return SOAP responses. I loaded (parse) the envelope document into xml beans. Now, I need to extract the xml document that is under the envelope body element, when I can't know which xmlbeans document is there. Can anyone provide me a code snippet for the

Re: navigating on XmlObjects

2007-08-06 Thread Asaf Lahav
On 8/6/07, Asaf Lahav [EMAIL PROTECTED] wrote: I have several web services that return SOAP responses. I loaded (parse) the envelope document into xml beans. Now, I need to extract the xml document that is under the envelope body element, when I can't know which xmlbeans

Testing

2007-08-01 Thread Asaf Lahav
I'm just testing to see if anyone can see my mail. Please respond. Thanks in advance, Asaf

Using existing XmlBean jars when generating new ones

2007-08-01 Thread Asaf Lahav
Hi all, The situation is like this. I have a schema A and I generated Xmlbeans for it. I have another schema B that imports schema A and references element definitions of schema A. When I generate xmlbeans for schema B the jar contains xmlbeans for both schemas (A and B) all over again.

RE: Using existing XmlBean jars when generating new ones

2007-08-01 Thread Asaf Lahav
. Include jar for schema A (generated by XMLBeans) on the classpath when generating the jar for schema B. Then you only have the classes for B in that jar. Regards, Johannes Asaf Lahav schrieb: Hi all, The situation is like this. I have a schema A and I generated

RE: Using existing XmlBean jars when generating new ones

2007-08-01 Thread Asaf Lahav
by XMLBeans) on the classpath when generating the jar for schema B. Then you only have the classes for B in that jar. Regards, Johannes Asaf Lahav schrieb: Hi all, The situation is like this. I have a schema A and I generated Xmlbeans for it. I have another schema B that imports schema

Iterating over XmlObject child elements

2007-08-01 Thread Asaf Lahav
Hi all, Can anyone provide me with sample code on how to iterate over XmlObject child elements using xml beans API?

Navigating through XmlObject with cursor

2007-08-01 Thread Asaf Lahav
Trying to navigate through an XmlObject using a cursor I've come up with the following code: 1) XmlObject xyzDocument = XmlObject.Factory.parse(new File(c:/xyz.xml)); 2) System.out.println(xyzDocument); 3) XmlCursor cursor = xyzDocument.newCursor(); 4) if(cursor.toFirstChild()) {

FW: Navigating through XmlObject with cursor

2007-08-01 Thread Asaf Lahav
and not in the xml-fragment element, how can I get to it? Thanks in advance, Asaf _ From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 7:13 PM To: 'user@xmlbeans.apache.org' Subject: Navigating through XmlObject with cursor Trying to navigate through

Bind a schema to an XmlObject

2006-10-19 Thread Asaf Lahav
I have an xml document which is dynamically built. It is impossible for me to know what schema the xml document will conform to until it is entirely built. Is it possible to Parse the xml document into an XmlObject, bind a schema to it and validate? If possible, How? Thanks in

a simple xsd question

2006-10-18 Thread Asaf Lahav
Can anyone explain to me why this xml doesn't validate with the following XSD? This is the XSD: ?xml version=1.0 encoding=UTF-8? schema xmlns=http://www.w3.org/2001/XMLSchema elementFormDefault=qualified attributeFormDefault=unqualified element name=SubmitPurchaseOrder complexType

RE: a simple xsd question

2006-10-18 Thread Asaf Lahav
What would be the best way to define a complex type without forcing a specific order of elements? -Original Message- From: cbryant [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 5:50 PM To: user@xmlbeans.apache.org Subject: Re: a simple xsd question xs:sequence tags

RE: a simple xsd question

2006-10-18 Thread Asaf Lahav
. There are restricions however: See here http://www.w3schools.com/schema/schema_complex_indicators.asp for details. Rhys -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: October 18, 2006 1:09 PM To: user@xmlbeans.apache.org Subject: RE: a simple xsd question What would be the best way

Backward compatibility

2006-09-17 Thread asaf lahav
Is XMLBeans 2.2.0 backward compatible to XMLBeans 2.0.0?

FW: SchemaDocument parse problem

2006-09-03 Thread Asaf Lahav
Hi all, I am attempting to use the SchemaDocument factory parse function, an get the following exception: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3386) at