Hello
I have starded my first job a month ago and i had to study powerbuilder 9.0 on my own(i used fastrack to powerbuilder 6.5 manual).
I need to export rows in a DataWindows and generate the xml and xsd files. My problem is that the xsd file has to show restrictions on elements, like this:
<xsd:attribute name="tipo_m" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="P"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
my problem is that i cant modify the xsd, but i need it to be generated with restrictions automatically. i dont know how to tell PB to restrict that values and show restrictions on the xsd.
i tried to modify the template of the DataWindow but could not get to the point.
another problem is that the xsd i make is like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs=" <xs:element name="untitled">
<xs:complexType>
<xs:sequence>
...
instead of "<xs:schema" i should have "<xsd:schema"
i dont know if this matters somehow
I'm sorry for bad english and explanation, I've done the best i could
Thanks in advance,
Marco
I have starded my first job a month ago and i had to study powerbuilder 9.0 on my own(i used fastrack to powerbuilder 6.5 manual).
I need to export rows in a DataWindows and generate the xml and xsd files. My problem is that the xsd file has to show restrictions on elements, like this:
<xsd:attribute name="tipo_m" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="P"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
my problem is that i cant modify the xsd, but i need it to be generated with restrictions automatically. i dont know how to tell PB to restrict that values and show restrictions on the xsd.
i tried to modify the template of the DataWindow but could not get to the point.
another problem is that the xsd i make is like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs=" <xs:element name="untitled">
<xs:complexType>
<xs:sequence>
...
instead of "<xs:schema" i should have "<xsd:schema"
i dont know if this matters somehow
I'm sorry for bad english and explanation, I've done the best i could
Thanks in advance,
Marco