之前做过的一些项目包括xml操作,但是只是完成了功能,但是没有具体进行整理。现在对xml做一个整理归纳。 1.引入本文处理的xml文档 <bookstore> <book category="children"> <title lang="en"> Harry Potter </title> <author> J K. Rowling </author> <year> 2005 </year> <price> 29.99 </price> </book>