Re: user@xmlbeans.apache.org and complex schema

2008-01-17 Thread Jacob Danner
Hi Pierre, How are you creating your schema jar. It appears as though you might have a jar that only contains the java src and not the .xsb (xml schema binary files), etc. Can you crack your jar and verify the xsbs and the file mentioned in the stacktrace exist? Can you also let us know how you

Re: XSDL 1.1 support in XmlBeans..

2008-01-16 Thread Jacob Danner
XMLBeans in this situation? --- Jacob Danner [EMAIL PROTECTED] wrote: Thats correct, Schematron, RelaxNg, etc. are not supported. Only XML Schema 1.0 is supported. -jacobd On Jan 14, 2008 9:48 PM, dave [EMAIL PROTECTED] wrote: just to double confirm- XMLBeans doesn't

Re: XSDL 1.1 support in XmlBeans..

2008-01-14 Thread Jacob Danner
Thats correct, Schematron, RelaxNg, etc. are not supported. Only XML Schema 1.0 is supported. -jacobd On Jan 14, 2008 9:48 PM, dave [EMAIL PROTECTED] wrote: just to double confirm- XMLBeans doesn't support other schema languages like Schematron,etc? -D --- Radu Preotiuc-Pietro [EMAIL

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
Hi Paul, Can you do a System.out.println(contact.xmlText()); in each of the scenarios below? How is Address defined in the schema? Thanks, -jacobd On Jan 11, 2008 9:29 AM, Paul French [EMAIL PROTECTED] wrote: Hello, I have created a library using scomp from an xml schema. I am building a

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
be due to XMLBeans passing back a copy of the Calendar object when calling contact.getDateTime() -- *From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 11 January 2008 17:52 *To:* user@xmlbeans.apache.org *Subject:* Re: [newbie] difference between addNew

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
snippet but couldn't see how Have a good weekend!! -- *From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 11 January 2008 18:56 *To:* user@xmlbeans.apache.org *Subject:* Re: [newbie] difference between addNew and (Factory.newInstance+ set) Thought I

Re: is XSD text file stored at all in XMLBeans output?

2008-01-10 Thread Jacob Danner
Hi Dave, In most cases, running scomp will create a jar that includes the schemas in at schemaorg_apache_xmlbeans\src in the java archive. If you need direct access to it, you can always try accessing it via resources and/or classloaders. AFAIK, xmlbeans does not provide any methods for direct

Re: Tracking the source of beans, to make writing out easier?

2008-01-10 Thread Jacob Danner
Hi Nick, I'm not sure I completely understand the issue, are you trying to write out many standalone xml instances that all comprise a larger xml instance? Wouldn't this be made simpler by keeping a reference to the 'parent' instance around? -jacobd On Jan 4, 2008 7:44 AM, Nick Burch [EMAIL

Re: map namespaces and ignore schemaLocation

2008-01-10 Thread Jacob Danner
Hi Jan, Have you thought about 'pre-processing' the instances before using the specific types. In other words, scomp the schema you want using the namespace you want. Then, when creating your instance, try XmlObject xo = // create instance via parse/newInstance XmlCursor xc = xo.newCursor();

Re: Soap Encoding support

2008-01-10 Thread Jacob Danner
Soap Encoding usually means your WSDL is RPC/Encoded. XmlBeans really works best with document/literal services because types are defined by the schema document. On Dec 20, 2007 8:18 PM, Amila Suriarachchi [EMAIL PROTECTED] wrote: Does xml beans supports soap encoding? I generated a data

Re: how stable is xpath handling in XMLBeans (even a basic expression fails with RunTimeException)

2008-01-02 Thread Jacob Danner
is required for XQuery. Am only using Xpath. To my understanding, I only need xbean_xpath.jar in addition to regular Jars to do some complex(like predicates,etc) Xpath processing. -D --- Jacob Danner [EMAIL PROTECTED] wrote: Do you have saxon8.jar in your classpath when executing these xpath

Re: Methods to query the xsd attributes?

2007-12-28 Thread Jacob Danner
It is SalesType.type I was referring to. you can do something like: SchemaType st = SalesType.type; SchemaProperty[] sp = st.getAttributeProperties() -or- SchemaProperty sp = st.getAttributeProperty(new QName(attribute_your_looking_for); sp. ...

Re: New XML Bean user

2007-12-28 Thread Jacob Danner
It sounds like you may want to get familiar with XMLBeans with the tutorial projects. The following will be particularly useful to what you are trying to accomplish http://xmlbeans.apache.org/docs/2.0.0/guide/conIntroToTheSchemaTypeSystem.html -jacobd On Dec 28, 2007 5:16 PM, yazid [EMAIL

Re: Where does the x-: comes?

2007-12-27 Thread Jacob Danner
I believe this comes from the already defined namespaces in your xsd/instance. The namespace values get munged to something shorter for the prefix and thats whats being used. For Example if your namespace is http://foo, xmlbeans might translate that into something like xmlns:foo=http://foo; To

Re: Methods to query the xsd attributes?

2007-12-27 Thread Jacob Danner
Try SaleType.schemaType for that information On Dec 27, 2007 4:34 PM, lyassa [EMAIL PROTECTED] wrote: Are there any methods in the generated Java classes to get the attributes of the schema that generated the code? E.g. given the xsd snippet below xs:sequence xs:element

Re: inserting processing insruction without using XMlCursor..

2007-12-21 Thread Jacob Danner
I would suggest trying out the XmlCursor APIs. If you aren't comfortable with them, you can always try using the DOM APIs too. Otherwise, I don't know of a 'convenience' method like the getters and setters on an XmlObject that would add this for you. You may want to try XmlObject.set(XmlObject)

Re: inserting processing insruction without using XMlCursor..

2007-12-21 Thread Jacob Danner
with XMLBeans generated interfaces to add such PIs into the instance being generated? sample code would help.. -D --- Jacob Danner [EMAIL PROTECTED] wrote: I would suggest trying out the XmlCursor APIs. If you aren't comfortable with them, you can always try using the DOM APIs too

Re: Remove node from dot-syntax

2007-12-20 Thread Jacob Danner
How is the type defined in your xsd? You may want to check your minOccurs or nillable attributes on teh xsd On Dec 20, 2007 6:31 AM, janbanan [EMAIL PROTECTED] wrote: Hi, I trying to work with an xmlbean from a dot-syntax property (lacking a better word..). What I have to go on is a string

Re: Using inst2xsd tool to generate schema

2007-12-18 Thread Jacob Danner
, I tried but that does not seem to work. Is it something to do with my XML file at all? Regards sunder But it Jacob Danner-2 wrote: Hi Zapo, My guess on quick glance is the @ sign in parameter name MATCHVALUE -jacobd On Dec 18, 2007 5:37 PM, Zapo [EMAIL PROTECTED] wrote: Hi

Re: Using inst2xsd tool to generate schema

2007-12-18 Thread Jacob Danner
Hi Zapo, My guess on quick glance is the @ sign in parameter name MATCHVALUE -jacobd On Dec 18, 2007 5:37 PM, Zapo [EMAIL PROTECTED] wrote: Hi, I have the following XML file given and I am trying to generate schema for the below XML But I keep getting this error Could not read file:

Re: any need to store generated src java files from scomp?

2007-12-16 Thread Jacob Danner
) for the run time can be generated out of XSD. -D --- Jacob Danner [EMAIL PROTECTED] wrote: Its been my experience thats all you should keep in version control (the XSD). I also try not to keep anything that could be generated under version control, this means I have to fuss with changes

Re: using jaxen/xalan with XMLBeans for Xpath processing..

2007-12-14 Thread Jacob Danner
I believe xmlbeans 1.04 used Jaxen as its XPath engine, in the 2.0 release the engine was updated to use saxon as the xquery/xpath engine. On Dec 14, 2007 10:52 AM, dave [EMAIL PROTECTED] wrote: rephrasing the question: can i use jaxen or xalan jars along with XMLBeans for xpath processing?

Re: any need to store generated src java files from scomp?

2007-12-14 Thread Jacob Danner
Its been my experience thats all you should keep in version control (the XSD). I also try not to keep anything that could be generated under version control, this means I have to fuss with changes much less. Also, while the java src for the xmlbean might be in your version control, you will still

Re: Using cursor to ierate and adding to map

2007-12-11 Thread Jacob Danner
Why don't you just do linkedHashMap.put ( item1.getSecurity() , item1.getServer() ) Or are you trying to do something else? ie, what are you trying to store in this hashmap? -jacobd On Dec 11, 2007 3:17 PM, Zapo [EMAIL PROTECTED] wrote: Greetings, I am trying to iterate a XML using cursor

Re: Parsing and Storing in Map

2007-12-10 Thread Jacob Danner
models? Pardon my ignorance I didn't know it. Please let me know which one should use and how? I tried all standard examples and they wouldn't work too and i thought I might be having an old jar or code. :working:. Appreciate your education. ~Zapo Jacob Danner-2 wrote: What does

Re: R: R: package

2007-12-10 Thread Jacob Danner
Hi Luca, In other terms, that piece of documentation is a warning. Since XMLBeans keeps all of the xml infoset information about the schema type system in the .xsb files, this is simply a warning to let you know there may be conflicts as multiple similar instance of the xsb file might exist on the

Re: Problem with FileSets in XML Beans Ant Task?

2007-12-10 Thread Jacob Danner
I think it might be an issue with your fileset definition . Can you try? fileset dir=WebContent\WEB-INF\xsd include name=**/*.xsd/ include name=**/*.xsdconfig/ /fileset and let us know what happens? -jacobd On Dec 10, 2007 11:07 AM, Dário Abdulrehman [EMAIL PROTECTED] wrote: -BEGIN PGP

Re: Problem with FileSets in XML Beans Ant Task?

2007-12-10 Thread Jacob Danner
-BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: http://firegpg.tuxfamily.org iD8DBQFHXZZAHfwTJs1Ix7cRAkXKAKCzuXuiLwy9YPGyC4kMJ8OCBFijPACbB/cl DZyrKAZb/X5uoxiqbIiogQY= =7Tp+ -END PGP SIGNATURE- On Dec 10, 2007 7:30 PM, Jacob Danner [EMAIL

Re: Parsing and Storing in Map

2007-12-09 Thread Jacob Danner
) { e.printStackTrace(); } } } Thanks Jacob. Jacob Danner-2 wrote: Hey Zapo, I think this question has less to do with XmlBeans and more to do with algorithm implementation. I think it might be easiest to use a mapTestCase if you want

Re: keyref validation issue..

2007-12-09 Thread Jacob Danner
Hi Samy, I'm not seeing any validation issues from this when I use the instance and the xsd you posted. What is the xmlbeans error you are seeing? I've generated an instance using xmlbeans xsd2inst tool and attached it in case you want another reference. The instance validates to the xsd also.

Re: Writing big files

2007-12-05 Thread Jacob Danner
Comments inline: -jacobd On Dec 5, 2007 2:15 AM, [EMAIL PROTECTED] wrote: As I understand, the only way of writing an xml file is filling a document object with data and then saving it. Any type that inherits from XmlObject has a save method, so you aren't limited to the document object.

Re: Ant Task Bean Generation problem

2007-12-05 Thread Jacob Danner
Add the elementFormDefault=qualified attribute to your schema element, or you can add the following namespace in your schema element xmlns= http://platino.com/servicios/registro; Also, it looks like your xmlns:platino namespace my have a space at the end ... registro -jacobd On Dec 5, 2007

Re: Rv: Help with a schema file

2007-12-03 Thread Jacob Danner
but i haven't solved the problem. Thanks for your message. - Mensaje original De: Jacob Danner [EMAIL PROTECTED] Para: user@xmlbeans.apache.org Enviado: sábado, 1 de diciembre, 2007 8:03:40 Asunto: Re: Rv: Help with a schema file As its an industry schema, you may just want to wait

Re: Rv: Help with a schema file

2007-12-03 Thread Jacob Danner
I'm asking because, the link returns a page not found on the server -jacobd On Dec 3, 2007 9:27 AM, Jacob Danner [EMAIL PROTECTED] wrote: What is the error you are seeing? -jacobd On Dec 3, 2007 9:21 AM, Adrián Cuartero [EMAIL PROTECTED] wrote: I can't wait because i must finish my

Re: Rv: Help with a schema file

2007-12-03 Thread Jacob Danner
:51 AM, Adrián Cuartero [EMAIL PROTECTED] wrote: Sorry, i paste a bad link http://www.imsglobal.org/xsd/AccessForAll_v1p0.xsd that's right. Thanks - Mensaje original De: Jacob Danner [EMAIL PROTECTED] Para: user@xmlbeans.apache.org Enviado: lunes, 3 de diciembre, 2007 18:30:07

Re: Saxon, JAXP and classpath

2007-12-03 Thread Jacob Danner
If you do give Saxon 8.9 a try will you let us know how it turns out? -jacobd On 12/3/07, Wing Yew Poon [EMAIL PROTECTED] wrote: The problem with Saxon is that it makes non-backward-compatible API changes from one dot release to another (8.x to 8.y). XMLBeans 2.3.0 was tested with Saxon 8.8,

Re: Rv: Help with a schema file

2007-12-03 Thread Jacob Danner
but this not solve my problem because i must validate the files and if i use this option (i've tried yet) all files aren't valid - Mensaje original De: Jacob Danner [EMAIL PROTECTED] Para: user@xmlbeans.apache.org Enviado: lunes, 3 de diciembre, 2007 19:01:10 Asunto: Re: Rv: Help

Re: XMLBeans with Axis2 - getter methods

2007-11-30 Thread Jacob Danner
If your web service was using rpc/enc (I'm gathering that from the soap:enc) you may want to make sure the namespace values you are getting back match properly with what is expected by responseDocument. Otherwise, I know I've only used XmlBeans with doc/literal services. What happens when you

Re: XML generation

2007-11-30 Thread Jacob Danner
As far as I remember, xmlText was best suited for system.out display. If you want to save the file with the xml pi, try the XmlObject.save() method. Hope this helps, -jacobd On 11/28/07, baisa, darwin [EMAIL PROTECTED] wrote: Hi, I am generating XML text using my XMLBeans document object.

Re: Rv: Help with a schema file

2007-11-30 Thread Jacob Danner
As its an industry schema, you may just want to wait if you can. What errors are you seeing and what have you done to correct the issues? -jacobd On 11/27/07, Adrián Cuartero [EMAIL PROTECTED] wrote: Hi list I'm developing a program who parses files from this schema file

Re: How to not add namespace on save

2007-11-26 Thread Jacob Danner
I'm confused, does the instance you are parsing already have the namespace defined? Why is the namespace being set as the default? Thx, -jacobd On 11/26/07, bob bob [EMAIL PROTECTED] wrote: I have an xml bean that I load an xml document by adding the namespace programatically (because the xml

Re: Missing namespaces and XML header

2007-11-16 Thread Jacob Danner
How are you saving the file? XmlBeans has an method that will write the contents out to a file and as far as I remember should add the ?xml ... With regard to adding the namespaces, you can add them via the XmlOptions class or XmlCursor Api. best of luck, -jacobd On Nov 16, 2007 7:29 AM, Regis

Re: Missing namespaces and XML header

2007-11-16 Thread Jacob Danner
. I invoke the document.save(OutputStream out) to save the content in a XML file. Is there a way to save xml file without the prefixes nfe: from the tags? I tried the method insertNamespace() from XmlCursor and it works! =c) Thanks for help Regis -Mensagem original- *De:* Jacob

Re: Which ORM and XML binding

2007-11-13 Thread Jacob Danner
From previous posting on teh mailing list it sounds like some folks have had some success with hibernate. I can't say I've needed to do what you are describing, but it should be possible with some additional impl on your part. As far as managing the database side of things, XMLBeans doesn't do any

Re: Parsing from input stream

2007-11-12 Thread Jacob Danner
Is there additional content at the start of the file? can you check the start of the contents of the stream too? i.e, I think there may be some additional bytes being added that are causing this. Do you get this problem when you are not using a byte stream? -jacobd On 11/11/07, Balakumar

Re: ignore multi definitions

2007-11-01 Thread Jacob Danner
You should look into the sfactor utility available in the bin directory. That utility will take common types and create a new xsd from them -jacobd On 11/1/07, Psoroulas John [EMAIL PROTECTED] wrote: The real xsds that I want to process have common some common schema types, maybe a solution

Re: how to preserve string spaces

2007-11-01 Thread Jacob Danner
Hi Vinh, There is a schema attribute whitespace=preserve you can use when defining the string type in your xsd. -jacobd On 11/1/07, Vinh Nguyen (vinguye2) [EMAIL PROTECTED] wrote: Hi, I have an XmlBeans-generated object with a string property. I'm trying this property with a string value

Re: Single-item sequence causes failure

2007-10-23 Thread Jacob Danner
are causing issues -- I confirmed it by adding another (arbitrary) element to them, and their type suddenly appears after compilation. Any ideas? Thanks, Vance Original Message Subject: Re: Single-item sequence causes failure From: Jacob Danner [EMAIL PROTECTED

Re: instantiate given a schema type

2007-10-22 Thread Jacob Danner
*From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* Monday, October 22, 2007 11:41 AM *To:* user@xmlbeans.apache.org *Subject:* Re: instantiate given a schema type Have you looked at the SchemaTypeLoader APIs http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans

Re: Single-item sequence causes failure

2007-10-22 Thread Jacob Danner
right, this is another rpc/encoded schema and you get the same error message. http://api.eurocv.eu/euroserver.php?wsdl:525:5: error: src-resolve: attribute 'a [EMAIL PROTECTED]://schemas.xmlsoap.org/soap/encoding/' not found. One other item you can use to get around this is to add the

Re: Single-item sequence causes failure

2007-10-22 Thread Jacob Danner
The type of the sequence is actually an array of type: apachesoap:mapItem I don't think this is the cause of your problem. The WSDL is rpc/encoded which doesn't really fit the document/literal style that it should be used with. I get the typical error message when trying to compile the schema

Re: underlying xml

2007-10-19 Thread Jacob Danner
Hi Azfar, XmlObject maintains the xml as its manipulated. In your code above, basically what your instance would look like is: XyzTypeDocument doc = XyzTypeDocument.Factory.newInstance(); xyz / XyzType xyzType = doc.addNewXyzType(); xyzxyzType //xyz xyz.setSomething (something); xyz

Re: Creating javadocs

2007-10-18 Thread Jacob Danner
Hi Steven, I don't think there is a direct way to create javadoc via scomp, but you can generate the java src from it then run javadoc over the srcs. scomp -src folderName ... should output the generated java srcs to folderName Best of luck, -jacobd On 10/18/07, Steven Crosley [EMAIL PROTECTED]

Re: FilterXmlObject usage?

2007-10-18 Thread Jacob Danner
I can't say I've ever needed to work with that class directly. For more information, have you tried looking through the svn depot sources. I thought it was used internally a couple of places. Just out of curiousity, what do you intend/need this class for? -Jacobd On 10/18/07, Cory Virok [EMAIL

Re: Parsing problem

2007-10-17 Thread Jacob Danner
How are you building this document? in particular, how does ?xml version=1.0 ? get added? -Jacobd On 10/17/07, Anil Oggi [EMAIL PROTECTED] wrote: ?xml version=1.0 ? ONLINE QUERY_REVOLV CODE123/CODE REFNO200710171042428/REFNO PCODERLCD/PCODE

Re: XmlBeans behaving different in service

2007-10-17 Thread Jacob Danner
This is just a guess, but is the endpoint (server) needing an RPC/encoded payload? Otherwise are you using Axis in your container? If so which version? Are you seeing: http://issues.apache.org/jira/browse/AXIS2-2578https://issues.apache.org/jira/browse/AXIS2-2578 thanks, -Jacobd On 10/17/07,

Re: Réf. : RE: Problem with boolean type

2007-10-10 Thread Jacob Danner
would restricting it via an enumeration work for you Albert? -Jacobd On 10/10/07, Wing Yew Poon [EMAIL PROTECTED] wrote: This one is not a bug. true and 1 are both valid values for the schema type. When XMLBeans writes the xml, it uses the canonical lexical representation, which is true.

Re: error: Unexpected element: CDATA

2007-10-09 Thread Jacob Danner
FooDocument.Factory.parse(MyXmlFile.xml); is an incorrect usage of the api. The string value you intend to should be something along the lines of: String fooDoc = foobazsomeVal/baz/foo; FooDocument.Factory.parse(fooDoc); In this case, I think the error message is to be expected as FooDocument is

Re: Problem in Converting XSD to Document

2007-10-04 Thread Jacob Danner
is the list. Is it possible? Also can u suggest me the use of xs:ENTITIES and xs:NMSTOKENS ? There are little abount it in the internet . Thanks in advance Jacob Danner-2 wrote: Are you referring to the use of xsd:list? Then as far as I know there is no way to do this because xsd:list

Re: Problem with XMLCalendar

2007-09-21 Thread Jacob Danner
Hi David, I ran into this sometime ago, but I think its by design. Calendar.MONTH starts at 0 and not January == 1. http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#MONTH whereas Calendar.DATE starts at 1. Hope this helps, -Jacob Danner So I think you are getting the expected

Re: evaluating xmlbeans and best practices

2007-09-14 Thread Jacob Danner
layer' to abstract from changes associated with versioning, but without the details or knowing what exactly you mean by transfer objects its hard to know true pros and cons. Hope this helps, -Jacob Danner On 9/13/07, zulu [EMAIL PROTECTED] wrote: Hi All, We have a requirement where in we need

Re: Problem with tree schema

2007-09-06 Thread Jacob Danner
structure for a tree-structured xml schema? Not AFAIK, however you may want to look into the venetian blind pattern as you can work 'Type' classes in a manner like you are seeking. Hope this helps, -Jacob Danner On 9/6/07, Ole Laurisch [EMAIL PROTECTED] wrote: Hello, I have a problem

Re: targetNamespace compile error

2007-09-05 Thread Jacob Danner
://www.wwp.com/XMLSchema/moConfig.xsd; xmlns:tns=http://www.wwp.com/XMLSchema/moConfig.xsd; elementFormDefault=qualified ... xs:attribute name=task type=tns:stringListType use=required/ ... Please let the list know if you still have problems, -Jacob Danner On 9/5/07, Bo Wen [EMAIL PROTECTED

Re: Field types from XML types with restrictions

2007-08-22 Thread Jacob Danner
the xsd:gYear type? I'm guessing it would save you a lot of time trying to validate things, etc. -Jacob Danner On 8/21/07, Leszczynski, Leszek [EMAIL PROTECTED] wrote: Hi, I am starting with XMLBeans and just hit the wall. I have a XSD schema with an element defined: xs:element name=year

Re: Using soap.encoding.Array

2007-08-22 Thread Jacob Danner
(); Is that not working for you? Thanks, -Jacobd On 8/22/07, Scott Sauyet [EMAIL PROTECTED] wrote: Jacob Danner wrote: Is the WSDL rpc/encoded? -Jacob Danner No, it's document/literal, at least it's supposed to be. :-) The vendor tool which runs the server has recently been updated to support doc/lit

Re: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Jacob Danner
If you use the other method Cezar mentioned parent.setWIPKEYS(keys.getWIPKEYS()) you can replace the entire WIPKEYS array. Otherwise if you only want to replace one at a time there are some methods for that too like insert, etc. -Jacob Danner On 8/15/07, bob bob [EMAIL PROTECTED] wrote: Thanks

Re: sizeOf

2007-08-07 Thread Jacob Danner
is that if the array length grows greater than 5 it would fail validation. Hope this helps clarify things, please let the list know if you have further questions, -Jacob Danner On 7/24/07, Schalk Neethling [EMAIL PROTECTED] wrote: Greetings everyone, I recently inherited a project from another

Re: navigating on XmlObjects

2007-08-06 Thread Jacob Danner
Hi Asaf, Have you considered an xpath or xquery to get this data and then cast or change it to the type you've discovered. Maybe something along the lines of: SoapEnvelopeDocument.executeQuery(//body) Please let us know if this won't work for you or isn't what you were asking for. -Jacob Danner

Re: java.lang.ExceptionInInitializerError

2007-07-30 Thread Jacob Danner
I have seen this when using different JDK versions with compiled types. Specifically, if I compiled an XSD using JDK 1.6 and then try to run my code using that XSD with say JDK 1.4. Can you let us know if this is the problem you are having? Thanks, -Jacob Danner On 7/30/07, Jethro Borsje [EMAIL

Re: XS:IMPORT SCOMP error

2007-07-30 Thread Jacob Danner
:// ... /disclaimers.xsd information on valid values for an anyURI type can be found at this URL http://www.w3.org/TR/xmlschema-2/#anyURI Hope this helps, -Jacob Danner On 7/30/07, Dicks, Matthew [EMAIL PROTECTED] wrote: I have an XSD that uses xs:import to import another everything validates in XMLSPY however, I

Re: XmlBean and Webservice on websphere

2007-07-24 Thread Jacob Danner
That is correct, XmlBeans use the factory creation pattern for instantiation. I'm unfamiliar with this aspect of websphere but the websphere group may have more infomration on how to get past this. Thanks, -Jacob Danner On 7/23/07, rsg [EMAIL PROTECTED] wrote: I am trying to create webservice

Re: Pretty view XML

2007-06-28 Thread Jacob Danner
Try XmlOptions xo = new XmlOptions().setSavePrettyPrint(); then xmlText(xo), will produce the desired result. -Jacob Danner On 6/28/07, Gustavo Aquino [EMAIL PROTECTED] wrote: Hi friends, Anyone know how i can generate my XML in Pretty format ? Today when i generate xml using xmlText() my

Re: Validation Errors.

2007-06-27 Thread Jacob Danner
. -Jacob Danner On 6/27/07, baisa, darwin [EMAIL PROTECTED] wrote: Can any one help me to get Validation errors when we validate a node or file? The method validate() is giving whether the node is valid or not. But I am unable to get the validation errors. When I validate a XML file against a XSD using

Re: SchemaCompiler - error: src-resolve: type 'Artifact@http:///dp.ecore' not found

2007-06-27 Thread Jacob Danner
It's hard to tell exactly why you are seeing this from the snippets but here are some suggestions. does DP,xsd have a targetNamespace? (it doesn't in the snippet) Does this work if an xsd:include is used instead? Are there any typo's in the namespace declarations. Best of Luck, -Jacob Danner

Re: extending the generated classes

2007-06-25 Thread Jacob Danner
/ExtensionInterfacesFeature http://dev2dev.bea.com/pub/a/2004/05/XMLBeans_raj.html http://dev2dev.bea.com/pub/a/2004/11/Configuring_XMLBeans.html Best of luck, -Jacob Danner On 6/25/07, Pieter Cogghe [EMAIL PROTECTED] wrote: Hi, I want to add some functionality to the generated classes, without touching

Re: Schema 2 Instance Generation

2007-06-25 Thread Jacob Danner
Hi Siddharth, It looks like you want the SampleXmlUtil.createSampleForTypes() method to allow you to specify a prefix. Unfortunately for you this is a not a feature of the class, however there are other options you can use to specify the prefix. String genDoc =

Re: Can XMLBean parse multiple XMLs?

2007-06-13 Thread Jacob Danner
Hi Bo, This will not work as a new XmlObject (think xml instance) is created on each call. XmlObject.Factory.parse(FileA); XmlObject.Factory.parse(FileB); XmlObject.Factory.parse(FileC); If you concatenate into one instance that should work. -Jacob Danner On 6/12/07, Bo Wen [EMAIL PROTECTED

Re: Forcing namespace prefixes

2007-06-13 Thread Jacob Danner
will lead to LOTS of maintenance issues. Hope this helps, -Jacob Danner On 6/12/07, Muzaffer Ozakca [EMAIL PROTECTED] wrote: Hi all, I'm using XMLBeans to create a document. Then I'm importing the generated document into another DOM tree using the DOM API (by calling getType.getDomMode() first

Re: Can XMLBean parse multiple XMLs?

2007-06-13 Thread Jacob Danner
); ... CompositeDocument c = CompositeDocument.Factory.newInstance(); c. /// other init stuff s.setAType(AXmlInstance); s.setBType(BXmlInstance); -Jacob Danner On 6/12/07, Bo Wen [EMAIL PROTECTED] wrote: Thanks Jacob! So there is no way to parse multiple XMLs through XMLBean and I have to concatenate them. It would

Re: (AXIS2 + wsdl2java + XMLBeans) + polymorphism = classcast exception

2007-06-13 Thread Jacob Danner
using the axis container. In other words can we attempt to repro this using only xmlbeans? Thanks, -Jacob Danner On 6/13/07, Spike Mulligan [EMAIL PROTECTED] wrote: So that link seems to imply that Axis2 doesn't support substitution groups and I have to tweak the generated code to support them. I

Re: Can XMLBean parse multiple XMLs?

2007-06-12 Thread Jacob Danner
won't know what to do with it. Do you know of another parser that works with this? In other words, how are you making your import / element work currently? Thanks, -Jacob Danner On 6/12/07, Bo Wen [EMAIL PROTECTED] wrote: Hi, All, I have multiple XML files related through my own import tag

Re: DOM level 3 support

2007-06-12 Thread Jacob Danner
Hi Asaf, There is a Jira issue to track this and would be a great way to get involved if you have the expertise. http://issues.apache.org/jira/browse/XMLBEANS-100 -Jacob Danner On 6/10/07, asaf.lahav [EMAIL PROTECTED] wrote: Hi all, Is there any plan to complete the dom document level 3

Re: Question about validating a XmlObject

2007-05-31 Thread Jacob Danner
schemaType is the new type. http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/XmlObject.html#changeType(org.apache.xmlbeans.SchemaType) Please let the list know if you have any other problems. Thanks, -Jacob Danner On 5/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I would

Re: How to get 2.2.0 source?

2007-05-30 Thread Jacob Danner
changelist (413705). -Jacob Danner On 5/30/07, Mike Perham [EMAIL PROTECTED] wrote: How do we get the 2.2.0 source? I don't see a zip download or an SVN tag/branch. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [VOTE] XmlBeans 2.3.0 Release

2007-05-23 Thread Jacob Danner
[X] +1 - I am in favor of this release, and can help -Jacob Danner On 5/23/07, Cezar Andrei [EMAIL PROTECTED] wrote: [X] +1 - I am in favor of this release, and can help Cezar -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 7

Re: XmlBeans from DTD

2007-05-13 Thread Jacob Danner
AFAIK it is not possible directly from a DTD. What I've done in the past is use a DTD to XSD tool and created XmlBeans from there. I think the last tool I used came from a sourceforge.net project. Best of Luck, -Jacob Danner On 5/13/07, asaf.lahav [EMAIL PROTECTED] wrote: Hi all

Re: XmlObject references in XmlError

2007-05-08 Thread Jacob Danner
I know you can get line information from the XmlError, will this not work for you? What about getting the XmlCursor using the XmlError.getCursorLocation() or even XmlError.getObjectLocation()? I have had success with those in the past, is there something preventing you from using them? -Jacob

Re: Validating a value against a SchemaType object

2007-05-08 Thread Jacob Danner
the types I want are not POJOs as I want to access them. As far as simple atomic types, are you having problems using XmlInt.setValue, etc? Thanks, -Jacob Danner On 5/8/07, Vance Vagell [EMAIL PROTECTED] wrote: Hi Jacob, Ah, I can see how you that could be confusing. Imagine an editor display like

Re: Validating a value against a SchemaType object

2007-05-02 Thread Jacob Danner
, -Jacob Danner On 5/2/07, Vance Vagell [EMAIL PROTECTED] wrote: Hi folks, First, thanks for the tip earlier about atomic type validation, Cezar. Here is another issue I've been working on, that I hope someone has insight into. It is similar to this old thread: http://mail-archives.apache.org

Re: NPE at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)

2007-04-27 Thread Jacob Danner
Hi Pasi, Just to clarify, you mean the code from SVN right? What revision are you at? I've got a Dell Latitude D820 and I have NOT had any similar issues. Might you be able to share some code with in your project that's causing this? Thanks, -Jacob Danner On 4/27/07, Pasi [EMAIL PROTECTED] wrote

Re: OutOffMemory error while transforming and xmlobjet to a String!!

2007-04-27 Thread Jacob Danner
Hi Inandjo, Thanks for the update, glad all is well for you now ;) -Jacob Danner On 4/27/07, Inandjo Taurel [EMAIL PROTECTED] wrote: Hi, Sorry for the late reply but I finally got it working. Indeed, the save function works, and the file size was 257Mb. Thanx again!! From: Jacob Danner

Re: ElementXObj namespace prefix

2007-04-26 Thread Jacob Danner
. For example via DOM apis ElementXObj.getNewDomNode() ... Best of Luck, -Jacob Danner On 4/26/07, asaf.lahav [EMAIL PROTECTED] wrote: Hi all, How can I resolve a namespace prefix when all I have is ElementXObj instance (taken from a valid xmlObject

Re: Saving a file without prefix

2007-04-25 Thread Jacob Danner
Hi Stefan, I'm not seeing any issues with v2.1 or 2.0. -Jacob Danner On 4/24/07, Stefan Offermann [EMAIL PROTECTED] wrote: Jacob Danner schrieb: Please let me know if you are still having troubles, -Jacob Danner Hi Jakob, I just checked versionnumbers, I used xmlbeans 2.1.0, upgraded

Re: Deriving Complex Types by Restriction whose sub-elements are derived too

2007-04-25 Thread Jacob Danner
predecessor and follows are defined with respect to the order of the lists which constitute R and B. Hope this helps, -Jacob Danner On 4/25/07, Tomas Barros [EMAIL PROTECTED] wrote: Hi, I need to add some restrictions on the XML SIgnature standard (Actually to force some optional fields), which

Re: java.lang.ExceptionInInitializerError

2007-04-24 Thread Jacob Danner
I've seen this error when I don't have the right xmlbeans jars on my classpath. I usually add xbean.jar, etc. Are these jar on your applications path? -Jacob Danner On 4/22/07, Jacob Danner [EMAIL PROTECTED] wrote: Forwarding to the xmlbeans-user list

Re: Saving a file without prefix

2007-04-24 Thread Jacob Danner
setSaveAggressiveNamespaces() Causes the saver to reduce the number of namespace prefix declarations. Hope this helps, -Jacob Danner On 4/24/07, Stefan Offermann [EMAIL PROTECTED] wrote: Hallo, how can I remove the prefix when saving a xml-document? My current output looks like this: xid:rss xmlns:xid

Re: OutOffMemory error while transforming and xmlobjet to a String!!

2007-04-24 Thread Jacob Danner
Have you tried increasing the memory space of the JVM? What is the current size? How big is the String you are parsing? Thanks, -Jacob Danner On 4/24/07, inandjo [EMAIL PROTECTED] wrote: Hi, I have an app that generated XML file using xmlBeans, and to do so, I have to feed the xmlobject

Re: Parse error - simple

2007-04-24 Thread Jacob Danner
in the schema should be defined by type xmlns=http://www.gvt.com/store; ... / In your case, I think the change should be something like this OLD: parametropacote NEW: parametropacote xmlns=http://www.gvt.com/store; Best of Luck, -Jacob Danner On 4/24/07, Fernando Gomes Bernardino [EMAIL PROTECTED] wrote

Re: Saving a file without prefix

2007-04-24 Thread Jacob Danner
are still having troubles, -Jacob Danner On 4/24/07, Stefan Offermann [EMAIL PROTECTED] wrote: Jacob Danner schrieb: XmlOptions setUseDefaultNamespace() If this option is set, the saver will try to use the default namespace for the most commonly used URI. XmlOptions

Re: troubles executing XmlObject.selectPath

2007-04-18 Thread Jacob Danner
your changed XPathRepro.java class. Thanks again Patrizio -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: martedì, 17. aprile 2007 18:06 To: user@xmlbeans.apache.org Subject: Re: troubles executing XmlObject.selectPath Hi Patrizio, I've attached the source I used

<    1   2   3   >