Luis Miguel and Uche,
Looked at the QuickRef but forgot about the whatsnew:-[ .
Thanks a lot for your pointers, that got me going again.
I have one more thing (at least for the moment:-) ) which I don't know
how to translate. When sending a vinoXML doc using urllib/2 to Global
Wine Stocks I had to do the following:
docstring =
doc.xml(force_nsdecls=xmlcreation.vinoxml_NSS).replace('xmlns=""', '')
vinoxml_NSS = {u'xsd': u'
http://www.w3.org/2001/XMLSchema',
u'xsi': u'
http://www.w3.org/2001/XMLSchema-instance'}
I vaguely remember that they had an issue with the namespace definitions.
The doc is created like this:
def createXMLquery():
"""
Create a bindery instance, to be used for e.g. GWS vinoXML query"""
doc_header = """<query
xmlns="
http://www.vinoxml.org/XMLschema"></query>"""
doc = xmlu.bindery.parse(doc_header)
return doc
then elements etc are added and just before sending it I did the
"force_nsdecls" trick which I got from Uche a long time ago.
Sorry to bug you all with these things.
Werner