摘要:
1 /** 2 * 从数据库读取学生信息的数据集合,然后Dom创建数据树,再转成XML格式数据,输出生成xml文件 3 * @author pikaqiu 4 * 5 */ 6 public class TestGenXml { 7 8 public static void main(String[] args) throws Exception { ...
阅读全文
posted @ 2018-01-09 20:28
会编程的皮卡丘
阅读(1259)
推荐(0)
摘要:
一、DOM 解析 思路:获得Document对象,遍历其中节点获得需要的内容 要点: Document : DocuemntBuilderFactory --newDocumentBuilder --parse(xml文件输入流) 根节点: getDocumentElement() 子节点 :Nod
阅读全文
posted @ 2018-01-09 20:09
会编程的皮卡丘
阅读(194)
推荐(0)
摘要:
public class ArrayList{ private static final int DEFAULT_CAPACITY = 10;//默认的容量是10 private static final Object[] EMPTY_ELEMENTDATA = {};//长度为空的时候的数组,不可变的 private static final Object[] DEFA...
阅读全文
posted @ 2018-01-08 18:24
会编程的皮卡丘
阅读(588)
推荐(0)
摘要:
]> 常用属性: CDATA 值为字符数据 (character data) 属性必须添加 约束: REQUIRED 属性值是必需的 #IMPLIED 属性不是必需的 #FIXED value 属性值是固定的 --> George John Reminder Don't forget t...
阅读全文
posted @ 2018-01-08 15:12
会编程的皮卡丘
阅读(1612)
推荐(0)
摘要:
关键点:获得form(两种方法:1,document.forms[0]; 2,document.formName;) 获得option: select对象.options options 属性 length,方法add(),构造newOption(内容,value) 步骤: Step(1) Onlo
阅读全文
posted @ 2018-01-08 13:39
会编程的皮卡丘
阅读(241)
推荐(0)
摘要:
今天在做商城页面,遇到问题: <%@include file="menu.jsp" %> 错误提示: Multiple annotations found at this line: - Duplicate local variable path - Duplicate local variable
阅读全文
posted @ 2018-01-07 10:28
会编程的皮卡丘
阅读(1062)
推荐(0)