RE: wheres the API

Declan Shanaghy <[email protected]> Mon, 19 Jan 2004 16:09:50 -0800 (PST)
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <[email protected]>
How come the output from this code is not what i expect.
Do i have to "save" the document or something?
Theres no "save" method in the DOM spec for document.
 
context.USPS.Temp.manage_addProduct['ParsedXML'].manage_addParsedXML(id=requestObjId,file="")

rateRequestObj = getattr(context.USPS.Temp, requestObjId)
arse = rateRequestObj.createElement("ARSE")
arse.setAttribute("ZipOrigination", "5454545")
RESPONSE.write(str(rateRequestObj))

return 

Output :

<?xml version="1.0" ?>
<emptydocumentElement/>

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com