Hagai, you can use XmlCursor to navigate to the position where you want to add a comment and call insertComment(String). See http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html and http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlCursor.html#insertComment(java.lang.String) - Wing Yew
-----Original Message----- From: hagai [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 3:40 AM To: user@xmlbeans.apache.org Subject: add a comment before an element Hi, How can I add a comment before or after a certain tag? Thanks, Hagai. -- View this message in context: http://www.nabble.com/add-a-comment-before-an-element-tp19432017p19432017.html 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]