<reponame>thorstenb/pyxb
# examples/manual/demo4c.py

import pyxb
import po4
import address
import pyxb.binding.datatypes as xs

po = po4.purchaseOrder(orderDate=xs.date(1999, 10, 20))
po.shipTo = address.USAddress('<NAME>', '123 Maple Street', 'Anytown', 'AK', 12341)
po.billTo = address.USAddress('<NAME>', '8 Oak Avenue', 'Anytown', 'AK', 12341)
                
pyxb.RequireValidWhenGenerating(False)
print po.toxml()

# examples/manual/demo4c.py

import pyxb
import po4
import address
import pyxb.binding.datatypes as xs

po = po4.purchaseOrder(orderDate=xs.date(1999, 10, 20))
po.shipTo = address.USAddress('<NAME>', '123 Maple Street', 'Anytown', 'AK', 12341)
po.billTo = address.USAddress('<NAME>', '8 Oak Avenue', 'Anytown', 'AK', 12341)
                
pyxb.RequireValidWhenGenerating(False)
print po.toxml()
# examples/manual/demo4c.py