Hello everyone,
if anyone know how to marshall an object to an XML annotation using JIBX, and 
not writing directly XML with the XMLWriter per example : 

---- The class annotation

Class Annotation {
private String annotation;
public String toString(){
return annotation;
}

}

---- Marshall the object

Annotation a = new Annotation();
a.setAnnotation("My annotation");
marshallingContext.marshalDocument(a);

----- the xml result

....

<!-- My annotation -->

...

---- Thank you !
                                          
_________________________________________________________________
Hotmail : une messagerie fiable avec une protection anti-spam performante
https://signup.live.com/signup.aspx?id=60969
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to