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
Rick Beddoe Author on
well, looks like I answered my own question. It's simple. I neglected to realize that the XML implementation in ARIS is using jDOM
To define the value of an element:
results in:
<?xml version="1.0" encoding="UTF-8" ?>
<Workbook> <Table Name="Roles">foo</Table> </Workbook>Rick Beddoe
Cargill Aris Technical Analyst
Minneapolis, MN, USA