xsd to xml

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

xsd to xml

Post by yacahuma »

Can someone tell me what the xml will look like for this

Code: Select all

 
- <xs:element name="Part2">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="WagCommAllowTips">
- <xs:complexType>
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
  <xs:element name="IncomeTaxWithheld" type="xs:decimal" /> 
  <xs:element name="WagesCommAllowTips" type="xs:decimal" /> 
  </xs:sequence>
  <xs:attribute name="NoWithholdingStatements" type="xs:integer" /> 
  </xs:complexType>
  </xs:element>
 
 
This is what I have
<Part2>
<WagCommAllowTips>
???????-->I dont know how to do the array of IncomTaxWithheld and WagesCommAlloTips
<NoWithholdingStatements>2</NoWithholdingStatements>
</WagCommAllowTips>
</Part2>
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: xsd to xml

Post by yacahuma »

found a nice program call liquidxmlstudio. It generates sample xml from xsd. Is about a $100. But I think is worth it.
Post Reply