src/web/js/acsimpleconfig.js
/**
 * This method stores the XML from the text area as a child of the nParent node.
 * 
 * @param taData The text area containing the data.
 * @param nParent The parent XML node.
 * 
 * @return Nothing.
 */
This method stores the XML from the text area as a child of the nParent node.

@param taData The text area containing the data.
@param nParent The parent XML node.

@return Nothing.
This method stores the XML from the text area as a child of the nParent node . @param taData The text area containing the data . @param nParent The parent XML node . @return Nothing .
function storeXMLFromTextArea(taData, nParent, sTagName)
{
	var nDestination = nParent.selectSingleNode(sTagName);
    if (nDestination == null)
    {
    	nDestination = nClonedData.ownerDocument.createNode(1, sTagName, NS_CONFIGURATION);
    	nParent.appendChild(nDestination);
    }
    while(nDestination.firstChild != null)
	{
		nDestination.removeChild(nDestination.firstChild);
	}
    var sNewXMLData = "" + taData.getValue();
    var reRegEx = /\sxmlns:xml=".+?"/gm;
    sNewXMLData = sNewXMLData.replace(reRegEx, "");
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc.loadXML(sNewXMLData);
	if (libXMLUtil.checkAndReportError(xmlDoc) == null)
	{
		var nDocElem = xmlDoc.documentElement;
		while (nDocElem.firstChild != null)
		{
			nDestination.appendChild(nDocElem.firstChild);
		}
	}
}
function storeXMLFromTextArea ( taData , nParent , sTagName ) { var nDestination = nParent . selectSingleNode ( sTagName ) ; if ( nDestination == null ) { nDestination = nClonedData . ownerDocument . createNode ( 1 , sTagName , NS_CONFIGURATION ) ; nParent . appendChild ( nDestination ) ; } while ( nDestination . firstChild != null ) { nDestination . removeChild ( nDestination . firstChild ) ; } var sNewXMLData = "" + taData . getValue ( ) ; var reRegEx = / \sxmlns:xml=".+?" / gm ; sNewXMLData = sNewXMLData . replace ( reRegEx , "" ) ; var xmlDoc = new ActiveXObject ( "Microsoft.XMLDOM" ) ; xmlDoc . loadXML ( sNewXMLData ) ; if ( libXMLUtil . checkAndReportError ( xmlDoc ) == null ) { var nDocElem = xmlDoc . documentElement ; while ( nDocElem . firstChild != null ) { nDestination . appendChild ( nDocElem . firstChild ) ; } } }
This method stores the XML from the text area as a child of the nParent node.
This method stores the XML from the text area as a child of the nParent node .
//If someone uses xml:space="preserve" XMLDOM will add a xmlns:xml to the XML.
 //This needs to be removed.
 //Load the edited XML
 //XML ok
