Requirements
Through the previous few days of study, I have mastered the knowledge of DOM operations in JAVA. Now let's take a small DEMO as a summary. If you are not familiar with the DOM parser, the following content may help you:
JAVA and DOM parser basic learning notes JAVA and DOM parser improvement (DOM/SAX/JDOM/DOM4j/XPath) learning notes 2 conversion of XML and database in JAVA 3
The DEMO address has been provided at the beginning of the article. The server speed is not very good. Please forgive me for your patience and wait several times. Let me continue with the previous one:
= Dom4j. load2 (URL ("http://www.li-cheng.cn/dict/dict.xml" = document. selectNodes ("/books/book/@ show"); String SQL = "/dict/word [name = '" + wordStr + "']" = (word! = (Iterator I = (element. getName () = "name" (element. getName () = "mean" (element. getName () = "lx" "/r/n", "<br>" abortion"
Author: Li-Cheng Source: The copyright of this article is shared by the author and the blog Park. You are welcome to reprint it. However, you must keep this statement without the author's consent and provide a connection to the original text on the article page, otherwise, you are entitled to pursue legal liability.