Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schema structure problem

Status
Not open for further replies.

kidmar

Programmer
Mar 2, 2006
17
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top