I know this should be easy, but I just can't seem to find it anywhere in the documentation.
I am creating an XML Node and setting an attribute.
this.XMLReport = function(oReportName){ var oTable = oXMLWorkBook.addElement(oXMLWorkBook.getRootElement(), "Table"); oTable.setAttribute("Name", oReportName); }
as expected, this creates the following xml:
<Workbook> <Table Name="Roles" /> </Workbook>
I would like to know know how I can add a value to an XML node like this:
<Workbook> <Table Name="Roles" >11332244232</Table > </Workbook>How do I place the content in my XML node?
Rick Beddoe
Cargill Aris Technical Analyst
Minneapolis, MN, USA