Java Operation XML File

Source: Internet
Author: User

?? 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.