Re: Wrong namespace prefix in generated documents?

2014-08-18 Thread Michael Bishop
Hi Peter and thanks for the explanation. It's been awhile; I've been on vacation for a week. Anyway, I tried what you said about the XPath expressions and it looks like you're correct. I'm using the Java core XPath libraries and the prefix I set in an instance of NamespaceContext is what dictates

Re: Wrong namespace prefix in generated documents?

2014-08-08 Thread Peter Keller
Hi Michael, OK - now this is getting to the heart of the question... On Thu, 2014-08-07 at 16:02 -0400, Michael Bishop wrote: Hi Peter, You're right, I came across that table recently since I've been working at this problem most of the day. Let me share one more thing I've discovered. It

Re: Wrong namespace prefix in generated documents?

2014-08-07 Thread Michael Bishop
I've got to figure out how to debug it. Currently, it's in a Maven project with the XMLBeans plugin running the schema compilation. The map works when I call save(options) or xmlText(options), but not when the document is created (Factory.newInstance(options)). // Option that sets the namespace

Re: Wrong namespace prefix in generated documents?

2014-08-07 Thread Michael Bishop
OK, here is a test schema: ?xml version=1.0 encoding=UTF-8 ? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:aaa=bbb:ccc:ddd:eee:fff:aaa targetNamespace=bbb:ccc:ddd:eee:fff:aaa elementFormDefault=qualified xs:element name=test type=aaa:testType/

Re: Wrong namespace prefix in generated documents?

2014-08-07 Thread Peter Keller
Hi Michael, There is a table in the Javadocs that states which options are used by which methods: see http://xmlbeans.apache.org/docs/2.6.0/reference/org/apache/xmlbeans/XmlOptions.html. You have to make the prefix suggestion in the options to a save or xmlText method: they won't have any

Re: Wrong namespace prefix in generated documents?

2014-08-04 Thread Cezar Andrei
Michael, That's odd, please check that your namespace URI is exactly the same in both the schema and the map you're setting. Also, make sure the prefix you want is not already used in your document with a different URI. If it's still not working and you're not afraid of debugging, you can

Re: Wrong namespace prefix in generated documents?

2014-08-02 Thread Michael Bishop
OK, thanks for the information. Unfortunately, this doesn't seem to fix the problem. I thought I'd tried the steps outlined in the linked blog before, but I did it again, just in case. Here's the full schema definitions: Old: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;

Re: Wrong namespace prefix in generated documents?

2014-08-01 Thread Cezar Andrei
If you don't provide a prefix, XmlBeans will automatically pick a prefix, and it tries to pick one that is part of the URI. Cezar On 07/28/2014 01:27 PM, Michael Bishop wrote: Hello all. I've recently changed the namespace of my schema. Now I'm getting the wrong prefix name and I'm not sure

RE: Wrong namespace prefix in generated documents?

2014-07-31 Thread Duane Zamrok
The short answer is to use XmlOptions to configure the prefixes used in your XmlBeans output. Something like the following will cause it to use xxx for yyy:aaa:bbb:ccc. XmlBeans output is NOT tied to the prefixes you declare in your schema. HashMap ns = new HashMap(); ns.put(yyy:aaa:bbb:ccc,

Re: Validation issues

2014-07-21 Thread Peter Keller
Dear Joseph, On Wed, 2014-07-16 at 10:15 -0700, jgagnon wrote: I have written an application that generates XML files that represent test cases for a collection of types defined by an XML schema. Some of these types contain elements that are abstract. The logic locates all concrete

Re: Validation issues

2014-07-21 Thread Peter Keller
at all, it is just taken care of automatically by the XMLBeans-generated API. If this is not practical for you, then perhaps saving and re-parsing the XML instance before validating would be an acceptable workaround? (ii) the xmlns:xsi and xmlns:myprefix attributes end up in the element

Re: Validation issues

2014-07-20 Thread Michael Pigott
Hi, Perhaps you are using the wrong prefix for the type element? In my (valid) XML Schema, I do not define a prefix for the type attribute, and instead have the default namespace as http://www.w3.org/2001/XMLSchema. Perhaps that's the difference? Eclipse also seems to come bundled with an

RE: Namespaces

2014-07-16 Thread Gagnon, Joseph - 0558 - MITLL
I was able to achieve a prefix-less namespace attribute by passing an empty string for the prefix argument. E.g. cursor.insertNamespace(, namespaceUri); From: Friessen, Michelle [mailto:michelle.fries...@pearson.com] Sent: Tuesday, July 15, 2014 4:38 PM To: user@xmlbeans.apache.org

Re: XmlCursor tutorial

2014-07-11 Thread Cezar Andrei
This document is probably the closest you're looking for. http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html Cezar On 06/24/2014 03:00 PM, jgagnon wrote: Does anyone know of any tutorials about using the XMLBeans XmlCursor? I've looked at the little bit on the

Re: Dynamic generation of XML object hierarchy using schema

2014-05-06 Thread jerry . sy
look at the XmlCursor api. You can use it to create an xml document. On 5/6/2014 8:19 AM, jgagnon wrote: I am working on a project where we are trying to dynamically generate XML instances, using the information gleaned from a defining XML schema. The instances will represent test cases for a

Re: Dynamic generation of XML object hierarchy using schema

2014-05-06 Thread Cezar Andrei
Joseph, Best way to learn for what you need to is to look at the implementation of xsd2inst tool: http://svn.apache.org/viewvc/xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SchemaInstanceGenerator.java?view=markup Cezar On May 6, 2014, at 11:19 AM, jgagnon

Re: Duplicate complex types with mixed elements

2014-03-17 Thread Cezar Andrei
Narayan, It's probably a bug that the node1Type is not removed but this doesn't affect the rest since it's not used elsewhere. As you can see in personType, node1 element is defined as mixed content. Cezar On 03/11/2014 12:20 AM, Parvatikar, Narayan wrote: Hi , I am trying to generate a

Re: question about namespace

2014-02-18 Thread Cezar Andrei
I believe the order doesn't affect the output. I see you use setSaveImplicitNamespaces(), this should be used only when you use XMLBeans for only a smaller part of the document. Cezar On Mon, 2014-02-17 at 17:27 -0800, Ted Slusser wrote: Hi Thanks for the suggestion. I am calling that

Re: question about namespace

2014-02-17 Thread Cezar Andrei
Ted, Give a try to XmlOptions.setSaveAggressiveNamespaces() it might get closer to the form you want. http://xmlbeans.apache.org/docs/2.6.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveAggressiveNamespaces%28%29 Cezar On Mon, 2014-02-17 at 13:36 -0800, Ted Slusser wrote: Hello, I’m

Re: question about namespace

2014-02-17 Thread Ted Slusser
Hi Thanks for the suggestion. I am calling that already, but it doesn't seem to work for my desired effect. Does the order of the options make any difference? Thanks, Ted Slusser Java Developer Vanderbilt Informatics 615-420-7326 On Feb 17, 2014, at 4:44 PM, Cezar Andrei

RE: Handling namespaces in xsd

2014-01-28 Thread Cezar Andrei
, January 27, 2014 9:14 PM To: user@xmlbeans.apache.org Subject: Re: Handling namespaces in xsd Narayan, It seems correct to me. Each namespace is defined by a separate schema file. And there is a definition in the last schema for abc element: element name=abc type=abcType/ Cezar Here

RE: Handling namespaces in xsd

2014-01-27 Thread Parvatikar, Narayan
. Also, I noticed that there are no import statements added in schema you sent , Is there a way to do that ? Thanks Narayan -Original Message- From: Cezar Andrei [mailto:cezar.and...@oracle.com] Sent: Monday, January 27, 2014 9:14 PM To: user@xmlbeans.apache.org Subject: Re: Handling

Re: Prevent Ampersand Escaping

2014-01-14 Thread Cezar Andrei
Michelle, You're right, XML content that contains and needs to be escaped and XmlBeans does that even if you try to escape it beforehand, which is not right. You're also right that using XmlOptionCharEscapeMap doesn't affect them, if you know what you're doing you can look at the code that does

Re: Problem about generating Java Source Code with XMLBeans from xsd

2013-11-06 Thread Federico Rossetti
Hi Cezar First of all thanks for your quick response. If I understand correctly, using SubInfo.xsetNome with Testo70Custom object as parameter, I still have to call the “validate” method to check if the message is correct against the xsd, is it true? What I wanted to do was something

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: Getting XMLBeans out of Attic

2013-10-24 Thread Serkan Taş
Me too... Serkan. 23 Eki 2013 tarihinde 21:54 saatinde, jerry...@oracle.com şunları yazdı: Yes I am still interested. Thanks Jerry On 10/23/2013 4:37 AM, Nick Burch wrote: Hi All Is there still interest in rebooting the XMLBeans project? If so, I think we have enough existing

Re: Getting XMLBeans out of Attic

2013-10-24 Thread Tammo van Lessen
Me too, I can also serve as a mentor. Perhaps we should also inform attic (and board?) when we get this started so that the actual move to attic can be avoided. Tammo On Thu, Oct 24, 2013 at 8:17 AM, Serkan Taş serkan_...@hotmail.com wrote: Me too... Serkan. 23 Eki 2013 tarihinde 21:54

Re: XMLBeans Project Reboot Proposal - Volunteers Needed

2013-10-24 Thread Daniel Lübke
Hi Nick, thanks for your effort on creating the proposal. I'd like to join. Daniel Am 24.10.2013 14:16, schrieb Nick Burch: Hi All As many of you will know, the Apache XMLBeans project is currently destined for the Apache Attic, in large part because the previous PMC [1] (Project Management

Re: XMLBeans Project Reboot Proposal - Volunteers Needed

2013-10-24 Thread Nick Burch
On Thu, 24 Oct 2013, Daniel Lübke wrote: thanks for your effort on creating the proposal. I'd like to join. Great! First thing, which I see you've already done, is to list yourself in the Initial Committers list https://wiki.apache.org/incubator/XMLBeansProposal#Initial_Committers

Re: Getting XMLBeans out of Attic

2013-10-23 Thread Nick Burch
Hi All Is there still interest in rebooting the XMLBeans project? If so, I think we have enough existing Apache PMC members to mentor the rebooted project. I'm happy to start the ball rolling on the proposal if there's still the interest? Nick PS The steps would be that I'd setup the

Re: Getting XMLBeans out of Attic

2013-10-23 Thread jerry . sy
Yes I am still interested. Thanks Jerry On 10/23/2013 4:37 AM, Nick Burch wrote: Hi All Is there still interest in rebooting the XMLBeans project? If so, I think we have enough existing Apache PMC members to mentor the rebooted project. I'm happy to start the ball rolling on the proposal

Re: How to insert after using XmlCursor?

2013-10-23 Thread jerry . sy
You need to go to the END of the parent cursor or to the nextToken of the END of the lastChild, then do the insert. XmlObject test1 = XmlObject.Factory.parse(parentchildfirst/child/parent); XmlCursor testcurs = test1.newCursor(); if (testcurs.isStartdoc()){

Re: How to insert after using XmlCursor?

2013-10-23 Thread Michael Bishop
That's really helpful. That got me most of the way there. I have to take into account that child may not be the only kind of child a parent can have. Given schema constraints, I have to make sure children appear in the right order. I've found a solution that still needs testing for all cases. The

Re: Question about generating Java Source Code from XML Schemas

2013-08-21 Thread Michael Bishop
I think I can answer your first question. From what I recall in parsing/reading documents, InputStream is a poor choice for XML documents that include other documents. An InputStream object can't tell you where its source is. Therefore, there is no way to find relative paths. I would try the

Re: Add to XmlBeans FAQ re orphaned objects and XmlValueDisconnectedException

2013-08-21 Thread Cezar Andrei
I added the new question and answer to the Faq page. XmlObject.copy() should be much more efficient than toString() and parse(). Cezar On Tue, 2013-08-20 at 07:10 -0700, Lott, Christopher M wrote: I would like to suggest an addition to page http://wiki.apache.org/xmlbeans/XmlBeansFaq but I

Add to XmlBeans FAQ re orphaned objects and XmlValueDisconnectedException

2013-08-20 Thread Lott, Christopher M
I would like to suggest an addition to page http://wiki.apache.org/xmlbeans/XmlBeansFaq but I cannot edit it, so am trying the email list. Please redirect me if I'm sending this to the wrong place. Is this Q A sufficient and clear? Thanks for listening. Q: Why am I getting

Re: Modifying XmlBeans document without XmlValueDisconnectedException?

2013-08-19 Thread Nick Burch
On Mon, 19 Aug 2013, Lott, Christopher M wrote: We use XmlBeans, code generated from a schema, to read in an XML instance that conforms to the schema and modify it. Read and validate work fine; modify is killing me. For example, change the value of an element, delete an element from a list,

RE: Modifying XmlBeans document without XmlValueDisconnectedException?

2013-08-19 Thread Paul Gillen
Since I think I can answer your question I probably misunderstand it. :) However ... Given an XSD: ?xml version=1.0 encoding=UTF-8? xs:schema targetNamespace=org.eltesto elementFormDefault=qualified attributeFormDefault=unqualified xmlns=org.eltesto

Re: Modifying XmlBeans document without XmlValueDisconnectedException?

2013-08-19 Thread Lott, Christopher M
Thanks to Nick B. and Paul G. for their quick replies! Below is code that demonstrates, at least superficially, the exception that we get. We are doing something wrong in our code; I don't suspect an XmlBeans bug at this point. This code is derived from (and depends on the schema and example

RE: Modifying XmlBeans document without XmlValueDisconnectedException?

2013-08-19 Thread Paul Gillen
: Monday, August 19, 2013 9:33 PM To: user@xmlbeans.apache.org Subject: Re: Modifying XmlBeans document without XmlValueDisconnectedException? Thanks to Nick B. and Paul G. for their quick replies! Below is code that demonstrates, at least superficially, the exception that we get. We are doing

Re: Getting XMLBeans out of Attic

2013-07-29 Thread Daniel Lübke
Hi, sorry for not replying immediately. We have now 7 persons who would be willing to join a new PMC: Jacob Danner (already committer) Jerry Sy Pascal Heus Jack Gager Harring Figueiredo Serkan Tas Daniel Lübke (me) I have talked to the Apache ODE PMC Chair Tammo van Lessen how we can get

Re: Getting XMLBeans out of Attic

2013-07-29 Thread Nick Burch
On Mon, 29 Jul 2013, Daniel Lübke wrote: I have talked to the Apache ODE PMC Chair Tammo van Lessen how we can get things running again, i.e. which Apache rules are there etc. I will keep you updated. As I understand it, the responsibility for the project has been moved to the Apache Attic

Re: Getting XMLBeans out of Attic

2013-07-26 Thread Pascal Heus
Daniel: You can add myself and my colleague Jack Gager (j.ga...@metadatatechnology.com) to the list. best *P On 7/24/13 9:50 PM, jerry...@oracle.com wrote: Hi Daniel, Please count me in. Thanks Jerry On 7/23/2013 8:29 AM, Daniel Lübke wrote: Hi list, I am a long-time user of XMLBeans,

Re: Getting XMLBeans out of Attic

2013-07-26 Thread Harring Figueiredo
Add myself as well, please. Thank you, Harring Figueiredo On Fri, Jul 26, 2013 at 9:15 AM, Pascal Heus pascal.h...@gmail.com wrote: Daniel: You can add myself and my colleague Jack Gager (j.ga...@metadatatechnology.com) to the list. best *P On 7/24/13 9:50 PM, jerry...@oracle.com

Re: Getting XMLBeans out of Attic

2013-07-26 Thread s t
We are using the library for 3 years, after castor. I may participate. 24 Tem 2013 tarihinde 22:50 saatinde, jerry...@oracle.com şunları yazdı: Hi Daniel, Please count me in. Thanks Jerry On 7/23/2013 8:29 AM, Daniel Lübke wrote: Hi list, I am a long-time user of

Re: Getting XMLBeans out of Attic

2013-07-24 Thread Pascal Heus
Daniel and all: We're using XmlBeans quite a bit and are interested to keep this alive as well. Would be great to have more information around the Apache rules/processes, PMC, roles/responsibilities, etc. to understand how we could support the project. best *P On 7/23/13 5:29 PM, Daniel Lübke

Re: Getting XMLBeans out of Attic

2013-07-24 Thread Nick Burch
On Wed, 24 Jul 2013, Pascal Heus wrote: We're using XmlBeans quite a bit and are interested to keep this alive as well. Would be great to have more information around the Apache rules/processes, PMC, roles/responsibilities, etc. to understand how we could support the project. The Apache

Re: Getting XMLBeans out of Attic

2013-07-24 Thread jerry . sy
Hi Daniel, Please count me in. Thanks Jerry On 7/23/2013 8:29 AM, Daniel Lübke wrote: Hi list, I am a long-time user of XMLBeans, most of the time as part of the BPELUnit project. There is no replacement to XMLBeans because in contrast to JAXB if preserves namespace declarations so you

Re: Project still maintained?

2013-07-23 Thread Elvis Stansvik
2013/7/23 Bill Stafford bstaff...@artificialmed.com Peter Keller is correct, VTD is no substitute for XMLBeans. I would class the email suggesting that it was as spam. The next best approach, if XMLBeans is not an option, would be JAXB. But JAXB is nothing like XMLBeans so I would not

Re: Project still maintained?

2013-07-23 Thread Pascal Heus
We're using XmlBeans in several of our projects and haven't found anything else out there that does the job like it, particularly when it comes to dealing with substitution groups and other advanced schema features. Would very much like to see this stay out of the attic! best *P On 7/23/13 3:26

Re: Project still maintained?

2013-07-23 Thread mARK aNDREWS
Hi all, I have been working for a Charity for the last 5 years, and we are using XMLBeans for Marshalling web service calls to Java with Spring-ws. These has been a very successful approach and have had no real issues with it. I know it counts for little, but It would be a massive shame if the

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: Project still maintained?

2013-07-22 Thread Paul Gillen
Once again simplicity, utility, and elegance lose out. Cordially, Paul Gillen _ From: Jacob Danner [mailto:jacob.dan...@gmail.com] Sent: Monday, July 22, 2013 1:38 PM To: user@xmlbeans.apache.org Subject: Re: Project still maintained? Hi Elvis, The XMLBeans project

Re: Project still maintained?

2013-07-22 Thread Michael Bishop
This is awfully unfortunate. To my knowledge, there's no comparable product out there. We're still struggling with a few XMLBeans issues that we've had to go to straight DOM to work around. I was hoping that future releases would address some of these issues, but it doesn't appear to be the case.

Re: Project still maintained?

2013-07-22 Thread Elvis Stansvik
2013/7/22 Jacob Danner jacob.dan...@gmail.com 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 Ah I should have suspected that. That's bad news to me, but understandable. I had a small patch I was

Re: Project still maintained?

2013-07-22 Thread Nick Burch
On Mon, 22 Jul 2013, Michael Bishop wrote: This is awfully unfortunate. To my knowledge, there's no comparable product out there. We're still struggling with a few XMLBeans issues that we've had to go to straight DOM to work around. I was hoping that future releases would address some of these

RE: Project still maintained?

2013-07-22 Thread Paul Gillen
The spirit is willing but the coding skills are weak. Cordially, Paul Gillen -Original Message- From: Nick Burch [mailto:apa...@gagravarr.org] Sent: Monday, July 22, 2013 2:00 PM To: user@xmlbeans.apache.org Subject: Re: Project still maintained? On Mon, 22 Jul 2013, Michael Bishop

Re: Project still maintained?

2013-07-22 Thread Michael Bishop
If I knew the first thing about most of the issues, I'd be more help. XMLBeans has helped me learn a few things about XML and schemas in general. Most of our issues are high level; i.e., not just minor bug fixes. For those interested: - Documentation on getting XMLBeans to run on the NetBeans

Re: Project still maintained?

2013-07-22 Thread jzhang
I think vtd-xml is quite comparable to xml bean,... - Original Message - From: user@xmlbeans.apache.org To: Cc: Sent:Mon, 22 Jul 2013 13:46:37 -0400 Subject:Re: Project still maintained? This is awfully unfortunate. To my knowledge, there's no comparable product out there. We're still

Re: Java source escaping

2013-01-31 Thread Andreas Loew
Hi again, Dridi, see below for more comments... ;-) Am 28.01.2013 15:43, schrieb Dridi Boukelmoune: Hi Andreas, Thank you for your quick answer. I didn't want to go too deep on the details but I guess I have to :) I fear so... On Mon, Jan 28, 2013 at 3:14 PM, Andreas Loew

Re: Java source escaping

2013-01-31 Thread Dridi Boukelmoune
Hi Andreas, Thanks, again, though it's the answer I feared :) I'm really puzzled that it even works on Solaris and I don't understand why it behaves differently on Linux. I'll try to browse the source code to understand how the code is generated. Best Regards, Dridi On Thu, Jan 31, 2013 at

Re: Converting from using scomp to SchemaTypeLoader.parse(...)

2013-01-30 Thread Cezar Andrei
()); } } } From: badger mailinglist [mailto:badger.mailing.l...@gmail.com] Sent: Monday, January 14, 2013 6:35 AM To: user@xmlbeans.apache.org Subject: Re: Converting from using scomp

Re: MyDocument can't be cast to MyDocumentImpl?

2013-01-30 Thread Cezar Andrei
Hi Michael, To me it seems you might have 2 different jars around for the same schema or some classloader issue. I would just make sure first it does run correctly from command line. Cezar On Tue, 2012-12-11 at 13:39 -0800, Michael Bishop wrote: Hello all, I'm experiencing a weird issue in

Re: MyDocument can't be cast to MyDocumentImpl?

2013-01-30 Thread Michael Bishop
Hi Cezar, I couldn't do it on the command line because it's a NetBeans module and needs a NetBeans platform to run. I did the next best thing and wrote a unit test around it. For whatever reason, you're correct. While writing code in the test package, I noticed two instances of the same classes

Re: Java source escaping

2013-01-28 Thread Andreas Loew
Hi Dridi, Am 28.01.2013 14:57, schrieb Dridi Boukelmoune: I'm having trouble building a project on Linux because of the classes generated by XmlBeans. The build works properly on a Solaris platform using the same tools: Java : Hotspot 1.5.0_16 Ant : 1.6.5 XmlBeans: 2.3.1.0 For the XmlBeans

Re: Java source escaping

2013-01-28 Thread Dridi Boukelmoune
Hi Andreas, Thank you for your quick answer. I didn't want to go too deep on the details but I guess I have to :) On Mon, Jan 28, 2013 at 3:14 PM, Andreas Loew andreas.l...@oracle.com wrote: Hi Dridi, Am 28.01.2013 14:57, schrieb Dridi Boukelmoune: I'm having trouble building a project on

Re: Converting from using scomp to SchemaTypeLoader.parse(...)

2013-01-15 Thread badger mailinglist
:* badger mailinglist [mailto:badger.mailing.l...@gmail.com] *Sent:* Monday, January 14, 2013 6:35 AM *To:* user@xmlbeans.apache.org *Subject:* Re: Converting from using scomp to SchemaTypeLoader.parse(...)* *** ** ** Ok, so I guess no one has ever tried this. Maybe there's a simpler question

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

2012-11-26 Thread Tim Watts
On Mon, 2012-11-26 at 08:37 +0100, moh.sushi wrote: Hello together, i have a problem with using xmlbeans. Following situation is given. - remote wsdl available (see http://pastebin.com/5qnFScMx) - code generation using axis2 and databinding xmlbeans i can do a request and i get a

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

2012-11-26 Thread moh.sushi
Hi Tim, thank yor for your answer. going into generated source code, apply https://recettage.ria.neopod.fm-ged.com/ws; in first arg for qname = private static final javax.xml.namespace.QName RETURN$0 = new javax.xml.namespace.QName(https://recettage.ria.neopod.fm-ged.com/ws;,

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

2012-11-26 Thread Tim Watts
On Mon, 2012-11-26 at 12:40 +0100, moh.sushi wrote: Hi Tim, thank yor for your answer. going into generated source code, apply https://recettage.ria.neopod.fm-ged.com/ws; in first arg for qname = private static final javax.xml.namespace.QName RETURN$0 = new

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: CDATA saving problem

2012-11-14 Thread VikingBlue
I tried with Following code, but nothing works, what did I miss? XmlOptions xmlOptions = new XmlOptions(); xmlOptions.setUseCDataBookmarks(); xmlOptions.setSaveCDataEntityCountThreshold(0); xmlOptions.setSaveCDataLengthThreshold(1); XmlObject response = XmlObject.Factory.newInstance(xmlOptions);

Re: XmlBeans dependency for XMLBeans-XPath

2012-11-02 Thread Cyrille P.
Yes i try using http://repo.maven.apache.org/maven2/org/apache/xmlbeans/ and there is still the bugs. http://search.maven.org seems to be the search interface for http://repo.maven.apache.org Cyrille Cezar Andrei-3 wrote: This should be fixed now. About the repository question: did you try

Re: XmlBeans dependency for XMLBeans-XPath

2012-10-31 Thread Cezar Andrei
This should be fixed now. About the repository question: did you try using http://repo.maven.apache.org/maven2/org/apache/xmlbeans/ ? Cezar On Tue, 2012-10-30 at 02:33 -0700, Cyrille P. wrote: Hi Cezar, There is the same bug for xmlbeans-xpath 2.5.0 I'm wondering which is the correct maven

Re: XmlBeans dependency for XMLBeans-XPath

2012-10-30 Thread Cyrille P.
Hi Cezar, There is the same bug for xmlbeans-xpath 2.5.0 I'm wondering which is the correct maven repository for xmlbeans project? - There is a maven repository where xmlbeans 2.6.0 is released but there is only source and jar, the pom file is missing :

Re: XmlBeans dependency for XMLBeans-XPath

2012-10-29 Thread Cezar Andrei
Cyrille, You found a bug, the correct dependency is xmlbeans 2.6.0. I'll fix it. Cezar On Thu, 2012-10-25 at 06:47 -0700, Cyrille P. wrote: Hi, Using XmlBeans on a Maven project, I would like to know if it's correct that xmlbeans-xpath 2.6.0 , has xmlbeans 2.4.0 in dependency and not the

RE:

2012-09-26 Thread buzz lightyear
Hi Jacob, Thanks for that - very grateful. I downloaded the revision and ran a build dist and found the generated files in builddir/build/src Fantastic, thanks again, Nick Date: Tue, 25 Sep 2012 10:44:25 -0700 Subject: Re: From: jacob.dan...@gmail.com To: user@xmlbeans.apache.org CC

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: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-13 Thread Cezar Andrei
Not that I'm aware of, but we always welcome contributions. Saxon was always hard to keep up to date because it's APIs always have been a moving target. Cezar On Sat, 2012-08-11 at 02:49 -0700, Pascal Heus wrote: Thanks Cezar. BTW, is there any plan to support the latest version of Saxon-HE

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-11 Thread Pascal Heus
Thanks Cezar. BTW, is there any plan to support the latest version of Saxon-HE (particularly now that the package is publicly available through Maven)? best *P On 8/10/12 2:02 PM, Cezar Andrei wrote: Pascal, Thanks for the support, the list of changes can be found in CHANGES.txt:

RE: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-09 Thread Dennis Sherman
@xmlbeans.apache.org Subject: Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release The files are now up at http://xmlbeans.apache.org/dist/ please do send your votes. Thanks, Cezar On Thu, 2012-08-02 at 11:04 -0700, Cezar Andrei wrote: The files are not here: http://xmlbeans.apache.org/dist

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-09 Thread jerry . sy
[X] +1 - I am in favor of this release, and can help On 08/08/2012 05:33 PM, Cezar Andrei wrote: Because I didn't receive any votes, I'm extending the vote period until end of next Monday, August 13. Cezar On Wed, 2012-08-08 at 17:07 -0700, Cezar Andrei wrote: The files are now up at

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-08 Thread Cezar Andrei
The files are now up at http://xmlbeans.apache.org/dist/ please do send your votes. Thanks, Cezar On Thu, 2012-08-02 at 11:04 -0700, Cezar Andrei wrote: The files are not here: http://xmlbeans.apache.org/dist/ yet, they should get sync-ed soon. I'll send an update when they're up. In the

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-08 Thread Cezar Andrei
Because I didn't receive any votes, I'm extending the vote period until end of next Monday, August 13. Cezar On Wed, 2012-08-08 at 17:07 -0700, Cezar Andrei wrote: The files are now up at http://xmlbeans.apache.org/dist/ please do send your votes. Thanks, Cezar On Thu, 2012-08-02 at

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-08 Thread Pascal Heus
Cezar: We're extensively using the package and welcome an update. This definitely has my vote (but it's non-binding) BTW, is there a full list of changes available? thanks *P On 8/8/12 8:33 PM, Cezar Andrei wrote: Because I didn't receive any votes, I'm extending the vote period until end

Re: XMLBeans 2.6.0-RC3

2012-08-02 Thread Cezar Andrei
Thanks Jerry. I'll send out a vote momentarily to make RC3 the final 2.6.0 release. Cezar On Mon, 2012-07-30 at 08:47 -0700, jerry...@oracle.com wrote: Hi Cezar, rc3 passed all WLS tests. Jerry On 07/23/2012 01:48 PM, Cezar Andrei wrote: RC3 is now up at the same location. Please

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-02 Thread Cezar Andrei
The files are not here: http://xmlbeans.apache.org/dist/ yet, they should get sync-ed soon. I'll send an update when they're up. In the meantime, you can find the same files here: http://apache.org/~cezar/xmlbeans-2.6.0/ Cezar On Thu, 2012-08-02 at 10:46 -0700, Cezar Andrei wrote: Please cast

Re: CDATA saving problem

2012-07-27 Thread jerry . sy
You also need to set setUseCDataBookmarks option to true as well. If your original xml contains CDATA, that option will ensure it is retained and will be present when you save the XML. As for setSaveCDataLengthThreshold and setSaveCDataEntityCountThreshold, both conditions must be satisfied for

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-10 Thread Kaan Yamanyar
Hi Jacob; 1) setSaveAggressiveNamespaces does not do what I ask: Causes the saver to reduce the number of namespace prefix declarations. The saver will do this by passing over the document twice, first to collect the set of needed namespace declarations, and then second to actually save the

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: EntityResolver not getting called...?

2012-02-07 Thread Cezar Andrei
David, This sounds strange, I checked the code, the resolver is used. Just make sure you don't have XmlOptions.setLoadUseDefaultResolver (). You can also give a try using ResolverUtil.resolverForCatalog(). Cezar On Wed, 2012-01-04 at 01:29 -0800, David Svanberg wrote: Hi, my problem is that I

Re: Insert xml contents from one xml to another

2012-02-07 Thread Cezar Andrei
Looks like you need to read this: http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html Cezar On Wed, 2012-01-04 at 11:22 -0800, Account forum wrote: Hi All, I have a requirement where in I need to read a xml file (file 1) and insert somewhere in the middle of another

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-06 Thread MurphyR
Thank you. You are a life saver!! You are correct, I did not pack the schemaorg_apache_xmlbeans\*.* in Jar. After I did that and placed the jar in the lib folder, all iz well. Thanks again. Jacob Danner-2 wrote: I'm not sure of your usecase here, but how are you compiling and packaging

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-24 Thread tejaswi chennubhotlla
Thank you Jacob for your reply. Yes, I have been searching the xmlbeans API but could not find one. I did use the timestamps pre and post query execution but I am not getting the same result everytime. My project is to optimize an xquery depending on the target constraints. So I need to show that

  1   2   3   4   5   6   7   8   9   10   >