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
6
votes
6 answers

Do I need to close Input Stream manually?

I'm using Xerces library for parsing XML. Here is the code snippet for parsing: Document doc = builder.parse(new InputSource(new StringReader(someXMLString))); Do I need to close the InputStream in InputSource manually or will the parse method…
superM
  • 8,605
  • 8
  • 42
  • 51
6
votes
3 answers

XML Parser for Ruby

Looking for something similar to xerces for parsing an xml file in ruby. I saw the native processor REXML and another called hpricot (though I can't find any documentation on hpricot, the links all appear to be dead). I'm looking for something…
jmq
  • 10,110
  • 16
  • 58
  • 71
5
votes
2 answers

How can I parse XML that confirms to the 1.1 spec using Java and Xerces?

I'm trying to parse a String which contains XML content which conforms to the XML 1.1 spec. The XML contains character references which are not allowed in the XML 1.0 spec but which are allowed in the XML 1.1 spec (character references which…
Jim Hurne
  • 7,187
  • 4
  • 44
  • 44
5
votes
4 answers

How to avoid O(n^2) complexity when grouping records in XSLT?

I'm frequently running into performance issues when I XSL transform large amounts of data into HTML. This data is usually just a couple of very large tables of roughly this form: 1 abc …
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
5
votes
0 answers

Crash in xerces while validating XML

My application is crashing sometimes when I am trying to validate XML using Xerces-c. Here is the stack trace : #0 0x000000000064ead0 in xercesc_3_2::XMLMutex::lock() () #1 0x000000000064eb32 in…
Bhawan
  • 2,441
  • 3
  • 22
  • 47
5
votes
1 answer

Failed to execute goal org.apache.rat:apache-rat-plugin:0.10:check (check) on project maven: Too many files with unapproved license: 2 See RAT report

I am trying to compile some of the maven reversions project. Unfortunately, I am getting error: Failed to execute goal org.apache.rat:apache-rat-plugin:0.10:check (check) on project maven: Too many files with unapproved license: 2 See RAT report…
HuA
  • 105
  • 2
  • 8
5
votes
2 answers

SAXNotRecognizedException While Unmarshalling XML Input Stream

I'm running into this exception while trying to unmarshall an input stream of XML data. This is apparently a problem with the Xerces library, but I'm having a hard time figuring out a solution to this. I'm running a Java EE program with…
gdawgrancid
  • 640
  • 3
  • 15
  • 37
5
votes
1 answer

No solution to validate XML against XSD in Android

I am trying to validate a XML file against XSD on Android devices. I googled a lot and found some solution like xerces-for-android. In the Stack overflow I found some page like this, which suggests to avoid javax.xml. validation and use Xerces for…
Sohrab
  • 1,348
  • 4
  • 13
  • 33
5
votes
2 answers

Problem with NetBeans Web Service Client when xercesImpl.jar is on classpath

I am unable to create a Web Service Client in my NetBeans Web Application when xercesImpl.jar is included as a library. Using NetBeans 6.9 and GlassFish 3.0.1: 1.) Create new Web Application 2.) Create a new Web Service 3.) Add a new operation to…
Catchwa
  • 5,845
  • 4
  • 31
  • 57
5
votes
1 answer

How can I parse XML doc with Schema 1.1, in Eclipse IDE?

How can I validate XML documents with Schema 1.1 in "Eclipse IDE" OR How can I validate an XML docs in "Eclipse IDE" by using external Apache xerces parser? (this will resolve my issue as xerces supports Schema 1.1)
WSK
  • 5,949
  • 8
  • 49
  • 74
5
votes
0 answers

org.w3c.dom.ls.LSSerialize - setting text wrapping, indentation size

I am using the following code to indent an xml document which is provided to me as a string. I am using the JDK implementation of org.w3c.dom.ls, if that matters. http://docs.oracle.com/javase/7/docs/api/org/w3c/dom/ls/package-summary.html public…
rapt
  • 11,810
  • 35
  • 103
  • 145
5
votes
1 answer

Missing JAXP 1.5 support in Xerces - possible workarounds?

I have run into some problems with the Xerces library, which is used by a third party lib that I rely on. Xerces does not support JAXP 1.5, yet, which is contained in recent releases of JDK 1.7 and JDK 8. This leads to some problems, if Xerces is…
marw
  • 403
  • 2
  • 8
  • 17
5
votes
1 answer

XML Validation in ant failing with errors that don't match the files being validated

Thanks in advance for any help... I am having a problem with XML files that are failing validation against a DTD (via the ant xmlvalidate task), but the reported errors in the XML doc do not match the contents of the document being validated.…
Dawn
  • 93
  • 7
5
votes
2 answers

Creating a DOM that is thread safe for read operations

My application composes a webpage model from a number of xml sources. These sources are being parsed into memory as DOM objects with the normal Xerces parser. Unfortunately, Xerces DOM objects are not thread safe for read-only operations. I would…
Seth Weiner
  • 2,999
  • 5
  • 26
  • 14
4
votes
2 answers

How avoid dependencies when using Xerces?

I'm trying to integrate xerces 3.1.1 with my program, but it requires libcurl for linux and libicui18n, libicuuc, libicudata, libm for Mac OS X and Solaris. Are there some flags which can be passed to configure to avoid all this dependencies?
Mihran Hovsepyan
  • 10,810
  • 14
  • 61
  • 111