-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
before line 273 the method is gathering info from the entities. line 273 creates the document Document shipmentConfirmRequestDoc = UtilXml.makeEmptyXmlDocument("ShipmentConfirmRequest"); from there the Xml is built to send to UPS. the addChildElement and addChildElementvalue creates a xml string with the data passed down thru the Call. this can be static info like Element labelImageFormatElement = UtilXml.addChildElement(labelSpecificationElement, "LabelImageFormat", shipmentConfirmRequestDoc); UtilXml.addChildElementValue(labelImageFormatElement, "Code", "GIF", shipmentConfirmRequestDoc); or can be dynamic like: UtilXml.addChildElementValue(shipperElement, "AttentionName", originPostalAddress.getString("attnName"), shipmentConfirmRequestDoc); where originPostalAddress was defined before like 273. bsn.mur...@gmail.com sent the following on 1/22/2009 1:08 PM: > BJ Freeman wrote: > it adds xml elements to a already created document. > yes it is the way to add the ofbiz data in xml format per UPS format. > > kiran19 sent the following on 1/22/2009 12:50 PM: >>>> hi all.. >>>> i am having a doubt,what the addChildElementValue method of the >>>> utilxml.java file does.. because it has been used in the upsservices.java >>>> in >>>> most of the methods... at the end of the upsShipmentConfirm() they have >>>> used >>>> the method of the utilxml.java does it is used to create the new xml >>>> document with the dynamic values... >> >> > Quoted from: > http://www.nabble.com/UtilXml-file-in-related-with-ups-services-tp21612800p21613096.html > means you mean to say whatever the data which are dyanamically fetched from > the java method ,those data are placed in the new xml document at the end of > the method -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJeOdJrP3NbaWWqE4RAu6UAKDRrEiNBRAJCMsA8yhkDrzesCf9iACfYPO3 zAQlyaXAzGQMMkqvNgRoevs= =8hLx -----END PGP SIGNATURE-----