...
LOCAL PROCEDURE AddAccountTags@1120057(VAR XMLNodeCurr@1120006 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode";AccountName@1120000 : Text[70];Address@1120002 : Text[70];Address2@1120001 : Text[70];PostCode@1120004 : Text[70];City@1120005 : Text[70];CountryCode@1120003 : Text[10]);
VAR
XMLNewChild@1120007 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode";
BEGIN
AddElement(XMLNodeCurr,'Nm',AccountName,'', XMLNewChild);
AddElement(XMLNodeCurr,'PstlAdr','','', XMLNewChild);
...
...
LOCAL PROCEDURE AddAccountTags@1120057(VAR XMLNodeCurr@1120006 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode";AccountName@1120000 : Text[70];Address@1120002 : Text[70];Address2@1120001 : Text[70];PostCode@1120004 : Text[70];City@1120005 : Text[70];CountryCode@1120003 : Text[10]);
VAR
XMLNewChild@1120007 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode";
// Add the following lines.
AddressLine1@1120008 : Text[150];
AddressLine2@1120009 : Text[150];
// End of the lines.
BEGIN
AddElement(XMLNodeCurr,'Nm',AccountName,'', XMLNewChild);
AddElement(XMLNodeCurr,'PstlAdr','','', XMLNewChild);
...
...
AddElement(XMLNodeCurr,'PstlAdr','','', XMLNewChild);
XMLNodeCurr := XMLNewChild;
// Delete the following lines.
IF DELCHR(Address) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',Address,'', XMLNewChild);
IF DELCHR(Address2) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',Address2,'', XMLNewChild);
IF DELCHR(PostCode) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',PostCode,'', XMLNewChild);
IF DELCHR(City) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',City,'', XMLNewChild);
// End of the lines.
AddElement(XMLNodeCurr,'Ctry',COPYSTR(CountryCode,1,2),'', XMLNewChild);
XMLNodeCurr := XMLNodeCurr.parentNode;
XMLNodeCurr := XMLNodeCurr.parentNode;
...
...
AddElement(XMLNodeCurr,'PstlAdr','','', XMLNewChild);
XMLNodeCurr := XMLNewChild;
// Add the following lines.
AddressLine1 := DELCHR(Address,'<>') + ' ' + DELCHR(Address2,'<>');
IF DELCHR(AddressLine1) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',COPYSTR(AddressLine1,1,70),'', XMLNewChild);
AddressLine2 := DELCHR(PostCode,'<>') + ' ' + DELCHR(City,'<>');
IF DELCHR(AddressLine2) <> '' THEN
AddElement(XMLNodeCurr,'AdrLine',COPYSTR(AddressLine2,1,70),'', XMLNewChild);
// End of the lines.
AddElement(XMLNodeCurr,'Ctry',COPYSTR(CountryCode,1,2),'', XMLNewChild);
XMLNodeCurr := XMLNodeCurr.parentNode;
XMLNodeCurr := XMLNodeCurr.parentNode;
...