Retraction ...

2001-08-16 Thread Cliff Rowley
Apologies, the error was entirely my fault. I had inadvertently restored an older Xerces. Cliff Rowley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

SAXNotRecoginisedException setting property external-noNamespaceSchemaLocation

2001-08-16 Thread Cliff Rowley
Greetings to all I am currently trying to validate a document against a specific Schema, regardless of any DTD or schema specified in the document. Apparently this is possible by setting the property 'http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation' (according to http:/

Re: text nodes missing?

2001-08-16 Thread Bob Foster
From: <[EMAIL PROTECTED]> > > Given[snip] > > > > > Parsing the document and iterating through the nodes, I noticed that the > element nodes and do not have have > child text nodes. Is there a reason for this or is this a bug? Why would they? They don't have

validating a schema without an instance

2001-08-16 Thread Susan Weber
I am trying to validate a schema for which I do not have a minimally valid instance. I have pulled xmlSchema.xml, xmlSchema.dtd and datatypes.dtd down from the w3 site and stashed them locally. It seems to me that I should be able to edit the schema document root attributes to include xmlns:xsi="h

Re: Losing Internal Subset When Cloning

2001-08-16 Thread Sriram Rao
Thanks Elena, but the I don't see set methods in the DocumentType interface. Also, the 'value' property of a DocumentType node is null. Is there a way to set the internal subset for a DOCUMENT_TYPE_NODE? Thanks Again, Sriram At 04:40 PM 8/16/01 -0400, you wrote: Sriram, > When deep cloning a DOCU

text nodes missing?

2001-08-16 Thread TLSteinmetz
Given a xml document of general form: Parsing the document and iterating through the nodes, I noticed

Re: Warnings with Xerces.

2001-08-16 Thread neilg
Hi there, Well on closer inspection perhaps there are only features for multiple attribute defs and for undeclared element decls. Hopefully these will be sufficient for your needs. Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 416-448-3519, T/L 778-3519 E-mail: [EMAIL

Re: Warnings with Xerces.

2001-08-16 Thread neilg
Hi Jean-Guillaume, > - an XML processor may issue a warning when a declaration mentions an element type for which no >declaration is provided, but this is not an error. The feature http://apache.org/xml/features/validation/warn-on-undeclared-elemdef which defaults to false, controls this. Take a

Re: Losing Internal Subset When Cloning

2001-08-16 Thread Elena Litani
Sriram, > When deep cloning a DOCUMENT_NODE (of a DOM created using Xerces parser), I > loose the 'internal subset' property of its DOCUMENT_TYPE_NODE child. That > is, docType.getInternalSubset() (where docType is of type > DOCUMENT_TYPE_NODE) returns null. This method however returns the correct

Losing Internal Subset When Cloning

2001-08-16 Thread Sriram Rao
Hi, When deep cloning a DOCUMENT_NODE (of a DOM created using Xerces parser), I loose the 'internal subset' property of its DOCUMENT_TYPE_NODE child. That is, docType.getInternalSubset() (where docType is of type DOCUMENT_TYPE_NODE) returns null. This method however returns the correct internal

Compatibility between DOM (Xerces) and DOM (MSXML)...

2001-08-16 Thread David DELGRANCHE
Hi, I have one problem I can't resolve... I have a C++ client calling Java servlet. The result of my servlet is an XML document made with Xerces 1.2.2. I serialise it with an XMLSerializer. Everything is OK, but when I try to load the XML file with the loa

Warnings with Xerces.

2001-08-16 Thread jean-guillaume . battaglia
Hi. I'm using the SAXParser implemented in Xerces 2.0 Beta. In the XML specification, I read that a parser "may" issue warnings when one of the following is encountered : - an XML processor may issue a warning when a declaration mentions an element type for which no declaration is provided, but thi

Re: creating an null DOCTYPE in Xerces2

2001-08-16 Thread Bob Foster
From: "Andy Clark" <[EMAIL PROTECTED]> > Elena Litani wrote: > > This is interesting.. DOM L2 states that doctype is readonly: > > "...The DOM Level 2 does not support editing the Document Type > > Declaration. docType cannot be altered in any way, including through the > > use of methods inherited

Re: How to change the encoding before parsing an XML fragment

2001-08-16 Thread Andy Clark
Han Ming Ong wrote: > I have searched the Xerces FAQ and read the document but am > wondering if there is a way I specify the encoding of an XML fragment > before the Xerces parser does its job? The usual way is of course to > specify the encoding the XML declaration of a proper XML documen

Re: creating an null DOCTYPE in Xerces2

2001-08-16 Thread Andy Clark
Elena Litani wrote: > This is interesting.. DOM L2 states that doctype is readonly: > "...The DOM Level 2 does not support editing the Document Type > Declaration. docType cannot be altered in any way, including through the > use of methods inherited from the Node interface, such as insertNode or >