I have an xsd. The relevant parts are:
<xs:element name="heu-config">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="heu-def" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="heu-def">
<xs:complexType>
<xs:attributeGroup ref="heu-address" />
<xs:attributeGroup ref="smc-agent-address" />
<xs:attribute name="device-state" type="device-state" />
</xs:complexType>
</xs:element>
When I use generateDS code to parse an xml instance all is well:
<smc-config>
<heu-config>
<heu-def heu-num="1" heu-div="1" ip-address="10.0.0.1" host="localhost"
port="8091" device-state="power-down" />
</heu-config>
</smc-config>
But when I use generateDS code to export an xml instance, all is NOT well
because in some cases (for example heu-def) an underscore appears in place
of the expected dash:
<smc-config>
<heu-config>
<heu_def heu-num="1" heu-div="1" host="localhost"
ip-address="10.0.0.1" port="8091" device-state="power-down">
</heu_def>
</heu-config>
</smc-config>
Am I doing something wrong?
Thanks.
Lou.
Lou.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users