MyEclipse Add Ibatis DTD file to implement automatic XML prompt function

Source: Internet
Author: User
When we write Ibatis configuration file, we want to have the XML automatic prompt function. This requires us to add a DTD file

In the beginning of the Sqlmapconfig.xml, there is a sentence <! DOCTYPE sqlmapconfig Public "-//ibatis.com//dtd SQL Map Config 2.0//en" "http://www.ibatis.com/dtd/ Sql-map-config-2.dtd ">

<! DOCTYPE sqlmapconfig public
"-//ibatis.com//dtd SQL Map Config 2.0//en"
"http://www.ibatis.com/dtd/ Sql-map-config-2.dtd ">
1. Open Window-->preferences-->myeclipse-->files and Editors-->xml-->xml catalog in MyEclipse

If it's too cumbersome, search for XML directly in the search box above


2, click the Add button, pop-up dialog box



Localtion Add your DTD file path

Key Type is public ID

Key fills in the portion of the document's header, which is -//ibatis.com//dtd SQL Map Config 2.0//en

Ok
Try again in the XML just now


The cue message came out.

If not, check that the above configuration is correct or turn off the XML again

Sql-map-2.dtd ditto

Sql-map-config-2.dtd and SQL-MAP-2.DTD

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.