Creating a mesage with XMLBeans

Imported from previous forum

Hi,

Has anybody used the FixML44 schema with xmlbeans?

I seem to be getting stuck on the type inheritance

I start with:
FIXMLDocument doc = FIXMLDocument.Factory.newInstance();
FIXMLDocument.FIXML fixml = doc.addNewFIXML();

but fixml only has addNewBatch() and addNewMessage().

So i try
AllocationReportMessageT rpt = AllocationReportMessageT.Factory.newInstance();
fixml.setMessage( rpt );

but the generated XML shows the allocation report element name as Message instead of AllocationReport.

Hi,

I realise this is an old thread but did you get any further with this as I have exactly the same problem?

Hi,

Has anybody used the FixML44 schema with xmlbeans?

I seem to be getting stuck on the type inheritance

I start with: FIXMLDocument doc = FIXMLDocument.Factory.newInstance();
FIXMLDocument.FIXML fixml = doc.addNewFIXML();

but fixml only has addNewBatch() and addNewMessage().

So i try AllocationReportMessageT rpt =
AllocationReportMessageT.Factory.newInstance(); fixml.setMessage( rpt );

but the generated XML shows the allocation report element name as
Message instead of AllocationReport.