Is there any way to get from Java classes without XML schema and vice versa?

Thanks.

Schalk Neethling-4 wrote:
> 
> You will more then likely have to start with a schema. So define your
> schema and the from this generate your XMLBean which will give you object
> A, you can then populate object A using the set methods that will be
> generated and once you have the completed object you can invert it into a
> XML string with one step by calling A.xmlText();
> 
> HTH!
> 
> Regards,
> Schalk Neethling
> 
> -----Original Message-----
> From: imorales [mailto:[EMAIL PROTECTED] 
> Sent: 06 November 2007 11:29 AM
> To: [email protected]
> Subject: xmlbeans beginner - help
> 
> 
> Hi is my first time using xmlbeans and I hava a couple of question, I
> explain
> my scenario and I would like someone to resolve my ignorance about
> xmlbeans.
> 
> Well I hava a pojo class:
> 
> ------------------------------------------
> public class A{
>         private String b;
>         
>       public A(){}
>  
>         public String getB(){ return b;}
>         public void setB(String b){this.b = b;}
> }
> ------------------------------------------
> 
> I´m using a web service that takes one parameter (String), this parameter
> is
> the XML associated to the class A. My question is how I can using xmlbeans
> conver one object A to a XML and then to String. I have no schema to do
> this
> and I don´t know if is necessary.
> 
> Thanks in advance.
> 
> -- 
> View this message in context:
> http://www.nabble.com/xmlbeans-beginner---help-tf4756991.html#a13603299
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> This email and all content are subject to the following disclaimer:
> 
> http://content.momentum.co.za/content/legal/disclaimer_email.htm
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/xmlbeans-beginner---help-tf4756991.html#a13608035
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to