Author: Steve Traut
Versions: xmlbeans-1.0.3, xmlbeans-v2
This sample illustrates how you can work with mixed content XML by combining strong types generated from schema with an XmlCursor instance. The XmlCursor interface is provided with XMLBeans for just this kind of use. With strong types you can only get or set the full value of an element; by using a cursor you can "dive into" the contents of an element, manipulating child elements that are embedded in the content and surrounded by other text.