Hi,

not sure I understand fully what you are trying to achieve. Apparently, you have generated Java classes (and descriptors) from an XML schema, and you now want to marshal XML from an object instance using the generated entity and descriptor classes. So far, so good.

But what is the problem you are facing ? Are you getting errors when marshalling to XML ?

Regards
Werner

On 24.02.2011 09:23, Jules001 wrote:

I've noticed I'm missing the schema references in the xml file.

i.e.
         xmlns="http://<address>/PI" *
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://<address>/PI " +
         "http://<address>/schemas/version1.0/schemas/timeseries.xsd"

I've generated the java objects using the timeseries.xsd schema:

<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:ex="http://<address>/PI" targetNamespace="http://<address>/PI"
elementFormDefault="qualified">
         <include schemaLocation="types.xsd"/>
         <element name="TimeSeries" type="ex:TimeSeriesComplexType">
                 <annotation>
                         <documentation>Time series data represent data
collected over a given period of time at a specific location</documentation>
                 </annotation>
         </element>

I haven't been able to find where to set the values.

Could you point me towards a basic example of xmlns= ...  xmlns:xsi=...
xsi:schemaLocation ...

Thanks.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to