You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Michael Lancaster <M....@philology.com.au> on 2004/07/14 03:08:30 UTC

creation of new nodes

hi,

 

does xmlbeans have a method for creating new nodes which are valid according
to the schema? for instance, if i have a structure:

 

<foo>

            <bar/>

</foo>

 

where <bar> is a mandatory child-element of <foo>, is there a way that
xmlbeans will automatically create <bar> when i create <foo>? otherwise this
has to be done manually in order to create a valid document, which seems to
defeat some of the purpose of the separation of code and data structure.

 

any help would be greatly appreciated.

 

thanks,

 

michael