Questions tagged [xerces2-j]
31 questions
1
vote
0 answers
How to chain an XInclude aware XMLReader to an XMLFilter so that XInclude inclusion is performed on any elements the filter has changed?
In Java XML parsing - merging the output of xi:include the poster wanted to use XInclude but used the wrong namespace on the include element. I thought that an XMLFilter put before the XInclude aware parser, where the XMLFilter takes care of…

Martin Honnen
- 160,499
- 6
- 90
- 110
1
vote
1 answer
Is Xerces-J correct to fail lax validation for an unresolved xsi:type?
I am having a problem validating this SOAP Envelope using this snippet of code (below).
The error that I get is:
org.xml.sax.SAXParseException; cvc-elt.4.2: Cannot resolve 'ipo:UKAddress' to a type definition for element 'shipTo'.
SOAP XSD…

J. Peabody
- 13
- 2
1
vote
2 answers
xslt document function doesn't resolve the xinclude tags in the referenced xml file
I'm looking for a solution to resolve xincludes at documents referenced by the document() function (XSLT).
On my evalutation I tried the xsltproc (doesn't work) and now I stuck on the saxon 6.5.5 in combination with the apache xerces 2.11.0.
This is…

markus0074
- 309
- 1
- 4
- 14
1
vote
1 answer
SAX XML parser - localized error messages
The web-application I am currently working on, validates user-supplied xml files against xsd stored on a server. The problem is that if xml fails validation, error messages should be in Russian. I have my parser working - it gives error messages but…

Russell'sTeapot
- 373
- 2
- 11
- 21
1
vote
1 answer
Xpath use NodeIterator with java
How I use org.w3c.dom.traversal.NodeIterator for iterate Nodes in java using Xpath
I have the follos code but doesn't work.
import org.w3c.dom.traversal.NodeIterator;
NodeIterator products = XPathAPI.selectNodeIterator(document,…

josepmra
- 617
- 9
- 25
1
vote
1 answer
The name "" is not legal for JDOM/XML namespaces
I use JDOM2 to retrieve XML I don't control from remote feeds. For one of them I got this error:
The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
Here is a sample of the XML:

LabOctoCat
- 611
- 7
- 17
0
votes
2 answers
What do Public Identifier, System Identifier, and Base system identifier refer to in XML?
The Xerces2-j XMLInputSource, and also SAX InputSource, refer to public and system identifiers. Xerces2-J XMLInputSource also refers to a base system identifier.
What do these identifiers represent?
Edit: Xerces-J, when give a file location as the…

yas
- 3,520
- 4
- 25
- 38
0
votes
1 answer
Can XSModel object be obtained from a Schema Object?
Using JAXP I can create a Schema object. e.g.
Path schemaPath = ...;
StreamSource source = new StreamSource(schemaPath.toFile());
SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
…

yas
- 3,520
- 4
- 25
- 38
0
votes
1 answer
Xerces-J xsd:base64binary lexical validation question
I've recently upgraded my project from Xerces-J 2.7.0 to Xerces-J 2.12.1 and I'm seeing a change in schema validation behaviour. I'm not entirely clear if my test is wrong or Xerces is.
Given this schema:

David Ritter
- 110
- 9
0
votes
0 answers
How to get XML element that violated a multiple field XSD assert
I have an XSD rule that validates multiple fields, for examle:

tigu
- 731
- 1
- 7
- 20
0
votes
0 answers
Tomcat: how to set an XML attribute in context.xml as null?
I would like to dynamically configure sessionCookieDomain as an environment variable. In my context.xml, I have:
...
given that the environment.sessionCookieDomain is a…

ssgao
- 5,151
- 6
- 36
- 52
0
votes
1 answer
XercesLib fail to parse invalid XMML
I am using XercesLib c++ library to parse html file.
In my case html file may have angle brackets inside tag content.
Now XercesLib fail to parse the content of mo tag, It gives me empty output, if any tag has non escaped…

Pavan Tiwari
- 3,077
- 3
- 31
- 71
0
votes
1 answer
java.lang.AssertionError using xercesImpl of XML Schema 1.1 without namespace
I use Xerces2 Java Parser to validate XML files based on XML Schema 1.1.
I have imported all the jars that come with the binary package of Apache Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) in the maven repository. After some playing around with…

Andreas Panagiotidis
- 2,763
- 35
- 32
0
votes
1 answer
IBM SBT SDK 1.1.0 (Java) and Apache xerces
I am adding IC integration with IBM SBT SDK (Java) into an existing project which still uses xerces 2.4.0 (as of March 2009).
Using IBM SBT SDK 1.0.x did not cause any problems here, but the XML serialization implementation of 1.1.0 completely…

Christian Gosch
- 75
- 10
0
votes
2 answers
compile errors trying to build Apache Xerces in java
I am trying to build Apaches Xerxes 2.11.0 in Java and running into the following compile errors:
[xjavac] c:\Program Files\Java\libraries\xerces-2_11_0\build\src\org\apache\html\dom\HTMLFrameElementImpl.java:28: error: HTMLFrameElementImpl is…

PurpleVermont
- 1,179
- 4
- 18
- 46