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:
<xs:include schemaLocation="b.xsd"/>
I'm trying to do this via Xerces in the following manner:
XMLSchemaFactory xmlSchemaFactory = new...
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 looking for something like selectNodes("/for/bar/baz"). I could do this manually, but XPat...
Hello, I am new to this site so I apologize in advance.
I am trying to modify an XML document using Xerces C 2.8. I'm somewhat familiar with Xercess though not proficient with it. What I am trying to do is:
1. make a function that will take a search node string and an insert node string,
2. parse a document and gather all searchnode ...
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 that would parse an xml document via SAX2 in ruby.
TIA.
...
Is there a simple example somewhere of using Xerces XNI? I'm looking at the sample code and can't make heads or tails of what it's doing, and don't want to just cut & paste into my application. For example, I can't figure out how to create an instance of org.apache.xerces.xni.parser.XMLDocumentSource.
...
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 like to be able to reuse the parsed DOM for read. Does anyone know of another parser or ...
My application expects that it will sometimes try to parse invalid XML documents. I currently catch the "SAXParseException: Content is not allowed in prolog." exception, which works fine. However, Xerces still feels the need to print it's own message to the console:
[Fatal Error] :1:1: Content is not allowed in prolog.
Is there any wa...
Hello! :-)
I'm trying to convert a DocBook XML - File via XSLT to HTML. The XML - File contains an image and this is were i get the following error.
build-html:
[xslt] Transforming into C:\dev\DocBook\DocBookmitXML\output
[xslt] Processing C:\dev\DocBook\DocBookmitXML\src\BurndownChart.jpg to C:\dev\DocBook\DocBookmitXML\outp...
At work, we have just migrated an old web-app from struts 1.1 to 1.2.9 (hopefully first steps to moving to 1.3), but we are now having problems with the commons digester. Struts 1.2.9 uses commons-digester 1.6.
When we try to parse one of our XML files we get the exception:
org.xml.sax.SAXParseException: Attribute "" bound to namespace...
I have a small app running in JBoss that uses web services and every time they are called, it parses the WSDL and tries to fetch from xmlsoap.org [1] in order to validate it (the WSDL).
Is there a way to avoid this validations? The problem is that:
It's slowing down the system and
Many times xmlsoap.org [1] doesn't return correctly (r...
How to parse non well-formed HTML in android ?
I tried to use XOM and TagSoup, but i get the following error when creating the Builder:
11-26 20:42:39.294: ERROR/dalvikvm(1298): Could not find method org.apache.xerces.impl.Version.getVersion, referenced from method nu.xom.Builder.
Must i install Xerces to use XOM or can i use tagsoup ...
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 org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.DOM...
I do not know where the problem is... Help and Thanks!
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8192
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:543)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
at com.sun.org.apache.xerces....
I am using Apache Xerces 3.0.1 XInclude. I want to use the xinclude mechanism to include XML files. I have three XML files all in the same directory. test_a.xml xincludes test_b.xml which xincludes test_c.xml. When I just have test_a.xml xinclude test_b.xml, it works. However, when I have test_b.xml xinclude test_c.xml I get the followin...
Hi, so I am having pretty much exactly the same problem as what someone else has described here:
birt-exchange.
I have integrated BIRT with my existing web application that requires the xerces jar (mine is version 2.5) and the following exception is thrown when I attempt to view the report:
java.lang.NullPointerException
at org.ecl...
I am planning to port my application from Windows to Linux, currently my application uses MSXML for XML parsing. I have decided to use Xerces XML parser to provide a cross platform solution. My code size is too big and I do not want to touch all the internal part of the code for this porting purpose as it might break some of the function...
i have an xml file named LOD.xml and in this file there is a list of models.
i want to add another DomElement to this file. i dont want to parse all the list again. i just want to parse file and get DomDocument and RootDomElement.
after appending my new DomElement to the RootDomElement, i want to write DomDocument to this file back aga...
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 what could be wrong?
And maybe how to solve it :)
...
I have a very annoying problem:
My project (JSP, Servlet) requires Xerces-J 2.8.1 or higher. But on our server (Tomcat 5.5) xerces 2.6.2 always comes up first and that results in a severe error.
I checked $CLASSPATH and did some clean-ups. However, xerces 2.6.2 is still there. Could anyone tell me how to know where this xerces 2.6.2 is...
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 <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc...