[jibx-users] Unit testing

2006-09-01 Thread Kees de Kooter
Anyone have any suggestions on how to unit testing? I am looking for a way to quickly test my binding definitions using Binding on Load thanks, Kees - Using Tomcat but need to do more? Need to support web services, security?

[jibx-users] Adding

2006-09-01 Thread Kees de Kooter
This is my class: public class Message { private Integer messageId; ... } And this is the xml I need to produce. ns1:message ns1:id ns2:default=11/ns1:id /ns1:message I need to add some extra (constant) attributes of a different namespace (ns2:default) to the value of message

[jibx-users] Adding attributes of different namespace to a value

2006-09-01 Thread Kees de Kooter
(Sorry - previous message had incomplete subject) This is my class: public class Message { private Integer messageId; ... } And this is the xml I need to produce. ns1:message ns1:id ns2:default=11/ns1:id /ns1:message I need to add some extra (constant) attributes of a different

Re: [jibx-users] Adding attributes of different namespace to a value

2006-09-01 Thread Kees de Kooter
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote: (Sorry - previous message had incomplete subject) This is my class: public class Message { private Integer messageId; ... } And this is the xml I need to produce. ns1:message ns1:id ns2:default=11/ns1:id /ns1:message

Re: [jibx-users] Adding attributes of different namespace to a value

2006-09-01 Thread Kees de Kooter
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote: On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote: (Sorry - previous message had incomplete subject) This is my class: public class Message { private Integer messageId; ... } And this is the xml I need to produce

[jibx-users] Output string value as _real_ xml

2006-09-01 Thread Kees de Kooter
I am trying to marshal the value of a string property that contains an xml snippet as relas xml, not as a CDATA element or with character entity substitutions. Can this be done? -- Cheers, Kees de Kooter http://www.boplicity.net

Re: [jibx-users] Output string value as _real_ xml

2006-09-01 Thread Kees de Kooter
public to get around the parsing. If you use the default printString() method, it converts all the to gt; per the XML specification. This is exactly the thing I want to prevent. I will take a look at the the sources though. Thanks for the input Thomas!

Re: [jibx-users] Unit testing

2006-09-04 Thread Kees de Kooter
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote: Anyone have any suggestions on how to unit testing? I am looking for a way to quickly test my binding definitions using Binding on Load thanks, Kees One way to do this is creating test classes with a main method, but that way you

Re: [jibx-users] Unit testing

2006-09-04 Thread Kees de Kooter
As a side note: How do you combine jibx with the Eclipse build and - even more severe - its product export? The problem is, that the automatically created Eclipse build.xml used during its deployment is not aware of the needs to export your prepared class files, but will build them again

[jibx-users] java.lang.AbstractMethodError in unmarshaller

2006-09-04 Thread Kees de Kooter
; unmarshallingContext.parsePastEndTag(uri, name); return result; } } thanx, -- Cheers, Kees de Kooter http://www.boplicity.net - Using Tomcat but need to do more? Need to support web services

[jibx-users] Possible to set CharacterEscaper in custom marshaller?

2006-09-04 Thread Kees de Kooter
Is it possible to set the character escaper in the marshal method of a custom marshaller and set it back to tho old value after that? thanx, -- Cheers, Kees de Kooter http://www.boplicity.net - Using Tomcat but need to do

Re: [jibx-users] Possible to set CharacterEscaper in custom marshaller?

2006-09-04 Thread Kees de Kooter
On 9/4/06, Kees de Kooter [EMAIL PROTECTED] wrote: Is it possible to set the character escaper in the marshal method of a custom marshaller and set it back to tho old value after that? More specifically: how can I get a reference to the Writer that is used to marshal the document to from

Re: [jibx-users] String entities

2006-09-05 Thread Kees de Kooter
On 9/5/06, denis queffeulou [EMAIL PROTECTED] wrote: Thanks for reply, actually I can't use CDATA. So I can treat entities into a ICharacterEscaper implementation, that seems good, but how can I tell Jibx to use my ICharacterEscaper implementation ? I don't find the proper attribute in

Re: [jibx-users] Binding extended classes

2006-09-07 Thread Kees de Kooter
Now, with the binding, I have already try a lot of combinations using extends, abstract, and others (even the create-type for the Class A binding to create Class B instead)... but, when unmarshalling, only one class is created with only and ONLY his particular atributes. Here is the basic

Re: [jibx-users] Binding extended classes

2006-09-08 Thread Kees de Kooter
Here is an example of my mapping: mapping class=some.package.A abstract=true value name=a field=a/ value name=b field=b/ /mapping mapping name=B class=some.package.B extends=some.package.A structure map-as=some.package.A/ value

[jibx-users] How to skip writing xml declaration

2006-09-08 Thread Kees de Kooter
How can I skip the writing of the xml declaration (?xml version=1.0 encoding=UTF-8 standalone=yes?)? -- Cheers, Kees de Kooter http://www.boplicity.net - Using Tomcat but need to do more? Need to support web services

Re: [jibx-users] constant attribute causes problems when used with value tag

2006-09-11 Thread Kees de Kooter
On 9/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Below in blue is the erro that i get when i am trying to build and below that in bold black i have pasted my binding file. I notice that if I use a constant attribute in value this error occurs.Wen I use field attribute and not the

Re: [jibx-users] constant attribute causes problems when used with value tag

2006-09-11 Thread Kees de Kooter
On 9/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear Kees, I think you could be right but can't vouch for it. I tested a very trivial binding and compiled it without using either Ant/Maven and it worked. Even in this binding file if i were to comment out all the lines with constant and

Re: [jibx-users] (no subject)

2006-09-12 Thread Kees de Kooter
Exception in thread main javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found I fixed this by adding stax-1.2.0.jar to the classpath. -- Cheers, Kees de Kooter http://www.boplicity.net

[jibx-users] Output string value as _real_ xml

2006-09-12 Thread Kees de Kooter
to build my own marshaller. Any examples araound? thanx, -- Cheers, Kees de Kooter http://www.boplicity.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated

[jibx-users] Serializing / marshalling an org.w3c.dom.Document

2006-09-12 Thread Kees de Kooter
Is it possible to serialize or marshal a org.w3c.dom.Document(or a dom4j Document or a JDOM Document for that matter)? -- Cheers, Kees de Kooter http://www.boplicity.net - Using Tomcat but need to do more? Need to support

Re: [jibx-users] Namespace information in marshalled XML

2006-09-18 Thread Kees de Kooter
On 9/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have been successful in creating a binding xml and marshalling my object heirarchy into an XML. Is it possible to generate/ marshall object heirarchy into an XML; which will have the Schema information in the topmost tag. Yes,