I have a schema that uses several namespaces, but generateDS uses the
same namespace for every element.
****** from the xsd ******
<xsd:complexType name="SampleDataType">
<xsd:sequence>
<xsd:element ref="SDWIS:RecordID" minOccurs="0"/>
<xsd:element ref="EN:SampleIdentification"/>
<xsd:element ref="EN:SampleLocationIdentification"/>
<xsd:element ref="EN:AnalysisResultInformation"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
****** from the generated class ******
def exportChildren(self, outfile, level, namespace_='EN:',
name_='SampleDataType'):
if self.get_RecordID() != None :
if self.get_RecordID() != "" :
showIndent(outfile, level)
outfile.write('<%sRecordID>%s</%sRecordID>\n' %
(namespace_, quote_xml(self.get_RecordID()), namespace_))
I'm still a bit of an XML and XML Schema newbie, but it seems to be
clear that RecordID element of SampleDataType is in the "SDWIS"
namespace. Yet generateDS seems to use a default namespace of 'EN:' for
all children.
Am I missing something?
--
Randall Smith
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users