팩토리 » Api
  
xmlparse
  
Description
XML 문자열을 파싱하여 XML Document 오브젝트를 린턴한다.
 
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | strXML | 
        STRING | 
 	XML 문자열 | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | INSTANCE | 
      XML Document 오브젝트 | 
    
  
Example
function btn_xmlparse_on_mouseup(objInst)
{
	var objXmlDoc, arrXmlNode, objXmlNode, strXml, arrXmlLine;
	
	arrXmlLine = [];
	arrXmlLine.push('<?xml version="1.0" encoding="UTF-8"?>');
	arrXmlLine.push('<root>');
		arrXmlLine.push('<body>');
			arrXmlLine.push('<div id="DIV_ROOT" class="DIV_CLASS">');
				arrXmlLine.push('DIV_CONTENT');
			arrXmlLine.push('</div>');
		arrXmlLine.push('</body>');
	arrXmlLine.push('</root>');
		
	strXml = arrXmlLine.join("");
	screen.alert(strXml);
	
	// XML 문자열을 파싱하여 XML Document 오브젝트를 구함
	objXmlDoc = factory.xmlparse(strXml);
	
	// XML Document 오브젝트를 문자열로 변환
	screen.alert(factory.xmlstringify(objXmlDoc));
}
  
See Also
xmlfind
xmlname
xmltext
xmlattr
xmlstringify
  
Viewer Ver.
9.1.1.1
  
Update Date
 20180626