Radu Preotiuc-Pietro wrote:

> This is unfortunately a shortcoming in XmlBeans - when "fragments" are
> saved (XmlObjects that are not Documents), the type of the fragment is
> not saved, so when loading the XML back, you need to either use:
> 
> CorrectType.Factory.parse(fragment);

Only Document Types have the Factory.parse method, or? For the Element in my
case (which is a fragment and not a root document) the Method does not
exist.

> anyTypeXmlObject.changeType(CorrectType.type) after getting the generic
> XmlObject.

Yes, this works, but how can I serialize the SchemaType? ;-) I didn't find a
way to create a new one (Constructor, Factory...)


Jan


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

Reply via email to