RT

解决方案 »

  1.   


    tempNode1:=xmldom.createElement(doc,lableorTextBox);
                xmldom.setAttribute(tempNode1,nameortext,nodeAttributeValue);
                xmldom.setAttribute(tempNode1,'Location',PointValues);
                xmldom.setAttribute(tempNode1,'Size',AttributeSize);
                xmldom.appendChild( xmldom.getlastChild(tempNode),tempNode1);
    createElement 需要的类型是 DOMElement 
    appendChild需要的类型是DOMNode
      

  2.   

    看我急的  是  setAttribute 需要DOMElement  类型
      

  3.   

    试试makeNode()和makeElement()
    希望对楼主有所帮助