Corresponding program: project: TestDoProject
Corresponding program: javaWeb day01
1. You must learn to program a project into modules: This program is divided into 4 modules: dao, doMain, tool, view
dao: This package stores functions that directly operate on files. The main method can call the methods in this package to operate on XML documents;
doMain: This package is a constructor package
tool: This package is a tool package. Write the tool class you want to use and put it in this The package facilitates program calls without having to type the code every time;
view: This package contains interface classes for dealing with users, and the main class is here;
2. Frequently used in this program:
document has many ways to easily modify the document;
element tag;
attribute attribute;
The above is the detailed content of XML—detailed explanation of programming to try to add, delete, check, and modify an XML document. For more information, please follow other related articles on the PHP Chinese website!