QUESTION:
What is not right with this code? I just can't get it to append.
var sNewRecord ;
sNewRecord = Doc_xml.createElement("tblCheckBook2000"
;
sNewRecord.attributes.DATE = "03/09/2003";
sNewRecord.attributes.CHECK_ID = "5000";
sNewRecord.attributes.DESCRIPTION = "TEST B-DAY RECORD";
sNewRecord.attributes.AMOUNT = "-100";
sNewRecord.attributes.RecId = "5001";
Doc_xml.appendChild(sNewRecord);
NOTE:
I've already loaded the an .xml file from the local hardrive into the Doc_xml object.
As always any input or syntax is greatly appreciated.
What is not right with this code? I just can't get it to append.
var sNewRecord ;
sNewRecord = Doc_xml.createElement("tblCheckBook2000"
sNewRecord.attributes.DATE = "03/09/2003";
sNewRecord.attributes.CHECK_ID = "5000";
sNewRecord.attributes.DESCRIPTION = "TEST B-DAY RECORD";
sNewRecord.attributes.AMOUNT = "-100";
sNewRecord.attributes.RecId = "5001";
Doc_xml.appendChild(sNewRecord);
NOTE:
I've already loaded the an .xml file from the local hardrive into the Doc_xml object.
As always any input or syntax is greatly appreciated.