节点对象属性-XML介绍ppt

时间:2021-04-23 19:56:17
【文件属性】:
文件名称:节点对象属性-XML介绍ppt
文件大小:747KB
文件格式:PPT
更新时间:2021-04-23 19:56:17
XML.ppt 节点对象属性  1.取得某节点下的某属性    Element root=document.getRootElement();        //属性名name Attribute attribute=root.attribute("size"); 2.取得属性的文字    String text=attribute.getText(); 3.删除某属性 Attribute attribute=root.attribute("size"); root.remove(attribute);

网友评论