日期:2014-05-20 浏览次数:20686 次
public void toWrite(String mytitle,String mycontent) { Element root=document.createElement( "trolleyId"); document.appendChild(root); Element title=document.createElement( "Title"); title.appendChild(document.createTextNode(mytitle)); root.appendChild(title); Element content=document.createElement( "Content"); content.appendChild(document.createTextNode(mycontent)); root.appendChild(content); }