Page 1 of 1

Data Binding - example xml file format

PostPosted: Fri Dec 10, 2010 11:23 pm
by bmcompston
Hi,

I'm attempting to use the data binding example 'CustomXmlBinding.java'. I can make it work using a docx source but I can't find the example MedicalChartSample.xml on the server and every attempt I have at creating my own from scratch throws an UnmarshalException - unexpected element...

Is there an example I can use to get started ?

Brian

Re: Data Binding - example xml file format

PostPosted: Sat Dec 11, 2010 11:30 am
by jason
Hello Brian

You can find MedicalChartSample.docx in samples.zip at http://dbe.codeplex.com/releases/view/5508

MedicalChartSample.xml is a "Flat OPC" XML version of that docx, which you can create by opening the docx in Word, the "save as .. xml". Or you can create it using the docx4j sample ExportInPackageFormat.

Finally, there are several documents in the sample-docs/databinding dir, though their focus is on the repeat & conditional extensions.

Hope this answers your question .. Jason

Re: Data Binding - example xml file format

PostPosted: Mon Dec 13, 2010 9:07 pm
by bmcompston
Hi Jason,

Thats just what I was after - thanks.

Brian