RE: XMLBeans and SchemaTron

2007-04-11 Thread Radu Preotiuc-Pietro
Yes, by "not work" meaning that the Schematron rules will not be processed and enforced against documents at run-time. The Schema will compile of course. Radu On Wed, 2007-04-11 at 17:41 -0300, Rafael Tatsuya Icibaci wrote: > Hunmif I understand correctly what you said. If I include schematro

Re: Method call order while marshalling

2007-04-11 Thread Radu Preotiuc-Pietro
Agreed with Jacob, wanted to add one more thing: - for child elements of a complex type (I assume that's what you are talking about when saying you need to first initialize the child object), you have available methods like addNewXXX(); I would recommend using those, they are faster than setXXX()

RE: XMLBeans and SchemaTron

2007-04-11 Thread Rafael Tatsuya Icibaci
Hunmif I understand correctly what you said. If I include schematron tags into a XML Schema and give the XML Schema to XMLBeans to use, it will not work ??? Because XMLBeans doesn't have a engine to process the embed schematron tags ?? Atenciosamente Rafael T. Icibaci IBM Middleware EAI Te

RE: XMLBeans and SchemaTron

2007-04-11 Thread Radu Preotiuc-Pietro
This is only half of it though. Having the Schematron rules inside a Schema means that you can get to the rules from XmlBeans, but you still need a Schematron validation engine to process the rules and apply them to the incoming document. What is this validation engine (if you can? Radu On Wed, 2

Re: Method call order while marshalling

2007-04-11 Thread Jacob Danner
Hi Ivan, In response to your comments. 1) XMLBeans should preserve ordering regardless of the order of method invocation. Are you not seeing this? I know there is a JIRA issue open regarding setXXX() when occurs in the sequence? Is it possible this is what you are running into? https://issues.apa

Method call order while marshalling

2007-04-11 Thread Ivan Balashov
Hi, Just want to say a couple of things, which might have been already told, if so, my apologies. First, when I generate XML document from generated Java classes, it would be much better not to depend on the order of the methods I have to call to populate the Xml Object graph. For example, when

XMLBeans and SelectPath from XQueryXPath samples, does it work ?

2007-04-11 Thread Patrizio.Ferlito
Hi all, I'm using xmlbeans-2.2.0 and saxonb8-6-1 and I'm trying to run the provided SelectPath example from XQueryXPath samples (I'm interested mainly on XmlObject.selectPath usage). >From the XQueryXPath class I've commented out all calls to the ExecQuery class and I've left only the below cal

RE: XMLBeans and SchemaTron

2007-04-11 Thread Rafael Tatsuya Icibaci
Radu, XMLBeans support XML Schemas so, if we have a way to embed schematron tags within XSD, so my problem is solved. I think I found it..BTW, It's the same solution that I found earlier in this note(schematron tags into context), see sample XSD below: Marcelo: Seems that we are good to

RE: XMLBeans and XmlCursor

2007-04-11 Thread Patrizio.Ferlito
Hi Cezar, the original document is the below: http://www.bsource.ch/EDA";> CS GROUP N 09-03-2007 1213853 -0.2 5821192 CHF // this line will be changed 87.9 87.75 87.7 size 471 bytes The xpath expres