Questions tagged [xerces]

Xerces is a collection of software libraries for parsing, validating, serializing and manipulating XML

Xerces is Apache's collection of software libraries for parsing, validating, serializing and manipulating XML.
The library implements a number of standard APIs for XML parsing, including DOM, SAX and SAX2.
The implementation is available in Java, C++ and Perl programming languages.

Useful references:

639 questions
7
votes
3 answers

why org.apache.xerces.parsers.SAXParser does not skip BOM in utf8 encoded xml?

I have an xml with utf8 encoding. And this file contains BOM a beginning of the file. So during parsing I am facing with org.xml.sax.SAXParseException: Content is not allowed in prolog. I can not remove those 3 bytes from the files. I can not load…
denys
  • 2,437
  • 6
  • 31
  • 55
7
votes
0 answers

Dealing with "Xerces hell" with tomcat

We have mutliple java web applications that are hosted with tomcat. Some of the applications include xercesImpl jars and others do not include xercesImpl.jar. For the sake of simplicity, let say we have only two applications : xxx.war -> uses…
baraber
  • 3,296
  • 27
  • 46
7
votes
2 answers

libxml2 from java

This question is somewhat related to Fastest XML parser for small, simple documents in Java but with a few more specifics. I'm working on an application which needs to parse many (10s of millions), small (approx. 300k) xml documents. The current…
andersonbd1
  • 5,266
  • 14
  • 44
  • 62
7
votes
3 answers

VS 2015 Cannot open compiler generated file: '': Invalid argument

During the build of xerces 3.1.2 I get: 1>XML256TableTranscoder.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument The compiler does not appear to be working on the .cpp file itself before the error occurs as I can…
Bruce
  • 2,230
  • 18
  • 34
7
votes
5 answers

Xerces C++ - Load, read and save, alternatives?

I'm searching for a tutorial to load a XML file, read it, change it and finally save it with C++. I'm using Linux Ubuntu and tried to use Xerces. With Google and much time, I could only load an XML File: #include…
user163408
7
votes
1 answer

XIncludeAwareParserConfiguration incompatible with XMLParserConfiguration

I get this error when deploying the ear file on to WLS 10.3 on AIX platform. The same ear works fine on Windows/Linux platforms. Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration incompatible with…
user217772
7
votes
1 answer

XSD Validation Error : cos-all-limited.1.2: An 'all' model group must appear in a particle with

I have and XSD which gives the following error during the schema generation. org.xml.sax.SAXParseException; systemId: file:/D:/Basil/Projects/myproducts.xsd; lineNumber: 577; columnNumber: 50; cos-all-limited.1.2: An 'all' model group must…
basiljames
  • 4,777
  • 4
  • 24
  • 41
6
votes
1 answer

Change the com.sun.org.apache.xml.internal.serialize.XMLSerializer & com.sun.org.apache.xml.internal.serialize.OutputFormat

Using com.sun.org.apache.xml.internal.serialize.XMLSerializer and com.sun.org.apache.xml.internal.serialize.OutputFormat causes some errors when compiling using java 1.6. The solution I found is by using org.apache.xml.serialize.XMLSerializer and…
Marouane Gazanayi
  • 5,063
  • 6
  • 39
  • 58
6
votes
3 answers

I have UTF-8 - but still get "Invalid byte 1 of 1-byte UTF-8 sequence"

I create a XML String on the fly (NOT reading from a file). Then I use Cocoon 3 to transform it via FOP to a PDF. Somewhere in the middle Xerces runs. When I use the hardcoded stuff everything works. As soon as I put a german Umlaut into the…
Christian
  • 7,062
  • 5
  • 36
  • 39
6
votes
2 answers

No more xercesxmldom unit in Delphi XE?

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…
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
6
votes
2 answers

xi:include in xml file within jar file does not work in WildFly

Here's the scenario: I bundled several .xml (somewhat of a configuration) files needed for my application to run in an .jar file. The jar file has the following structure: settings-1.0.0.jar ˪ resources/ ˪ 1.xml ˪ 2.xml ˪ 3.xml ˪ META-INF/ ˪…
Robert Heine
  • 1,820
  • 4
  • 29
  • 61
6
votes
2 answers

Can't build app when I import Xerces library (exit value 1)

I cannot seem to get my app to build when I import in the Xerces library. I am already using the multidex due to previous issues and therefore I know this is all setup properly. I have spend a couple of days now looking online and trying all sorts…
SingleWave Games
  • 2,618
  • 9
  • 36
  • 52
6
votes
4 answers

xerces serialization in Java 6

In Java 6, the entire xerces XML parser/serializer implementation is now in the Java runtime (rt.jar). The packages have been moved under the com.sun.* namespace, which places them off-limits for explicit reference within client code. This is not…
Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
6
votes
3 answers

Java xerces DocumentBuilderFactoryimpl not found - What to do?

I get this message : javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImp but i can't seem to solve the problem. I have googled, but can't find any good solutions. Does anyone have an idea of…
Ikky
  • 2,826
  • 14
  • 47
  • 68
6
votes
1 answer

ElementNSImpl to String

I have a client that calls a web-service and I'm getting back an ElementNSImpl object. Would it be possible to transform this object to String? For a org.w3c.dom.Document object I've used such code: protected static String documentToString(final…
Sergiu
  • 2,502
  • 6
  • 35
  • 57
1 2
3
42 43