xerces

SAXParseException; src-resolve: Cannot resolve the name '…' to a(n) 'type definition' component

天涯浪子 提交于 2019-12-04 02:54:07
问题 I'm trying to do schema validation, currently using a javax.xml.validation.SchemaFactory . Unfortunately When I call the newSchema(Source schema) function, I get the following error: Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/C42056/Documents/workspace-sts-3.2.0.RELEASE/cec-sample-ws-integration-2-war/target/classes/WEB-INF/schemas/xsd/individual/PrivateComponentTypes_4_0.xsd; lineNumber: 33; columnNumber: 88; src-resolve: Cannot resolve the name 'utility

Struts2 & Tiles: When apache.org is down my webapp fails to start

匆匆过客 提交于 2019-12-03 17:23:42
I am building a Struts2 web application which uses tiles however I have discovered a quite frustrating problem where if apache.org is down (which seems to happen quite regularly) the web application fails to start. This is because in its standard setup the StrutsTilesListener tries to load the tiles defenitions file which includes a DOCTYPE with a public-id which points to a DTD located on tiles.apache.org. When the application starts up the definition file is loaded using Apache Xerces via Apache Commons Digester which tries to load the DTD from tiles.apache.org but if apache.org is down then

Exception in two line Xerces program

不想你离开。 提交于 2019-12-02 21:37:13
问题 The following code gives me an exception on the XMLFormatTarget line, but if I change the string from "C:/test.xml" to "test.xml" it works fine. // test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <xercesc/util/XMLString.hpp> #include <xercesc/framework/LocalFileFormatTarget.hpp> using namespace xercesc; int main() { XMLPlatformUtils::Initialize(); XMLFormatTarget *formatTarget = new LocalFileFormatTarget("C:/test.xml");

Load my own Xalan implementation where an older Xalan is loaded to the parent classloader

元气小坏坏 提交于 2019-12-02 10:11:32
I'm writing a plugin for a framework that loads my code as a child classloader The problem is that that framework uses a certain Xerces version, that is not compatible with my code, I want to use my "own" jar for xerces, but it seems since the old one was already loaded, I can't seem to make my code use mine. I'm looking for some classloader seperation, I know it's a know problem, but can't seem to solve it Is there any framework, library, or code sample to user locally a newer jar in such a scenario? Have you tried loading the classes of your framework and Xerces libs as a part of the

Exception in two line Xerces program

喜夏-厌秋 提交于 2019-12-02 07:40:37
The following code gives me an exception on the XMLFormatTarget line, but if I change the string from "C:/test.xml" to "test.xml" it works fine. // test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <xercesc/util/XMLString.hpp> #include <xercesc/framework/LocalFileFormatTarget.hpp> using namespace xercesc; int main() { XMLPlatformUtils::Initialize(); XMLFormatTarget *formatTarget = new LocalFileFormatTarget("C:/test.xml"); return 0; } [edit] Xerces exception is: Error Message: unable to open file 'C:\test.xml' Windows exception

No more xercesxmldom unit in Delphi XE?

一世执手 提交于 2019-12-01 17:08:28
I'm wondering what happened to the xercesxmldom unit as one of the XML DOM implementations . It seems to have disappeared in Delphi XE . Why? (I searched the docs; couldn't find any relevant info on xercesxmldom disappearing). Edit : these are the sources I have archived: R:\>dir /s /b xercesxmldom.pas R:\D2006-Enterprise-D10-BDS-4.0\source\Win32\xml\xercesxmldom.pas R:\D2007-Enterprise-D11-RadStudio-5.0\source\Win32\xml\xercesxmldom.pas R:\D2009-Enterprise-D12-RadStudio-6.0\source\Win32\xml\xercesxmldom.pas R:\D2010-Enterprise-D14-RadStudio-7.0\source\Win32\xml\xercesxmldom.pas R:\D7.01

No more xercesxmldom unit in Delphi XE?

≡放荡痞女 提交于 2019-12-01 16:57:39
问题 I'm wondering what happened to the xercesxmldom unit as one of the XML DOM implementations. It seems to have disappeared in Delphi XE. Why? (I searched the docs; couldn't find any relevant info on xercesxmldom disappearing). Edit : these are the sources I have archived: R:\>dir /s /b xercesxmldom.pas R:\D2006-Enterprise-D10-BDS-4.0\source\Win32\xml\xercesxmldom.pas R:\D2007-Enterprise-D11-RadStudio-5.0\source\Win32\xml\xercesxmldom.pas R:\D2009-Enterprise-D12-RadStudio-6.0\source\Win32\xml

SAXParseException; src-resolve: Cannot resolve the name '…' to a(n) 'type definition' component

本小妞迷上赌 提交于 2019-12-01 15:20:10
I'm trying to do schema validation, currently using a javax.xml.validation.SchemaFactory . Unfortunately When I call the newSchema(Source schema) function, I get the following error: Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/C42056/Documents/workspace-sts-3.2.0.RELEASE/cec-sample-ws-integration-2-war/target/classes/WEB-INF/schemas/xsd/individual/PrivateComponentTypes_4_0.xsd; lineNumber: 33; columnNumber: 88; src-resolve: Cannot resolve the name 'utility:ObjectStatusDateType' to a(n) 'type definition' component. at org.apache.xerces.util.ErrorHandlerWrapper

Xerces DOM parser incredibly slow?

≡放荡痞女 提交于 2019-12-01 09:04:34
Currently, I am trying to clean up an HTML file using JTidy, convert it to XHTML and provide the results to a DOM parser. The following code is the result of these efforts: public class HeaderBasedNewsProvider implements INewsProvider { /* ... */ public Collection<INewsEntry> getNewsEntries() throws NewsUnavailableException { Document document; try { document = getCleanedDocument(); } catch (Exception e) { throw new NewsUnavailableException(e); } System.err.println(document.getDocumentElement().getTextContent()); return null; } private final Document getCleanedDocument() throws IOException,

Xerces DOM parser incredibly slow?

南楼画角 提交于 2019-12-01 06:23:48
问题 Currently, I am trying to clean up an HTML file using JTidy, convert it to XHTML and provide the results to a DOM parser. The following code is the result of these efforts: public class HeaderBasedNewsProvider implements INewsProvider { /* ... */ public Collection<INewsEntry> getNewsEntries() throws NewsUnavailableException { Document document; try { document = getCleanedDocument(); } catch (Exception e) { throw new NewsUnavailableException(e); } System.err.println(document.getDocumentElement