Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Christopher . Mathrusse
I?m using XMLBeans in a project running on: [ ] jdk 1.3 [ ] jdk 1.4 [ ] jdk 1.5 [X] jdk 1.6 Cezar Andrei cezar.and...@oracle.com 05/11/2009 01:58 PM Please respond to user@xmlbeans.apache.org To d...@xmlbeans.apache.org, user@xmlbeans.apache.org cc Subject [POOL] jdk 1.4 support

Re: SCOMP not found on MAC

2009-02-04 Thread Christopher . Mathrusse
You'll need to execute it in one of the following ways: ./scomp -out catalog.jar catalog.xsd or ~/Library/xmlbeans-2.4.0/bin/scomp -out catalog.jar catalog.xsd This is a PATH issue, not an issue with XmlBeans. The problem is that scomp is not in your PATH so you must specify where it can

RE: Dynamically creating the elements in a structure

2007-03-13 Thread Christopher . Mathrusse
I would open a cursor and perform a select. All objects that you are working with extend XmlObject, so you have complete access to the API's. But this assumes that you would have knowledge of the XPath that you want to access, so you would need to know the structure of the document and where

RE: Dynamically creating the elements in a structure

2007-03-12 Thread Christopher . Mathrusse
I think what you actually want to be doing is the following: Object result = null; Class destClass = Class.forName(beanId); Class[] innerClasses = destClass.getClasses(); Class factory = null; for (int i = 0; i innerClasses.length; i++) { if

RE: How to add DOCTYPE to my XmlObject

2007-03-02 Thread Christopher . Mathrusse
I found it. XmlDocumentProperties props = confirmDoc.documentProperties();props.setVersion(orderRequest.documentProperties().getVersion());props.setEncoding(orderRequest.documentProperties().getEncoding());props.setDoctypeSystemId(DOCTYPE_SYSTEM_ID);props.setDoctypeName(DOCTYPE_NAME); From:

RE: Data binding on DTD

2007-01-29 Thread Christopher . Mathrusse
This is a challenge. Xml Spy does a fair job at this but you must remember that some of the data types defined in dtd don't always map well to schema. I ran into this converting the RosettaNet dtd into a schema. This was an enormous challenge and took a great deal of patience and time.

Namespace issues

2007-01-18 Thread Christopher . Mathrusse
I have a schema that defines a request and a confirmation as it's root elements. Many of the data types contained under these two root elements are the same and are defined as global. The problem I'm having is when I create a confirmation document and copy objects from the request document

RE: How to prevent xsi:nil=true from being created

2007-01-09 Thread Christopher . Mathrusse
This problem, per the documentation, is attributed to calling a setXXX method on your XmlBean objects and assigning a null value. If you don't want the elements to appear in your document then you should not call the setXXX method passing in a null. If the null has been assigned and you do

Need help with XmlCursor

2006-06-29 Thread Christopher . Mathrusse
I'm having a bit of trouble getting my queries to work correctly. I have a rather complex XML schema that is deep. I want to perform a query to get all of the CustomerInformation elements throughout the document. This I accomplish very easily: custInfoCursor =