spring xercesImpl xml ½âÎöÎÊÌâ
ÎÊÌâÃèÊö£º
jbossÓ¦Ó÷þÎñÆ÷£¬Ê¹ÓÃspring
ÎÞ·¨Æô¶¯·þÎñ£¬´íÎóÈÕÖ¾£º
[org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@155d3a3] does not
support XML Schema. Are you running on Java 1.4 or below with Apache
Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
ÎÊÌâ½â¾ö£º
1.È·¶¨jdk°æ±¾ÎÊÌ⣬Ӧ¸ÃÊÇjdk1.5£»
2.È·ÈÏÒÀÀµ°üÖÐµÄ xercesImpl.jar ºÍ xml-apis.jar °æ±¾ÊÇ·ñÒ»Ö£¬¿ÉÒÔÏÂÔØа汾²âÊÔ¡£
ÎÊÌâÔÒò£º
Ó¦ÓõÄWEB-INF\libÖÐ xercesImpl.jar ºÍ xml-apis.jarûÓÐÎÊÌ⣻
µ«ÊÇ£¬jbossµÄlibÖÐ ´æÔÚµÄ xercesImpl.jar ºÍ xml-apis.jarÁ½¸ö°æ±¾²»Ò»Ö£¬Ì滻ΪһÖµİ汾£»
jbossµÄlibÖдæÔÚ ¾É°æµÄ xerces.jar °ü£¬¿ÉÄÜÔì³É³åÍ»£¬´ò¿ªxercesImpl.jar£¬·¢ÏÖ xercesImplÒѾ°üº¬ÁË xerces.jarµÄÄÚÈÝ£¬É¾³ýxerces.jar¡£
Õý³£Æô¶¯·þÎñ¡£
ÒÔÏÂÊÇתÔØÓÐ¹Ø xml½âÎöµÄ֪ʶ£º
Unable to validate using XSD異³£µÄ½â決
[org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@155d3a3] does not
support XML Schema. Are you running on Java 1.4 or below with Apache
Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
這
個問題ÊÇÔÚ½âÎöxml時³ö現µÄ問題,ºÜÃ÷顯,ÊÇparser²»Ö§³Öschema,Ö»Ö§³ÖµÍ°æ±¾µÄdtd,兩種¿ÉÄÜÐÔ,Ò»種ÄãʹÓõÄÊÇÖ»Ö§³Ödtd½âÎöµÄ
parser,ÁíÒ»種¾ÍÊÇ,ÄãµÄ類·徑Öаüº¬Á˲»Í¬°æ±¾µÄxml-api»òparser,±ÈÈç:ÄãʹÓõÄÊÇj2ee1.4µÄxml-api,¶øÓÖÔÚ類·徑
ÖмÓÈëÁËxerces.jar
¾ß體µÄÇé況¿ÉÄܲ»Í¬,Äã·ÖÎöÒ»ÏÂ×Ô¼ºÒýÈëµÄjar
ÓÉxercesImpl.jarÒý³öµÄÎÊÌâ
ÔÚÏîÄ¿½øÐÐÖУ¬ÓÉÓÚʹÓÃJDK1.4£¬ÔÚ½âÎöxml¹ý³ÌÖУ¬Å×ÁËÒ»¸öxmlµÄ½âÎö
Òì³££¬ÔÚÍøÂçËÑË÷Ö®ºó£¬·¢ÏÖÎÊÌâµÄÊÇȱÉÙxerces.jarËùÖ£¬ÓÉÓÚÔÚJDK1.4ÖÐûÓм¯³Éxerces.jar£¬ËùÒÔÐèÒªÔÚʹÓõÄlibÖмÓÈë¸Ã
jar£¬µ«ÊÇÔÚJDK1.5ÖÐÒѾ¼¯³ÉÁËxercesÀàËƵĽâÎöÆ÷¡£
1 xerces.jarµÄÎÊÌâÓÉÀ´£º
1.1 XML DTD(
Document Type Definition)ºÍXSD£¨W3C XML Schema Definition£©¶¼ÊôÓÚÃèÊöºÍ¹æ·¶XMLÎĵµ½á¹¹¡¢Ô¼ÊøµÄXMLģʽÓï·¨ÓïÑÔ¡£
1.2
XML DTD(XMLµÄÎĵ
Ïà¹ØÎĵµ£º
Ä¿Ç°ÔÚʹÓÃDOMºÍdom4j¶ÔXMLÎļþ½øÐÐÔöɾ¸Ä²é£¬Èç¹ûÎÒÔÚͬһ¸öÏß³ÌÖÐ×ö¶à´ÎÔöɾ¸Ä²Ù×÷£¬ÈçºÎ±£Ö¤DOMÄÚ´æͬ²½ºÍÎïÀíÎļþͬ²½£¿ÓÖÈçºÎÇåÀíÔÚÄÚ´æÖÐÒѼÓÔصÄÊý¾Ý£¿
ÎÊÌâ²¹³ä£º
Äã˵µÄÕâÖÖ¾ÍÊǺܵ¥´¿µÄÔÚÒ»¸öÏß³ÌÖÐÖ´ÐÐËùÓеIJÙ×÷£¬Èç¹ûÎÒÊÇÔÚµ¥Ïß³ÌÖвÙ×÷£¬Ã¿×öÒ»´ÎÔöɾ¸Ä²éµÄÒ»ÖÖ£¬ÎÒ¶¼Òª±£´æµ½ÎļþÖÐÈ¥£¬È磺
µÚÒ»´Î£ºÔö¼ ......
package book.xml;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.Default ......
Ò»£®MsXml´´½¨XMLÎĵµÊ¾Àý
// XmlCreationDemo.cpp
#include <stdlib.h>
#include <stdio.h>
// ÒýÈëMSXML½âÎöÆ÷
#import <msxml4.dll>
using namespace MSXML2;
class InitializeCom
{
public:
InitializeCom() { CoInitialize(NULL); // Initializes the COM library }
~Initializ ......
xml
<mime>
<content>
<type>text/plain</type>
<big>357</big>
<text>D:\\cybercourttext2009101410241364.txt</text>
</content>
<content>
<type>text/plain</type>
<big>357</big>
<text>D:\\cybercourttext2009 ......
ÔÚC++ÖУ¬¿âµÄµØλÊǷdz£¸ßµÄ¡£C++Ö®¸¸ Bjarne StroustrupÏÈÉú¶à´Î±íʾÁËÉè¼Æ¿âÀ´À©³ä¹¦ÄÜÒªºÃ¹ýÉè¼Æ¸ü¶àµÄÓï·¨µÄÑÔÂÛ¡£ÏÖʵÖУ¬C++µÄ¿âÃÅÀà·±¶à£¬½â¾öµÄÎÊÌâÒ²ÊǼ«Æä¹ã·º£¬¿â´ÓÇáÁ¿¼¶µ½ÖØÁ¿¼¶µÄ¶¼ÓС£²»ÉÙ¶¼ÊÇÈÃÈËÑÛ½ç´ó¿ª£¬Òà»òÊÇÍû¶øÉú̾µÄ˼ά½Ü×÷¡£ÓÉÓÚ¿âµÄÊýÁ¿·Ç³£ÅӴ󣬶øÇÒÏÞÓÚ±ÊÕßˮƽ£¬ÆäÖкܶಢ²»Á˽⡣ËùÒÔÎÄÖ ......