Hi Etienne,
Turned out not to be the hardest bug to squash, but it certainly was a bug.
It's fixed in CVS now. Thanks for sending me such a concise test case!
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 416-448-3519, T/L 778-3519
E-mail: [EMAIL PROTECTED]
Etienne
Elena Litani wrote:
>
> Hi, Christian,
> >
> > Sorry to repost this, but this is really keeping me stuck...anybody has an
> > idea what I am doing wrong or is this actually in face a bug of the
> > BuilderFactory?
>
> It might be a bug.. I am not sure if features are set correctly in
> DocumentBu
Hi, I'm new to xerces and I would like if some one
could tell me where to find some easy to understand
examples on how to validate, report errors, and parse
a XML document using the DOM parser.
for example on how to parse this
- XSD File -
http://www.test.com";
xm
The web server is Netscape iPlanet 4.1. The xerces.jar file is in the
classpath. If I run the servlet without the setFeature() statement for
validation, the servlet works great. So the JAR file is being found.
But if I try to turn validation on, the exception is thrown. From the
error messag
Ok, here you are
You'll find in the zip file two schemas and an instance.
I put all my annotation inside the files, as the errors are a bit weird...
Here is a dump of the error messages:
D:\Xerces CVS>java sax.SAXCount -v -f instance.xml
[Error] instance.xml:4:62: Schema error: prefix : [m
Hi, Christian,
>
> Sorry to repost this, but this is really keeping me stuck...anybody has an
> idea what I am doing wrong or is this actually in face a bug of the
> BuilderFactory?
It might be a bug.. I am not sure if features are set correctly in
DocumentBuilder for the parser. To validate sc
Hello. I've inherited some code which does an SAX
parse. In startElement(String, String, String,
Attributes attrs) there is the following call:
attrs.getRawName(4);
I can't find this method anywhere in the Attributes
interface. Trying to figure out how this code
compiles (which it does) is dri
Hi, Schawn,
> Can you indicate to the parser what schemas to use, and if so how?
Currently it is a requirement to use schemaLocation or
noNamespaceLocation.
However, we are working on providing a feature that would allow users to
set schemas before parse() is called. Hopefully, we will be able t
Hi John,
What webserver u r using for the servlet... probably u need to configure
this jar file in ur webserver. If suppose u r using apache, u need to give
the classpath of this jar file in the jserv.properties file in the
jserv(home)/conf directory.
-Original Message-
From: [EMA
I am trying to use the xerces 1.4 XML parser in a servlet. When setting
the validation feature, the parser throws an error. I believe that the
error is caused since the parser cannot read it's JAR file with the
resources that it needs. Can someone tell me how to allow this?
I am using iPlanet
Hi Etienne. Well given that you know your huge schemas a lot better than I
do, it would probably be much easier for you to whittle the problem down to
a manageable test case than it would be for me... so if you wouldn't mind
trying to put together a small test case that would be much appreciated!
Hi Neil,
Thanks for your help.
I'm afraid I'm experiencing the problem w/ the CVS version I grabbed 3
hours ago, after Lisa fixed another bug that was, well, buging me ;-)
As for the test case, I can give you the schema I'm workig on (14 files or
so) or I can try and write a small one, based on t
Hi Etienne,
Are you using Xerces 1.4.0 or a version from CVS? This sounds like a
problem that I fixed a couple of weeks ago.
If you are experiencing this problem with the CVS codebase though, please
send a test case along.
Thanks,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:
Hi all,
AFAIK, I am allowed to declare 2 attributes with the same name provided
they're not in the same scope.
So the following snippet is valid:
and XercesJ is Ok validating that but
when that schema is imported in another schema, that raises isues like:
S
Title: Which schema is SAX using for validation?
By
this do you mean that the October 2000 version of schema is supported by the
java xerces SAX parser?
Thanks.
-Original Message-From: Tung Mansfield
[mailto:[EMAIL PROTECTED]Sent: Monday, June 18, 2001
10:03 AMTo: '[EMAIL PROT
It seems to me then that if you intend on supporting both APIs you'll have
to have the duplicate code at least until the point where both APIs can be
merged on a common interface.
In other words, since SAX1 and SAX2 changed their class names in the
interfaces, and didn't provide a means for transl
Using Ver 1.4 of the Xerces parse it is not clear to me of how to
indicate the schema(s) to use while
parsing and validating. Since the schemaLocation is not required in an
instance document, how can
the DOMParser or SAXParser be set up to set these schemas ahead of
time. There is no, problem
of
Hi,
Is it possible with schemas to validate values depending on the value of the
attribute.
E.g.5
#00
now I want my schema to ensure that the value in the param with attribute
key "height" will be an integer and with attribute key "color" will be a Hex
String...
Thanks
Christi
-Original Message-
From: Seifert, Christian
Sent: Monday, June 18, 2001 1:43 PM
To: [EMAIL PROTECTED]
Subject:xml validation using xml schemas
Hi,
I am having problems validating a xml file using xml schemas.
The way I go about it is using the DocumentBuilder. I obt
Sorry to repost this, but this is really keeping me stuck...anybody has an
idea what I am doing wrong or is this actually in face a bug of the
BuilderFactory?
Thanks
Christian
-Original Message-
From: Seifert, Christian
Sent: Monday, June 18, 2001 1:43 PM
To: [EMAIL PROTECTED]
Brion,
The only problem with that approach is that while I'm
currently only testing with xerces and sun I'd like to
be able to support any other parser (SAX1 or SAX2)
which I might encounter. I should have mentioned
this. Thanks for taking the time to reply.
-Jason
--- "Swanson, Brion" <[EMAIL
Don't you already have ties to one (or both) of Xerces and/or Sun? What's
the complication in adding a single method that creates a Attributes
instance and populates it with the information from the AttributeList class?
Stick to the interface as much as possible and only use AttributesImpl to
crea
Hello. I have an SAX Parsing application which I'm
trying to get to work with both xerces and the sun
parser which comes with jaxp1.01. The problem is that
the sun parser is an SAX1 implementation. As a result
the class which handles the call back methods must
implement both DocumentHandler (SAX
Hi Jeff. Thanks for pointing this out! 1.4.0 was indeed a touch lax in
this regard; and now that we've tightened things up personal-schema no
longer validates! :-( So I'm glad you pointed this out so we can fix it
before 1.4.1 comes out.
I'll get this done shortly.
Thanks again,
Neil
Neil Gr
I didn't test it by the spirit is not so far :-)
myDocument.createProcessingInstruction("xml-stylesheet","href
='myStylesheet.xsl' type='text/xsl'"), myDocument.getDocumentElement());
--
A++
Stéphane
Hi Guys!
I use Xerces to create XML files, but couldn't find a way
to assign an XSL file to it. Could anyone help me?
Thanks in advance,
Don
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
I think there's from IBM and Oracle also...
Tung Mansfield wrote:
> Try http://xml.apache.org/crimson/index.html for more info on crimson and
> xerces
>
> -Original Message-
> From: Aaron Wadley [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 18, 2001 9:23 AM
> To: 'Xerces List'
> Subject:
Is Xerces-J 1.4 enforcing the QName resolution constraint? [1] In the
sample personal.xsd I believe there is an error that is not reported. I
don't think the ref's to the schema components should be resolved as they
should be in the no-namespace (because there is no targetNamespace) and they
are
Hello,
I am using the Xerces parser for validating xml documents against DTDs.
The parser generated error messages are generic i.e. they do not point
out an element for any errors on that element. for e.g. if I have a
document that has the a sequence of elements as elem1, elem2, elem3 and
if I mis
29 matches
Mail list logo