  | |  | Xerces | I 'm using xerces4.0.7 to parse(DOM parser) an xml file against a dtd
and then build a DOM tree.
I would like to get the dtd file name included in the xml file. How can
I do that?
many thanks
anthonHi
Is UTF-8 the default encoding for the Document returned by org.apache.xerces.jaxp.DocumentBuilderImpl 's parse?
Thanks
Sudha
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " >
<html >
<head >
<meta http-equiv "Content-Type " content "text/html charset ISO-8859-1 " >
<title > </title >
</head >
<body >
Hello <br >
<br >Hi
I can see that Elements have a setAttribute method. I have a node (Node n)
and would like to set an attribute. Can I just cast the Node into Element
or is there a nicer way?
Stephan
--
Dr Step
Hi
Presently I am working on a project whose aim is to validify an
invalid XML document. For it I need a XML validating parser to which I
call from my Java program giving it the root of the DOM
Hello
I ran into a very strange issue when using the org.w3c.dom.html interfaces
in the release versions of Xerces2 (tried 2.3.0 and 2.4.0). The binaries
of the xmlParserAPIs.jar and xml-apis.jaHi All
I am doing the schema validations on the incoming xml documents and most of the documents contain the DOCTYPE line in the document currently I remove this line from the document before passHello all
I am having a problem when I try to validate XML data against an XSD file.
Previously I was having problems where the parser would not even invoke
the XSD file but I got over those by set
I was trying to validate a simple example on schema from XML Bible but I got
Document is invalid no grammar found
Document roor element "novel " must match DOCTYPE root "null "
My XML file does nHi
I have an XSD defined with multiple includes ie
<xs schema xmlns xs "http //www.w3.org/2001/XMLSchema " >
<xs annotation >
<xs documentation >Version 1.2 </xs documentation >
</xs annotation >
<xsHello
I was wondering if Xerces can convert from one text
encoding to another specified one on the fly. I have
some data that is stored in UTF-8 in a database and I
want to be able to create text Hi
is there any statements on back compatibility of Xerces 1 and 2.
ie code compiled against xerces1 running against xerces2. Is this likely to
work ?
I know there are issues if you use DOMParser buHi all
I tried to use xerces-J 2 in order to validate xml files against a schema and I get the following error
Cannot find the declaration of element ProactiveDescriptor
in my code I have
privateHi
I need to package both Xerces and Xalan with my application. I just
upgraded to from Xerces 1.4.4 to 2.4.0 and noticed that xml-apis.jar is
included. The Xalan version I 'm using is 2.2.D14. MHi
I 'm using Xerces to parse a xml file.
It 's able to read the xml file properly when there are no spaces in the xml
file. But when I put spaces in the xml file it 's throwing the following
exceptionHi
We have an existing application that uses JPOS drivers. These drivers
instantiate a DOMParser to parse the config files.
This code needs xerces.jar (version 1) to run. If I try using the xerces2
j <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " >
<html >
<head >
<meta http-equiv "Content-Type " content "text/html charset ISO-8859-1 " >
<title > </title >
</head >
<body >
Hello <br >
<br >For org.w3c.dom.Document retrieved as follows
---
DOMParser parser new DOMParser()
parser.parse( "test.xml ")
Document document parser.getDocument()
---
from attached file "test.xml " we 'll haGood day everybody.
There is some strange things with xerces when i 'm trying to validate
attached file "test.xml " defined with "test.xsd " (also attached)
I can instanciate org.apache.xerces.parseHello All
I have been able to validate a xml document with a schema. I do have the
handler class and i 'm able to print the error messages and also the line
number where the error has occured. For sIt looks like a bug in the parser.
Changing lines 859 & 865 in Revision 1.86 of
org.apache.xerces.parsers.AbstractDOMParser as shown below should fix the problem.
public void xmlDecl(String version When I try to get the "standalone " attribute value from the DOM after loading
the XML document from a file it *always* returns "false. "
I have a demo XML file containing two lines as
// ###########Hello group
Does anyone had a hard time with the SAX parser performance.
What are the steps needs to do to get good performance from the SAX
parser?
Regards
Ramana.JV.
*****************OK probably the wrong group but maybe someone here can point me in the right direction.
We currently use the SAX parser in Xerces 2.2.0 * but are considering StAX (See JSR 173 - http //www.jcp.org---1278356159-1438408464-1052426321 24863
Content-Type TEXT/PLAIN charset US-ASCII
Greetings...
I 'm parsing XML using a DOM parser and everything works as expected until
whiutespace is added to I 've read the doc and looked through the archive of this list for hints on
how to access PSVI through the DOM interface and while I seem to be very
close to getting it to work I 've hit a brick wall.Hi
I have a DOM document that I already have parsed. Now I would like to
validate it against an XML schema.
Does anyone know how I can procede ? Do you have an code sample for this
operation ?
ThaI 'm trying to follow the instructions in http //xml.apache.org/xerces-j/faq-write.html#faq-11 which say to subclass org.apache.xerces.readers.DefaultReaderFactory. I dowloaded the Xerces-J-bin.2.4.0Hi
I am using Xerces 2.4.0 for parsing XML files and validating the XML
against the schema file. I created an entity resolver class which loads
the XSD file from the local disk and returns it as an
Using JMeter test client to load-test our application
XSDElementTraverser.traverseLocal() throws a NullPointerException. The test
I 'm running simply creates multiple (10) threads sending exactly th |
|
 |