XPath Introduction
XPath is a W3C standard. It is designed to locate nodes in the xml1.0 or xml1.1 document node tree. Currently, xpath1.0 and xpath2.0 are available. Xpath1.0 became the W3C standard in 1999, while xpath2.0 standard was established
Jdom/xpath Programming GuideThis article describes the benefits of JDOM and XPATH, and the combination of both for XML programming.ObjectiveXML is a good form of data packaging and data exchange, in today's XML big line in the world, if not heard of
In the. NET Framework 2.0, you can use the classes under the System.Xml.XPath namespace to make path-based queries to an XML document, and you need to construct a SQL-like query string that follows the XPath syntax during the query process. It is
It is still necessary to parse the xml configuration table because of work needs. Although XML is very simple, XML is completely blank, so we can only start from scratch and start from Google, for more information, see section ① ② At the end of the
1. The interfaces on the Dom are basically the same, but the test shows that the DOM under Mozilla is more standard. Even if some methods are the same, there will be some minor differences in IE, but it is irrelevant.
2. In the event model, the
1. The interfaces on the DOM are basically the same, but the test shows that the DOM under mozilla is more standard. Even if some methods are the same, there will be some minor differences in IE, but it is irrelevant.2. In the event model, the
Dom| detailed
Introduction of JDOM
Jdom is an open source project that uses pure Java technology to parse, generate, serialize, and manipulate XML documents based on a tree-structured architecture.
JDOM directly for Java programming services. It
Most of the methods defined by document are production methods, primarily used to create various types of nodes that can be inserted into a document. The common Document methods are:
Method
Describe
CreateAttribute ()
When we need to parse a Web page, if it is very simple, you can use the string to find the way, complex can use regular expression, but sometimes it is cumbersome, because the HTML code itself is more cumbersome, like the usual IMG tags, This thing
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.