?? There are four ways to use it regularly: Dom,jdom,sax and dom4j
What is the difference between node and element in XML?
node is relative to a data structure such as tree, and element is the concept in XML.
A node is not necessarily an element. But an element must be a node.
A node that must contain complete information is an element.
Element is inherited from node. element is a node that can have attributes and sub-nodes.
Add to
Appendelement ()
CreateElement ()
Changes
SetAttribute ()
Settextcontent ()
Delete
Getparentnode (). RemoveChild ()
Save
Transformerfactory
Domsource: As the holder of the convert source tree in the form of the document Object model tree
Streamresult: A holder that acts as the result of a transformation, capable of marking XML, plain text, HTML, or some other format
Find
Xpathfactory:
XPath: Provides access to the XPath computing environment and expressions
Xpath.evaluate ()
Java Operation XML File