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:

607 questions
759
votes
11 answers

Dealing with "Xerces hell" in Java/Maven?

In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem to indicate that almost all Maven users are "touched" by this problem at some point. …
Justin Garrick
  • 14,057
  • 6
  • 39
  • 65
37
votes
8 answers

Validate an XML File Against Multiple Schema Definitions

I'm trying to validate an XML file against a number of different schemas (apologies for the contrived example): a.xsd b.xsd c.xsd c.xsd in particular imports b.xsd and b.xsd imports a.xsd, using: I'm trying…
Jon
  • 55,763
  • 30
  • 120
  • 149
26
votes
2 answers

Xerces error: org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl

I'm developing a web application using JSF 2.0, NetBeans 6.9.1, GlassFish Server 3.1, mojarra 2.0.3, and JasperReports 3.7.6. Included in my project library is the jar file "xerces-2.8.0.jar". This file was imported as part of the JasperReports jar…
Sean
  • 929
  • 4
  • 11
  • 20
25
votes
2 answers

Cure for 'The string "--" is not permitted within comments.' exception?

I'm using Java 6. I have this dependency in my pom ... xerces xercesImpl 2.10.0
Dave
  • 17,420
  • 96
  • 300
  • 582
13
votes
4 answers

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

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:…
Mac
  • 933
  • 5
  • 19
  • 42
11
votes
3 answers

cmake cannot find libraries installed with vcpkg

I want to use vcpkg in a CMake project in Windows, because I need boost and xerces that are both handled by this package manager. I've the following CMakeLists.txt: cmake_minimum_required (VERSION 3.12.0) project (myproj) set (CMAKE_PREFIX_PATH…
Jepessen
  • 9,377
  • 11
  • 64
  • 111
11
votes
2 answers

Can't call getElementsByTagName on a node in Xerces or Neko?

hi all I'm trying to parse a DOM tree using Neko/Xerces in Java. NodeList divs = this.doc.getElementsByTagName("DIV"); for(int i=0; i < divs.getLength(); i++) { NodeList images = divs.item(i).parentNode().getElementsByTagName("IMG"); //…
James
  • 13,765
  • 22
  • 80
  • 116
11
votes
4 answers

XercesImpl in conflict with JavaSE 6's internal xerces implementation. Both are needed... what can be done?

I am sure that I am not the first to encounter this conflict. The code that I have inherited does the following: org.w3c.dom.Document dom; // declaration javax.xml.validation.Schema schema; // declaration ... ... ... javax.xml.validation.Validator…
Yaneeve
  • 4,649
  • 8
  • 46
  • 83
11
votes
1 answer

How can I force a SAX parser to use a DTD if one is not specified in the input file?

How can I force a SAX parser (specifically, Xerces in Java) to use a DTD when parsing a document without having any doctype in the input document? Is this even possible? Here are some more details of my scenario: We have a bunch of XML documents…
Kaypro II
  • 2,694
  • 6
  • 26
  • 37
11
votes
2 answers

Apache Hadoop setXIncludeAware UnsupportedOperationException

I'm trying to get Apache Hadoop 1.21 running, but I'm getting this exception: Failed to set setXIncludeAware(true) for parser…
Klinki
  • 1,269
  • 2
  • 14
  • 31
10
votes
7 answers

ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

I am developing a GWT application in Eclipse and use jdom2 to read some custom xml property files. Following a recent update my application now fails with the above error when trying to read the xml file. The relevant stack trace…
ejoftheweb
  • 153
  • 1
  • 1
  • 10
9
votes
2 answers

Serialize DOM to FileOutputStream using Xerces

I am using this link to generate XML file using DOM. It says that "Xerces parser is bundled with the JDK 1.5 distribution.So you need not download the parser separately." However, when I write the following line in my Eclipse Helios it gives…
whitehat
  • 2,249
  • 8
  • 31
  • 45
9
votes
3 answers

XML validation against XSD 1.1 with Xerces in Java

I have installed Xerces through Maven: junit junit 4.11 test
Vogon Jeltz
  • 255
  • 1
  • 3
  • 7
9
votes
1 answer

The import org.apache.xml.serialize.XMLSerializer cannot be resolved

When I try to import org.apache.xml.serialize.XMLSerializer, I got the below error msg: The import org.apache.xml.serialize.XMLSerializer cannot be resolved Can anyone tell me the cause? Thanks!!
zoe
  • 797
  • 4
  • 9
  • 16
9
votes
3 answers

XPath support in Xerces-C

I am supporting a legacy C++ application which uses Xerces-C for XML parsing. I've been spoiled by .Net and am used to using XPath to select nodes from a DOM tree. Is there any way to get access some limited XPath functionality in Xerces-C? I'm…
Adam Tegen
  • 23,348
  • 32
  • 115
  • 149
1
2 3
40 41