Re: troubles executing XmlObject.selectPath

2007-04-16 Thread Jacob Danner
Can we see the output of the following: XmlObject[] elems = null; // ADD this line System.out.println(document.xmlText()); elems = document.selectPath(namespaceDeclaration + $this/bs:bookstore/book[author='author2']/author); On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ciao Radu,

Re: Method call order while marshalling

2007-04-11 Thread Jacob Danner
://issues.apache.org/jira/browse/XMLBEANS-319 2) I think this is standard apache infrastructure and might be better directed towards those alias'. Jacob Danner On 4/11/07, Ivan Balashov [EMAIL PROTECTED] wrote: Hi, Just want to say a couple of things, which might have been already told, if so, my

Re: Validation issue

2007-04-10 Thread Jacob Danner
How are you trying to validate without parsing? If you are doing something like: XmlObject.Factory.parse(yourContent).validate(); then this is expected behavior as you are NOT validating against a type. -Jacob Danner On 4/10/07, Diego García González [EMAIL PROTECTED] wrote: Hi. I need

Re: XMLBeans and SchemaTron

2007-04-05 Thread Jacob Danner
I don't believe so. -Jacobd On 4/5/07, Rafael Tatsuya Icibaci [EMAIL PROTECTED] wrote: Hi all, Anyone knows if XMLBeans support SchemaTron ? Atenciosamente Rafael T. Icibaci IBM Middleware EAI Team ( + 55 11 2113-7685 È + 55 11 9299-7840 * [EMAIL PROTECTED]

Re: How to use sdownload behind a proxy ?

2007-03-30 Thread Jacob Danner
the tool sdownload, does not provide proxy configuration parameters I'm not behind a proxy so I'm not positive if this will work but ... You can try to configure your JRE proxy settings as described at the link below http://www.java.com/en/download/help/520600.xml if your XSD/WSDL has

Re: xmlbeans 2.2 source

2007-03-21 Thread Jacob Danner
Take a peek at the link below. I have a copy of src from SVN. http://xmlbeans.apache.org/sourceAndBinaries/index.html#Binary+or+source%3F -Jacobd On 3/21/07, asaf.lahav [EMAIL PROTECTED] wrote: Hi all, Where can I download the xmlbeans 2.2 source from?

Re: Help required wrt EntityResolver

2007-03-17 Thread Jacob Danner
Hi Siddharth, A couple of things. First, this functionality (generating an instance from a schema) is already available in XMLBeans. If you look int he bin directory there is even a cmd/sh script for it where you pass in the name of the type you want to generate an instance for, etc. That might

Re: Help required wrt EntityResolver

2007-03-17 Thread Jacob Danner
Also, if you are curious about schema type compilation, I wrote some test code that got contributed a couple of years ago. It lives under test/src/compile/ ... Best of luck, -Jacobd On 3/17/07, Jacob Danner [EMAIL PROTECTED] wrote: Hi Siddharth, A couple of things. First, this functionality

Re: Parser corruption?

2007-03-16 Thread Jacob Danner
is good). That's why I'm guessing that something is becoming corrupted in the Factory. Thanks, Garth On 3/15/07, Jacob Danner [EMAIL PROTECTED] wrote: Hi Garth, From my experiences with Xmlbeans, Error #1 is expected whenever bad/invalid xml is encountered. XMLBeans was not made to work with bad

Re: Is XMLBeans fit for GML?

2007-03-16 Thread Jacob Danner
Hi Peter, Here's my biased opinion, use XMLBeans for everything you can ;) I was able to build schema types using scomp (schema compiler) and the gmlBase.xsd with only minor modifications. The modifications I made were to schemaLocation paths in the xsd:import statements. OUTPUT: scomp

Re: Parser corruption?

2007-03-15 Thread Jacob Danner
Hi Garth, From my experiences with Xmlbeans, Error #1 is expected whenever bad/invalid xml is encountered. XMLBeans was not made to work with bad xml. As far as error #2, I'm not sure why you are getting that, but I'll investigate a little bit more. So I understand, are you saying error #2

Re: XML Beans and xQuery FLOWR

2007-03-13 Thread Jacob Danner
Hi Alexander, I'm far from an expert in xpath/xquery etc, but I've worked a little with it. I would recommend starting by taking a look at the XQueryXPath Sample on the xmlbeans site: http://xmlbeans.apache.org/samples/XQueryXPath.html . I've found that useful for clearing up some of my

Re: Dynamically creating the elements in a structure

2007-03-12 Thread Jacob Danner
Hey Fermin, I haven't seen a previous post on the list about this topic. That may be why you didn't get an answer :) What problems are you seeing when you try the code you list below? If I understand your problem correctly, you have something like: el1/el1 and you want to determine what type

Re: Dynamically creating the elements in a structure

2007-03-12 Thread Jacob Danner
I haven't tried, but do you have problems with Class.forName(someRootAsString).newInstance() ? The only thing I can think of that might cause problems would be in the lookup of the xsbs. Can you update teh list with what issues you have? Thanks, -Jacobd On 3/12/07, Fermin Da Costa Gomez [EMAIL

Re: Dynamically creating the elements in a structure

2007-03-12 Thread Jacob Danner
Can we see the stack traces? On 3/12/07, Fermin Da Costa Gomez [EMAIL PROTECTED] wrote: I haven't tried, but do you have problems with Class.forName(someRootAsString).newInstance() ? Correct. Assuming i'm not making some very silly misstake The only thing I can think of that might cause

Re: Dynamically creating the elements in a structure

2007-03-12 Thread Jacob Danner
Cool, Thanks much for the code Christopher. Fermin, does this work for you? -Jacobd On 3/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think what you actually want to be doing is the following: Object result = null; Class destClass = Class.forName(beanId); Class[]

Re: xmlBeans 2.2.0 and supported Java versions

2007-03-12 Thread Jacob Danner
Hi Krister, I have not had any troubles working with xmlbeans under JDK 1.4 or JDK 1.5. There exists a version that should run on 1.3 as well, but I have not tinkered with that much. There is a feature to generate getters and setters for generics in the generated scomp code via 'scomp

RE: Please help: Cannot compile http://www.w3.org/2001/XMLSchema

2007-02-26 Thread Jacob Danner
I modified the schema to work (at least compile) with xmlbeans. The fixes were simple, but I don't know if they maintain complete compatibility with the 2000/10 version. To update the schema, I: 1) updated the 2000/10 namespace to 2001 2) changed any references to the 2000/10

RE: Find object by attribute value

2006-11-26 Thread Jacob Danner
I think the easiest thing would be to using xpath. I learned the basics of it from a zvon tutorial. Try a search for xpath tutorial. There is also a sample using xmlbeans http://xmlbeans.apache.org/samples/XQueryXPath.html I think your xpath would be something like: //[EMAIL

RE: dynamic generation of xml files from an xsd

2006-11-22 Thread Jacob Danner
There is a utility to generate sample xml instances from XSD via a command line tool. Check out xmlbeans_trunk\bin\xsd2inst The main class is located in org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator I'm not sure this will help you terribly as it sounds like you want to know about all

RE: getting java class names/javadocs for generated classes

2006-11-07 Thread Jacob Danner
II find it easiest with an editor that has code completion. If this is not available to you (eclipse, jedit), the naming and methods get generated based on the following: All classes extend org.apache.xmlbeans.XmlObject, you can find the javadoc for this class online. The packages

RE: a simple xsd question

2006-10-18 Thread Jacob Danner
Try the xsd:all model group -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 10:09 AM To: user@xmlbeans.apache.org Subject: RE: a simple xsd question What would be the best way to define a complex type without forcing a specific order of

RE: Can XMLBeans be used to Generate XML withou Schema

2006-09-03 Thread Jacob Danner
You can work with easily generate XML without the normal schema types. If you are using the 2.x version there are a few ways to do this. The way I prefer is via the XmlCursor API. Additionally, in the 2.x version of XmlBeans, you can manipulate the xmlbeans via the DOM implementation that

RE: Creating XML fragments

2006-08-30 Thread Jacob Danner
It is more than possible to use work with fragments or different schema types and not a whole document. In your code below, try something like: Request request = new Request.Factory.newInstance(); Also, I'm not sure if this line: request.setOper(OperType.CLEAN); is correct as I'm not used to

RE: Unable to create a soap message using xmlbeans [2.1.0]

2006-08-01 Thread Jacob Danner
Title: Unable to create a soap message using xmlbeans [2.1.0] at quick glance, it looks like you might want to add the SAAJ jars to your classpath From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 10:38 AMTo: user@xmlbeans.apache.orgSubject: Unable to create

RE: Unable to parse xml got this exception! help needed

2006-04-24 Thread Jacob Danner
Title: Unable to parse xml got this exception! help needed This actually seems like one for the user list. XML object is not of type D=ROOT ELEMENT Ive seen this when Ive had an invalid XML fragment. Although the error is not terribly clear, when Ive seen this its because I was missing a

RE: Dynamic compilation of XML-Schema

2006-04-19 Thread Jacob Danner
I know the compilation at runtime is possible, and from there it SHOULD be possible to use the APIs if you load them right. When you compile you can get information about the Schema type system that you may find helpful rather than using reflection. Here is a code snippets you might find useful:

RE: IMS cp 1.0 xsd not recognised

2006-01-16 Thread Jacob Danner
Young [mailto:[EMAIL PROTECTED] Sent: Monday, January 16, 2006 4:02 AM To: user@xmlbeans.apache.org Subject: Re: IMS cp 1.0 xsd not recognised thanks for that - why would 2001 be special? or is there something special about 1999? thanks, Alistair On 13 Jan 2006, at 16:31, Jacob Danner wrote

RE: IMS cp 1.0 xsd not recognised

2006-01-13 Thread Jacob Danner
You might be getting this because the schema is 1999 and not 2001 -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 8:32 AM To: user@xmlbeans.apache.org Subject: IMS cp 1.0 xsd not recognised XMLBeans builds from the IMS CP 1.1 xsd fine

RE: Axis2.0.9 question

2005-10-11 Thread Jacob Danner
Hey Uday, Sorry I can't post an answer, you may want to post to the axis mailing list. They usually have a better depth of knowledge on the axis toolkit. -Jacobd -Original Message- From: Uday Kamath [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 1:49 PM To:

RE: Unmarshalling WSDL File

2005-09-28 Thread Jacob Danner
You can also scomp the WSDL schema. Take a look on w3c for the schema. I've had some success with this method. -Jacobd -Original Message- From: Gregor Urbanek [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 7:23 AM To: user@xmlbeans.apache.org Subject: Re: Unmarshalling

RE: Any similar product for C/C++ ?

2005-09-19 Thread Jacob Danner
Title: Message There was something proposed on the list by a representative although I havent seen any code yet. During the proposal, someone on the list noted another project with similar features to xmlbeans http://touk.pl/svn/projects/xmlbeansxx Hope that helps, -Jacobd

RE: Jar file internals?

2005-08-01 Thread Jacob Danner
I don't think any. All of the files beginning with schema contain the .xsb files that maintain sync with the xml infoset. I'm not sure what would happen if you deleted those, but I'm sure things like validate and parse would fail. -Original Message- From: Steve Davis [mailto:[EMAIL

<    1   2   3