Re: Getting XMLBeans out of Attic

2013-10-25 Thread Jacob Danner
Hi Nick, I was wondering if this was going to get off the ground. I'm still game to work on this and have been poking at bits on my github fork. As a prior committer all the legalese has been completed once before. Do I or should I do anything else for this incubating project? -jacobd On Oct 24,

Re: Project still maintained?

2013-07-22 Thread Jacob Danner
Hi Elvis, The XMLBeans project is in the process of moving to the attic http://www.mail-archive.com/dev%40xmlbeans.apache.org/msg02815.html -jacobd On Mon, Jul 22, 2013 at 10:28 AM, Elvis Stansvik elvst...@gmail.com wrote: Hi folks, I had a look at the bugs reported over the past 6 months

Re: using xmlbeans on client side (in conjunction with axis2); null returns although data is available

2012-11-26 Thread Jacob Danner
Have you tried validating the payload? If there are errors that could indicate what is causing the error. Otherwise, I've only used XMLBeans with document/literal webservices and I don't remember how rpc encoded array are handled. -jacobd On Mon, Nov 26, 2012 at 9:32 PM, Tim Watts

Re:

2012-09-25 Thread Jacob Danner
Hi Nick, If you look in the manifest from oldxbean.jar you can get the svn info for the sources that were used to create the jar. In the latest trunk I see something like Apache XmlBeans version 2.3.0-r532896 which means you could grab the r532896 revision and that should have the sources you are

Re: Trying to find a nice XML Bean with generic put functionality

2012-08-26 Thread Jacob Danner
I can't say I've needed xmlbeans for this, but I've used free marker templates to do something similar based on map key/values. Would that work for you? -jacobd On Aug 25, 2012 8:29 PM, Craig Burlock craig.burl...@gmail.com wrote: Hello everyone! Does anyone know of a bean / object with a put

Re: Updating from 2.2.0 to 2.5.0: Migrationpath and Compatibility issues

2012-06-21 Thread Jacob Danner
Hi Oliver, I don't know of anything specific but the only issues I've had with this sort of migration/upgrade were my own and were caused by using different JDK versions when compiling some newer schemas with some older dependent schemas. It was a simple fix to set the javac target/source

Re: Scoped default namespaces

2012-06-08 Thread Jacob Danner
There are a couple other XMLOptions available like setSaveAggressive and setSaveDefault Namespace methods to render what you want. -jacobd On Jun 8, 2012 1:44 AM, Kaan Yamanyar k...@yamanyar.com wrote: Hi, Is there a possible way to make use of default scoped name spaces? I have not found any

Re: Multiple schema jars

2012-01-10 Thread Jacob Danner
Hi Bob, I'm not sure what you mean by lib dependency but thought this link might be of some use http://wiki.apache.org/xmlbeans/XmlBeansFaq#schemaDependencies Are both baseschemas.jar and vendor1.jar on the classpath during execution? Can you try doing a Class.getResource or something along those

Re: Adding linked image to XLSX corrupts previous drawings

2012-01-03 Thread Jacob Danner
Hey Michael, I don't have the knowledge of POI to really understand whats going on here but I'll give it a shot.         patriarch.createLinkedPicture(anchor, uri.toString()); What is uri.toString here? is uri and xmlbeans type? if so, what is it a type of? What were you expecting the value to

Re: schemaorg_apache_xmlbeans.system.sB96777C4495A76B8788F8D7E0FEDDCED.TypeSystemHolder

2011-12-05 Thread Jacob Danner
I'm not sure of your usecase here, but how are you compiling and packaging your schemas? Is the compiled schema all in one jar? My guess is probably not, but can you confirm? -jacobd On Mon, Dec 5, 2011 at 4:30 PM, MurphyR murphyricha...@gmail.com wrote: Environment: Axis2, Tomcat 6,

Re: XML basics

2011-11-13 Thread Jacob Danner
Hi Heather, I'm not sure this is the best mailing list for your question as its pretty specific to a particular set of technologies related to XML Schema and java technologies. I haven't ever used CSS with XML, only with HTML, but they work roughly the same. CSS is just used to apply styling to

Re: time to execute an xquery

2011-10-23 Thread Jacob Danner
Are you looking for some kinf of API from xmlbeans? When I've wanted this information I've just tossed out some timestamps to the log pre and post query execution. Will that not work for your case? -jacobd On Oct 23, 2011 6:29 PM, tejaswi chennubhotlla tejaswi@gmail.com wrote: Hi All How

Re: xmlsbeans 2.5 does not check sequence order ?

2011-05-04 Thread Jacob Danner
In general xmlbeans will not throw an exception for instances that are invalid according to the schema. If you want to throw an exception on this, try validating the instance with an xmloptions that includes an error listener. If after checking the error list for errors you are concerned with

Re: Problem with xml files if length of file is exact 8193 bytes

2011-04-29 Thread Jacob Danner
Could you file a jira issue and attach one of the xml instances you are seeing this with? Thanks, -jacobd On Apr 29, 2011 2:32 AM, Hugo de Oude hdo...@allshare.nl wrote: Hello, We get the error 'Unexcpected element: CDATA' if the length of an xml file is exactly 8193. This can be reproduced

Re: Tips for debugging XML beans - newbie

2011-02-04 Thread Jacob Danner
What does the schema look like? Are the elements and/or anyType? The majority of times I've hit a similar issue it has to do with an incorrect namespace or incorrect type. In the case of incorrect type, it was usually my error using XXDocument when I needed XXType. HTH, -jacobd On Thu, Feb 3,

Re: Get Schema from Document

2011-01-19 Thread Jacob Danner
Have you tried the xsd2inst tool? Thats what I typically use for this sort of thing. -jacobd On Wed, Jan 12, 2011 at 3:06 PM, Curtis Jensen cur...@the-jensens.orgwrote: After compiling a schema, is it possible to generate a schema for a given XXXDocument class? ie. I don't want the whole

Re: Unable to retrieve value form Xmlbean document object

2010-05-13 Thread Jacob Danner
When I've seen something like this, its usually because my instance wasn't value. Try validating and verifying there are no errors. -jacobd On Thu, May 13, 2010 at 7:38 AM, GeniusS yogen...@gmail.com wrote: I'm not able to retrieve value from Xmlbean document object, however when I inspect

Re: Build fails

2010-05-08 Thread Jacob Danner
You aren't trying to repackage xmlbeans on your own are you? What happens when you try using something like Sun's Java lib vs. gcj. [java]at java.lang.StringBuffer.substring(*libgcj.so.81*) [java]at java.lang.StringBuffer.subSequence(*libgcj.so.81*) [java]at

Re: problem running the scomp

2010-03-24 Thread Jacob Danner
Is javac really located at /home/alaa/xmlbeans-tutorial/javac in your environment? Otherwise this looks like it might be addressed on the FAQ page, (sorry I don't have the link or answer with me at the moment) -jacobd On Wed, Mar 24, 2010 at 12:58 AM, alaa nobani alaa_nob...@yahoo.com wrote:

Re: Xmlbeans errors for empty int tag

2010-03-23 Thread Jacob Danner
have you tried adding nillable=true to the file_id element. I believe this makes the type the Java Wrapper type (Integer in this case). Otherwise to check the existence of the element you could try xpath, or using the xmlcursor apis and seeing if you can navigate to the element. HTH, -jacobd On

Re: XMLBeans 2.0 - Problem with derived/extended schema elements

2010-03-12 Thread Jacob Danner
This sounds like a Java problem more than an XMLBeans problem. From the sounds of it you are trying to cast up. In other words you AddressType - Cannot be cast to - EmployeeAddress But you were expecting something like this. EmployeeAddress - Can be cast to - AddressType Rather than use

Re: XmlBeans and Spring RestTemplate

2010-02-12 Thread Jacob Danner
Have you looked into using an xsdconfig file? I know you can do class mappings from that if its needed. I'm not familiar with Spring's RestTemplate. Did you use XmlBeans' inst2xsd tool to generate a schema for you? Usually the best way to find the class to marshal to when starting from an

Re: question on code generation with regard to non-alphabetic character in xml element name

2010-01-20 Thread Jacob Danner
So you would use reflection or something like it to infer the name? Seems like you could get this 'actual element name' information from the schematypesystem apis without too much hassle. -jacobd On Wed, Jan 20, 2010 at 10:29 AM, Jerry Wang skidooj...@gmail.com wrote: just want to get original

Re: [VOTE] XMLBeans v2.5.0-RC1 to become official release

2009-12-11 Thread Jacob Danner
[X] +1 - I am in favor of this release, and can help Jacobd On Wed, Dec 9, 2009 at 9:23 AM, Cezar Andrei cezar.and...@oracle.com wrote: Please cast your vote for the XMLBeans v2.5.0-RC1, as published at http://xmlbeans.apache.org/dist/, to become XMLBeans v2.5.0 official release. The

Re: SchemaTypeLoader problems in Equinox (OSGi): A solution

2009-10-06 Thread Jacob Danner
Thanks Mike! I'll add this to the FAQs when I get a chance. -jacobd On Tue, Oct 6, 2009 at 12:33 PM, Michael Furtak mfur...@cra.com wrote: Hi, all. This is my first message to the mailing list, so I apologize if I am stating some very old news. Recently I have been encountering some

Re: Invalid escaping of XML

2009-10-03 Thread Jacob Danner
lt; and amp; must be used instead of the literal characters in element content; the others are optional, with the exception that the 3-character sequence ]] cannot appear in character data and must be written as ]]gt;. - Wing Yew -- *From:* Jacob Danner

Re: Invalid escaping of XML

2009-10-02 Thread Jacob Danner
Off the top of my head I think this is as expected. The does not need to be escaped only . -jacobd On Fri, Oct 2, 2009 at 1:17 PM, Artem Portnoy artem.portnoy@gmail.comwrote: Hello, We have an XmlBean that takes in a String. The problem is that if we pass in an XML String, the XML

Re: a stange problem: can not judge the type of a xmlObject

2009-09-28 Thread Jacob Danner
typs. On Mon, Sep 28, 2009 at 3:53 AM, maven apache apachemav...@gmail.comwrote: Sorry this is the schema, I forget in the last post. 2009/9/28 maven apache apachemav...@gmail.com 2009/9/28 Jacob Danner jacob.dan...@gmail.com How is DataArray defined in your schema? I upload

Re: toString() differs from save()

2009-09-28 Thread Jacob Danner
This is by design, take a peek at the javadoc. http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlTokenSource.html#xmlText(org.apache.xmlbeans.XmlOptions) xmlText String http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html *xmlText*(XmlOptions

Re: a stange problem: can not judge the type of a xmlObject

2009-09-27 Thread Jacob Danner
How is DataArray defined in your schema? Also, does this instance validate without errors? -jacobd On 9/27/09, maven apache apachemav...@gmail.com wrote: Hi : In the xml I uploaded, I want to get the valuse under the element DataArray, but I am not sure the type , so I use the following codes

Re: Namespace problem reading xml

2009-09-18 Thread Jacob Danner
Have you looked into using an xmlconfig file to generate the classes into the packages you want. Take a peek on the xmlbeans wiki for more information on what to do. HTH, -jacobd On Fri, Sep 18, 2009 at 5:07 AM, JavierL xle...@gmail.com wrote: Hi I need to read an xml file. The namespace on

Re: java.lang.OutOfMemoryError: Java heap space

2009-09-14 Thread Jacob Danner
Hmm, are you putting 30K of xml into memory? or only parsing the results as they are needed? In other words, are there references left around that is causing the heap to grow? -jacobd On Mon, Sep 14, 2009 at 1:16 PM, Jason Berk jb...@purdueefcu.com wrote: I have an xml clob and account in a DB.

Re: Cannot load SchemaTypeSystem

2009-09-13 Thread Jacob Danner
If the file is present as a result of the ant build, I'd say the issue lay somewhere in your netbeans configuration. Is there a reason you need the xmlbeans sources? From your ant task it looks like you want the task to generate source (srcOnly) and a jar (destFile). I've only used the task with

Re: scomp fails trying javac

2009-09-12 Thread Jacob Danner
I'm not sure of the question, but I've been using scomp with JDK 1.6 version 04, 10 and now 14 without problems for many months. HTH, -jacobd On 9/12/09, Jerry Brown jbr...@dvierow.com wrote: I am a newbie and this is an 'old' error. But I have the JDK ahead of the JRE on my PATH. It is Java

Re: locale issue: translating xmlbean error texts

2009-09-02 Thread Jacob Danner
Jacob, thanks for replying I would like to change the error messages directly in the jar, without recompiling everything from source. Which one is that? Thanks, regards Vincenzo Jacob Danner-2 wrote: The properties file containing the resource strings is located at src\xmlpublic\org

Re: locale issue: translating xmlbean error texts

2009-09-01 Thread Jacob Danner
The properties file containing the resource strings is located at src\xmlpublic\org\apache\xmlbeans\message.properties (for EN) -jacobd On Tue, Sep 1, 2009 at 8:42 AM, vinc.turco vinc.tu...@gmail.com wrote: Hi developers, I need to translate xmlbeans error messages from english, how can I do

Re: Illegal XML character: 0x1c inside CDATA

2009-08-21 Thread Jacob Danner
I've seen similar when working with content retrieved from URLs. What I found was the problem wasn't in the content of the xml, but in some additional data that was passed along prior to the xml payload I wanted. My workaround to this was to use some IO Stream APIs to read the content into a

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Jacob Danner
from what you describe it sounds like you might have a validation issue with the instance. Have you tried validating and seen if there are errors? This: responsexmlns=http://kkk/schema/xsxs; xmlns:ns1=http://kkk/xsx.org/; ns1:something ns1:mn and so on/ns1:mn /ns1:something

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Jacob Danner
the prefixes ?? strange enough, after removing the ns1: from tags, xmlbeans does process the response fine but still the validation value of document is false! ?? - Jacob Danner-2 wrote: from what you describe it sounds like you might have a validation issue

Re: How creating an XmlObject only knowing the name of the generated document class?

2009-06-16 Thread Jacob Danner
Have you tried XmlObject xmlobject = XmlObject.Factory.newInstance()? -jacobd On Tue, Jun 16, 2009 at 12:01 AM, Hildegunde Weinzierlhildegunde.weinzi...@esg.de wrote: Hi, how can I get the XmlObject  like I would get with the following call         XmlObject xmlobject =

Re: the default namespace when write a xml

2009-05-28 Thread Jacob Danner
Wasn't this message already posted and answered on the 25th? The link works for me. Here are the contents of the relevant FAQ How can I influence the namespace prefix used when saving/printing out my XML? XMLBeans does not keep the prefixes when the original XML is loaded into the underlying XML

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
Xenakis michael@gmail.com wrote: Jacob Danner wrote: What do you mean by to change sth on the namespaces ? When i parse ( with WSDL4J ) a WSDL document from a specified URL i copy the namespaces from WSDL definitions  because some of the prefixes that are used in the xsds encapsulated

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
is this WS-ResourceProperties.wsdl and i couldn't find it in their server thanks again Jacob, Michael Jacob Danner wrote: This new error means something the references are now being resolved properly. You'll have to find out why you are getting this new error, but it looks like 2

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
fully understand what's the problem, thanks in advance, Michael Jacob Danner wrote: Maybe I'm missing something in your scenario, but whenever I've seen that error it has meant something is wrong with something in my XML. With your error message, I'd suggest looking at ../X/Y

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
... Is there any way to convert automatically all the relative URLs to absolute in runtime(compileXSD time)? Thanks in Advance for your answers, Michael Jacob Danner wrote: Hmm, I think you are making it too hard on yourself with all of the WSDL4J to pull out the types element. XMLBeans' scomp tool can

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
...and that was a compileXSD error apparently. I've checked the xmloptions to find a way to skip this error but nothing. Jacob Danner wrote: Hi Michael, I did just convert the wsdl imports by hand because it was the quickest and easiest way for me to. There shouldn't be a problem using the relative

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
If been a while since I've tinkered with these APIs, but I would try setting the sourceName value to the value of the schemaLocation ie, setSourceName(../foo.xsd); Let the list know how this turns out. -jacobd On Tue, May 12, 2009 at 10:34 AM, Jacob Danner jacob.dan...@gmail.com wrote: You

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
? Thanks again, Michael Jacob Danner wrote: If been a while since I've tinkered with these APIs, but I would try setting the sourceName value to the value of the schemaLocation ie, setSourceName(../foo.xsd); Let the list know how this turns out. -jacobd On Tue, May 12, 2009 at 10:34 AM

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
the above import form) before (or maybe at compile time) If u want more infos/code from my project to understand the problem i can cp more code, no prob! Thanks Michael Jacob Danner wrote: Okay, taking your example from above import namespace=http://blahblahzdoing.com; SchemaLocation

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-11 Thread Jacob Danner
Maybe I'm missing something in your scenario, but whenever I've seen that error it has meant something is wrong with something in my XML. With your error message, I'd suggest looking at ../X/Y/SchemaExample.xsd as a starting point. Is this file well-formed? What makes you think its an issue that

Re: XMLBeans-Axis2 - Type naming differences

2009-03-11 Thread Jacob Danner
You could probably use an xsdconfig file to specify the namespaces to package name mapping. Also, with a mix of xsds and wsdls have you thought about using sfactor to create a schema containing common types and elements. HTH, -jacobd On Wed, Mar 11, 2009 at 8:49 AM, martin.ba...@wellsfargo.com

Re: Navigating Untyped XmlObject with XmlCursor

2009-03-11 Thread Jacob Danner
I'm not sure I really understand the question you are trying to ask, but why not try xmlcursor.toChild(1)? -jacobd On Wed, Mar 11, 2009 at 1:31 PM, Kapil Anand kapil...@yahoo.com wrote: hi I am struggling to select the contents of the first child of an untyped root element. The qname of

Re: NewLine character in xmlbeans generated xml instance

2009-03-11 Thread Jacob Danner
Try XmlOptions.setPrettyPrint() There are some other methods in XmlOptions that can help you tailor the spacing etc. -jacobd On Wed, Mar 11, 2009 at 4:14 PM, Garima Bathla garima.bat...@gmail.comwrote: So I am using xmlbeans to generate xml instance based on xsd schema. But the issue is that

Re: XmlBeans.compileXmlBeans() fails on *some* w3c Elements

2009-03-09 Thread Jacob Danner
I think the error message is pretty clear on this one. The 0th supplied input is not a schema document: its type is N= The XmlBeans.compileXmlBeans method only takes schema elements and whatever you have passed in does not meet that criteria. You can read more about the method parameters at the

Re: How to generically create a SchemaType instance doc?

2009-02-24 Thread Jacob Danner
Take a peek at the xsd2inst tool under your xmlbeans_home\bin directory -jacobd On Tue, Feb 24, 2009 at 5:41 PM, Andy Putnins putn...@lett.com wrote: Given a schem that has been parsed and loaded into a SchemaTypeSystema, how can I create a document instance with just the root element? I

Re: xml-fragment Issues

2009-02-17 Thread Jacob Danner
Can you post a snippet of code? -jacobd On Tue, Feb 17, 2009 at 5:19 PM, riya rachan...@gmail.com wrote: Hi, I generated xsd using inst2xsd provided with xmlbeans. command: inst2xsd rd Address_Valid_Request.xml Following is the xsd I got: ?xml version=1.0 encoding=UTF-8? xs:schema

Re: Issues with Maven and XMLBeans

2009-02-04 Thread Jacob Danner
Interesting, I don't know the maven plugin, so I can't comment as to the what and why this is happening. As a workaround, have you tried using an xsdconfig file. Something like xb:config xmlns:xb=http://xml.apache.org/xmlbeans/2004/02/xbean/config; xb:namespace uri=urn:uddi-org:api_v3

Re: Novice XmlBeans user question

2009-01-09 Thread Jacob Danner
What errors are you seeing? On Fri, Jan 9, 2009 at 10:30 AM, Wm.A.Stafford staff...@marine.rutgers.edu wrote: Jacob. The MetadataDocument is not valid. What does this mean? -=beeky Jacob Danner wrote: Did you try validating it? Here is what I was referring to: MetadataDocument mDoc

Re: Novice XmlBeans user question

2009-01-09 Thread Jacob Danner
) Jacob Danner wrote: What errors are you seeing? On Fri, Jan 9, 2009 at 10:30 AM, Wm.A.Stafford staff...@marine.rutgers.edu wrote: Jacob. The MetadataDocument is not valid. What does this mean? -=beeky Jacob Danner wrote: Did you try validating it? Here is what I was referring

Re: Create XSD Components via XMLBEANS

2008-12-22 Thread Jacob Danner
I was just playing with a couple of xmlbeans' tools that did this over the weekend. Take a peek at the inst2xsd or sfactor tools and the source code behind them. Both tools create schemas. -jacobd On Mon, Dec 22, 2008 at 12:14 PM, michael michael@gmail.com wrote: Hi, I couldn't find the

Re: Create XSD Components via XMLBEANS

2008-12-22 Thread Jacob Danner
xmlbeans API?i mean i can import the (jar?) into my code and use them as i now use the xmlbeans API? Do you have a direct link for further study because i couldn't find sth detailed(sth like a doc) over the internet except questions and general answers... thank you again Jacob Danner wrote: I

Re: create an array using Factory.newInstance() method

2008-12-22 Thread Jacob Danner
Hi Shahzad, AFAIK you can't create a new array using the Factory.newInstance() method, but you can initialize items in the array with the method. Rule[] rule = new Rule[15]; for(int i = 0; i rule.length; i++){ rule[i] = Rule.Factory.newInstance(); } and then a call to rule[0].setId(SomeVal)

Re: Generating .java files

2008-12-19 Thread Jacob Danner
Have you tried scomp with the -src option? -jacobd On Fri, Dec 19, 2008 at 11:01 AM, Wm.A.Stafford staff...@marine.rutgers.edu wrote: I would like to generate .java files from a schema and run Javadoc on them to produce developer level documentation of the XMLBeans classes used for this

Re: Questions from a newbie!

2008-12-18 Thread Jacob Danner
Hi Michael, There are some examples of this kind of thing in the test case directory. Take a peek in the SVN depot or view at: http://svn.apache.org/viewvc/xmlbeans/trunk/test/src/compile/scomp/som/ As far as the Eclipse errors you are seeing, those are just your standard Java errors. It might be

Re:

2008-12-17 Thread Jacob Danner
So much has change between version 1.0.4 and the 2.4. Can you try on the latest release and see if its still an issue? I'm doubtful it will continue to be. -Jacobd On Wed, Dec 17, 2008 at 6:22 AM, GiuseppeBattista giuseppeba2...@yahoo.it wrote: Hello, I' m having the following error during

Re: parse a part of xml

2008-12-15 Thread Jacob Danner
Hi Eugen, Are you having troubles getting the value of the projectdataset element or are you just getting an exception when you are trying to parse it? Is there a projectDatasetType Class available? Have you tried that? What is the exception you are seeing? -jacobd On Mon, Dec 15, 2008 at 1:41

Re: Generated class differences between ant task maven plugin

2008-12-02 Thread Jacob Danner
As far as I remember the getFooList() methods are generated for generic accessors. This in done via the scomp tool with: -javasource [version] - generate java source compatible for a Java version ( 1.4 or 1.5) It looks like one of your tools' usages is settings this value while the other is

Re: Emtpy Arrays

2008-11-27 Thread Jacob Danner
without digging too much into the issue, have you looked into using XMLBeans inst2xsd tool to create an XSD for the instances you get from Xcelsius. I've had a lot of success with the xsds created and it was much easier than writing my own from scratch. As far as the empty array, it might be

Re: Schema generation from Java classes (Java 1.4)

2008-11-25 Thread Jacob Danner
I don't think XMLBeans has what you are looking for in terms of creating a schema from existing java sources in the way JAXB's schema gen tool does. Have you looked at Castor or JIBx? -jacobd On Tue, Nov 25, 2008 at 4:16 AM, Abid Hussain [EMAIL PROTECTED] wrote: Hello everybody, I'm looking

Re: XMLBeans : How can I get a value and not an xml fragment?

2008-11-15 Thread Jacob Danner
I'm not sure how the type is defined, but aren't there getters and setters or something like intValue() to get this. You are seeing this because getM() returns some kind of type associated with xml (element in this case) and not some kind of java primitive. The docs explain things far better than

Re: XMLCursor Helps.

2008-11-03 Thread Jacob Danner
I've noticed you've posted this message a couple of times. Are you having trouble? Why don't you post the parts of the code you are having trouble with and maybe the list can help you out. -jacobd also moving to the user list On Mon, Nov 3, 2008 at 7:29 AM, bala r [EMAIL PROTECTED] wrote: Hi,

Re: XMLCursor Helps for creating XML

2008-10-30 Thread Jacob Danner
Definitely a question for the user list vs. the dev list. The sample you seek is mentioned on the xmlbeans sample page: http://xmlbeans.apache.org/samples/index.html#Examples+in+XMLBeans+Source # org.apache.xmlbeans.impl.xsd2inst.SampleXmlUtil It is a great example of how to combine the

Re: pls. help me

2008-09-26 Thread Jacob Danner
Have you tried XmlOptions.setSaveAggressiveNamespaces(). -jacobd 2008/9/26 wabby [EMAIL PROTECTED] all: why I create xml file with xmlbeans,cotain xmlns=http://xxx.xxx.xxx; in Every node, like the following : AS400Body xmlns=http://www.aaa.com.cn/aaaGateway; field name=QUERYTYPE

Re: Very simple question (I think)

2008-09-15 Thread Jacob Danner
For XML to be equivalent, things like namespace prefixes, whitespace*, etc can be different. With Strings, this is not the case. For example: foo xmlns=http://foobaz; / and baz:foo xmlns:baz=http://foobaz; / Are equivalent in XML. If you are hoping to do an == check using the above with strings

Re: ClassNotFoundException with generated code

2008-07-29 Thread Jacob Danner
How did you compile the schema? -jacobd On Wed, Jul 30, 2008 at 1:05 AM, Daniel Toffetti [EMAIL PROTECTED] wrote: Hi ! I've compiled an xsd and I'm getting an error while trying to use the generated classes like this: MyStandardDocument td =

Re: Advice about tools

2008-07-21 Thread Jacob Danner
Hi Daniel, Yep, It's possible, and has been done by a couple of XML Editing tools already. While I haven't tried dev'ing this usage scenario myself, I don't see anything preventing you from using XMLBeans to do so. -jacobd On Tue, Jul 22, 2008 at 3:44 AM, Daniel Toffetti [EMAIL PROTECTED] wrote:

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Jacob Danner
Its because your code is using the Type instead of the Document. If you use WorkflowManagerInstanceDescriptorDocument in your code instead these errors should go away. You can read a little more about why this is so here,

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Jacob Danner
I think the difference in the editor validation is you validated the instance as XML (thats what eclipse does) which is different than validating it against the schema type you had specified in your code. -jacobd On Tue, Jul 15, 2008 at 8:57 AM, Andre de Souza [EMAIL PROTECTED] wrote: Yes, I

Re: [VOTE] XMLBeans 2.4.0 Release

2008-07-03 Thread Jacob Danner
+1 -jacobd On Thu, Jul 3, 2008 at 10:37 PM, Gustavo Aquino [EMAIL PROTECTED] wrote: +1 On Wed, Jul 2, 2008 at 3:43 PM, Cezar Andrei [EMAIL PROTECTED] wrote: Given that there are no known problems with RC3, I'm starting a vote for declaring RC3 the official XMLBeans 2.4.0 release. Files

Re: Tags

2008-07-02 Thread Jacob Danner
It doesn't exactly work like that. The xsi:type is there to assert its an elements type, but it does not mean two elements are then equivalent only that they should conform to the type defined by the schema. The element names are the key here. If you are using XMLBeans and you want your FpML

Re: Help regarding CLASSPATH settings using XMLBEANS

2008-06-05 Thread Jacob Danner
Hi Hermanth, If there error is occuring at the line InventoryNotificationDocument.Factory.parse(xslTransormedXML); Just about anything could be occuring and we really need some more information to be able to accurately debug. Can you get any information about a stacktrace or validation issues on

Re: ClassCastException when migrating to xmlbeans 2.2.9

2008-06-04 Thread Jacob Danner
Hi Shikhar, Have you recompiled all of your schemas? Are there any conflicting jars still on the classpath? -jacobd On Wed, Jun 4, 2008 at 7:57 AM, [EMAIL PROTECTED] wrote: Hi We are migrating our applications from Weblogic 8.1 / xbean (?) to Weblogic 9.2 / apache xbean 2.2.9-r540734 .

Re: java.lang.NoClassDefFoundError at Document$Factory.newInstance(Unknown Source)

2008-05-31 Thread Jacob Danner
Hi Selena, This is actually more appropriate for the user mailing list so I'm forwarding it there. Can you post some of the user code where this is occuring? Usually a NoClassDefFoundError indicates some kind of configuration issue in the application. How did you compile the schema types? Is the

Re: XMLBeans 1.0.4 Question about XmlDateTime xSet* methods

2008-05-15 Thread Jacob Danner
Interesting issue, I don't have 1.0.4 locally, but maybe you can try something for me. Can you validate your data and see if there are any errors? Thanks, -jacobd On Thu, May 15, 2008 at 3:30 PM, Inman, Peter [EMAIL PROTECTED] wrote: I have a problem and I'm not sure what's going wrong. I'm

Re: Adding a xs:simpleType to the xml document

2008-05-06 Thread Jacob Danner
Hi John, If you have specify properties (ie, Type_Type) why isn't the type attribute set in your schema element? instead of: xs:element name=PropertyName/ try xs:element name=PropertyName type=Type_Type/ This will let you have specific methods for setting those enumeration values. I think your

Re: does xmlBeans compile WSDL to Java interface?

2008-04-07 Thread Jacob Danner
XmlBeans creates types from the schemas that are children to the wsdl:types element. The PortType, client, Stub classes are generated for JAX-RPC and JAX-WS by other toolkits like apache Axis or XFire that might/can make use of XMLBeans as a binding system. HTH, -jacobd On Mon, Apr 7, 2008 at

Re: AxisFault.getCause()=null

2008-03-26 Thread Jacob Danner
This might a post more relevant to the Axis2 mailing list. Best of luck, -jacobd On Wed, Mar 26, 2008 at 2:22 PM, Adrián Cuartero [EMAIL PROTECTED] wrote: Hi all I keep fighting with the custom Exceptions and i'm desperate.. I send a custom exception inside an AxisFault but when the client

Re: What's wrong with the following XML??

2008-03-19 Thread Jacob Danner
I can see why inst2xsd tool is doing that. subComponents subComponent/ subComponent sequence/ /subComponent /subComponents The tools sees: subcomponent / and subComponentsequence / ... As 2 different types, if you want to correct that, you can

Re: Help - Maven2 with XMLBean Integration

2008-03-06 Thread Jacob Danner
This is documented in the src. You can access it online at: http://svn.apache.org/viewvc/xmlbeans/trunk/maven-plugin/INSTRUCTIONS.txt?revision=220227view=markup -jacobd On Thu, Mar 6, 2008 at 9:05 PM, [EMAIL PROTECTED] wrote: Hi Friends, I am using XMLBeans to parse some XML Documents

Re: xs:string - Isn't whitespaces preserved by default?

2008-02-27 Thread Jacob Danner
How are you generating the XML. I'm not positive its whitespace is preserved if something like xmlText() is used. I might try something like an xs:normalizedString and the whitespace=preserve. -jacobd On Wed, Feb 27, 2008 at 4:57 PM, dave [EMAIL PROTECTED] wrote: I have an xs:string type

Re: saving and getting back XMLBeans

2008-02-21 Thread Jacob Danner
Try the save(file) method on the xmlobject. -jacobd On Thu, Feb 21, 2008 at 7:07 AM, Dário Abdulrehman [EMAIL PROTECTED] wrote: Hi, I'd like to save a XMLBean with the declaration and encoding and read it back (using parse?). The method xmlText just saves a xmlfragment with no declaration

Re: [trying again] why validate text inside xs:documentaion

2008-02-21 Thread Jacob Danner
Hi Dave, everything inside and xsd:documentation needs to be well:formed xml. This means any elements declared in the documentation should be declared properly. I believe its actually the rules of XML that require prefixes to be defined. In other words you will have this problem when you do

Re: Int/ Integer java types for xs:int schema type

2008-02-20 Thread Jacob Danner
Hi Ihab, Take a peek at http://xmlbeans.apache.org/docs/2.0.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html otherwise you will need to declare teh type with nillable=true, etc. HTH, -jacobd On Wed, Feb 20, 2008 at 6:57 PM, Ihab EL-ALAMI [EMAIL PROTECTED] wrote: Hi, How can I generate the Java

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
Hi Denis, From what I remember, SchemaComponent.getSourceName() will return the path/location of the xsd used to create the type system. http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/SchemaComponent.html#getSourceName() If the schema was built from a string, this method

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 8:32 PM To: user@xmlbeans.apache.org Subject: Re: SchemaType.getSourceName() Hi Denis, From what I remember, SchemaComponent.getSourceName() will return the path/location of the xsd used to create the type system

Re: How to apply an xpath query to a document ?

2008-02-10 Thread Jacob Danner
Take a peek at http://xmlbeans.apache.org/samples/XQueryXPath.html -jacobd On Feb 10, 2008 7:56 AM, Pascal Maugeri [EMAIL PROTECTED] wrote: Hi I need to do this simple operation: having a XML document (as a String for instance) I want to apply to it an XPath query and to get the XML fragment

Re: Help with integrating maven2 plugin and apache

2008-02-10 Thread Jacob Danner
Hi Todd, I'm not an eclipse user (IntelliJ IDEA), but I'll give it a try. Which maven plugin are you using, which version of eclipse? Have you queried the maven or eclipse projects for similar issues? -jacobd On Feb 10, 2008 6:21 PM, Todd Nine [EMAIL PROTECTED] wrote: Bump, I've been

Re: Trouble generate java file with multiple xsd files

2008-02-06 Thread Jacob Danner
Hi Alex, You are getting an error because 2 of your schemas have the same type (in this case, attribute group) defined in them. You'll want to make sure the types are in fact the same, rather than just having the same name first. After that, there are a couple of things you can do here: 1) move

Great article - Receive events from XMLBeans

2008-02-01 Thread Jacob Danner
I just finished reading an article on IBM's devWorks site that I thought others might find interesting too. The article goes into some great detail explaining the extensions mechanism. A summary from the article: Through the use of two extension points in XMLBeans—the interface and

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

2008-01-18 Thread Jacob Danner
:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 17 January 2008 18:24 *To:* user@xmlbeans.apache.org *Subject:* Re: user@xmlbeans.apache.org and complex schema Hi Pierre, How are you creating your schema jar. It appears as though you might have a jar that only contains the java src

  1   2   3   >