DOMImplementation.createDocumentType ()

2001-02-27 Thread Swanson, Brion
I'm trying to create an empty doctype that looks like: ...but all I can manage to create is: using DOMImplementation.createDocumentType (). Is is possible to create a 'SYSTEM' doctype like this, or can you only create 'PUBLIC' doctypes with DOMImplementation? Thank you for your help, Brion

Re: Schema problem

2001-02-27 Thread Andre Juffer
Dear All, I have recently started to experiment with Schema and Xerces. When I parse (with sax.SAXCount) the instance document (see below), the following error message is given: [Error] foo.xml:6.2: Schema error: prefix : [] can not be resolved to a URI. foo.xml: 1870 ms (3 elems, 3 attrs, 16 pac

Re: Using xml schema

2001-02-27 Thread Michael Duffy
Alex is exactly right, of course. I was able to get schema support out of Xerces using the JAXP API, as he recommended. However, I did finally figure out how to get schema support out of the Xerces API without using JAXP. There are four features that must be set to true: http://apache.org/xml/

Re: Using xml schema

2001-02-27 Thread Edwin Goei
Alex Neth wrote: > > I don't use the DOMParser class. What is the purpose of this class? > I use the following method to parse the document: > >DocumentBuilderFactory docFactory = > DocumentBuilderFactory.newInstance(); As someone else mentioned (Ian Roberts) on this thread, JAXP is an XML

Re: Bug in handling attributes, when importing nodes

2001-02-27 Thread neilg
Hi Karl, This sounds like a bug that keeps getting reported once or twice a week which was fixed shortly after 1.3.0 was released. Could you try extracting and building the latest code from CVS and test that to see if it solves your problem? Thanks, Neil Neil Graham XML Parser Development IBM

RE: xsd validation

2001-02-27 Thread Karl Scheibelhofer
sorry, wrong thread. > -Original Message- > From: Karl Scheibelhofer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 27, 2001 9:15 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: xsd validation > > > no, i have checked it once again. there is no older xerces in the > cl

RE: xsd validation

2001-02-27 Thread Karl Scheibelhofer
no, i have checked it once again. there is no older xerces in the classpath. please note, this is not a simple validation problem. the original file ExaminationCertificationData_unsigned_0001.xml validates, but the import of its root element into another new document does not handle the attributes

RE: xsd validation

2001-02-27 Thread David DELGRANCHE
OK, you seem to have the same problem than the one discussed yesterday. Are you sure using the xerces 1.3.0 release? If this is the case, it's possible that you have the reference to an old xerces.jar in which the method startElement is not implemented. To control it make sure the FIRST xerces.

Bug in handling attributes, when importing nodes

2001-02-27 Thread Karl Scheibelhofer
the new Xerces 1.3.0 seems to introduce a new bug with handling attributes, when importing elements from other documents. if i (deep) import an element with attributes, xerces 1.3.0 messes up the attributes of the newly imported node. with the version 1.2.1, it worked. i use sun jdk 1.3.0. i attach

XHTML Serializing problem.

2001-02-27 Thread Corey Tripp
Hello, I am trying to serialize an XHTML dom tree using the XHTMLSerializer. Everything works great except for script tags. The serializer does not wrap the text of the script tags with the CDATA escaping, instead it escapes the text (changes '<' to '<' ..) I have tried using t