Level: Primary
Jane Fung (jcyfung@ca.ibm.com), VisualAge for Java support, IBM Canada
This introductory article of July 01, 2001 describes how to create XML document type definition (DTD) and well-formed XML files that can be validated by the XML
When the Java program parses the XML file, if the DTD is specified in the XML file, the DTD file is downloaded from the specified URL by default, but in many cases, if the network is not connected, or because of a firewall reason, the DTD file
What is XHtml:
To extract a sentence from the Internet, XHTML is an XML that plays a role similar to HTML.XHtml can be used as a template engine application:
The CYQ. Data framework has a set of XHtmlAction template engines applied to QBlog
First, MyEclipse:
1. Find the DTD file corresponding to the XML file first
(This information can be found in general file headers)
(The DTD constraint file for Web. XML is inside Servlet.jar; struts and hibernate are in their own jar packages)
2,
In the implementation of XML parser, the implementation of DTD is quite troublesome. The trouble lies not in the logic of the DTD, but in how to process the external entity of the DTD, for example, the mutual calls between the DTD files.
For
When writing a configuration file using a framework such as MyBatis,Struts, and so on, the configuration file is an XML file and is validated by the online DTD, if the current system is not networked, And the development tool does not integrate the
The simplest XML in spring is as follows:
But the DTD here uses the network path, if the computer does not have the Internet, then spring read the XML will certainly be problematic, because the network address can not be reached, the solution
The reason is that HTTP://WWW.OPENSYMPHONY.COM/XWORK/XWORK-VALIDATOR-1.0.2.DTD is no longer a DTD constraint file,Open the URL, found that Opensymphony's URL has been migrated away, because xwork things have been incorporated into STRUTS2, become
1. First check your associated DTD or XSD for no errors2. Right-click on "Open with" to see what editor is currently in use, and choose XML Editor; (Spring,hibernate is not prompted for the optional value for this reason)3. For a dtd,eclipse that is
I have put in the latest dom4j-1.6.1, and Spring 1.2.5, and Hibernate 3.0.5, and I am still getting the following message. Any and thing I can do? Thank.
2005-10-13 10:14:04,237 INFO [Org.springframework.beans.factory.support.Default
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.