JAVA uses Dom4j to query 6-level English vocabulary with demo addresses

Source: Internet
Author: User

Requirements

    • Required knowledge

      A basic understanding of JAVA programming and DOM basics.

    • Development Environment

      MyEclipse10

    • Demo address

      Demo address



    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.

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.