Re: AW: parser doesn't find schema

2002-02-27 Thread Laura Hatcher
You or I must have typed it in wrong.  Either way that exception is being thrown because the parser isn't recognizing the feature: An XMLReader will throw this exception when it finds an unrecognized feature or property identifier; SAX applications and extensions may use this class for other, sim

Re: XmlSerializer putting xmlns="" on children of root element

2002-02-27 Thread neilg
Hi Eric, What version of Xerces are you using? A number of serializer bugs have been fixed recently, so it might pay to do a CVS extract to obtain the most recent code. (Or you can obtain recent jars from http://gump.covalent.net, if I have the URL correct.) Cheers, Neil Neil Graham XML Parser

RE: External ENTITY Reference Behavior with X1/X2/SAX

2002-02-27 Thread neilg
Hi Andy, (B (BFWIW, I think you're analysis is entirely correct and I've been meaning to (Blook into this for the last couple of months--ever since I put down the (BrewindableInputStream. :-) It's just that other things kept rising higher (Bon my priority queue, and for some reason I had tho

validation on document building or serialization?

2002-02-27 Thread Eric_Schwarzenbach
If I build a document from scratch using a DocumentBuilder and then serialize it out, it seems to not do any validation. I'm able to create a completely invalid document, even with validation turned on. I'm using XML schema ather than a DTD, if that matters, and creating the association with the do

XmlSerializer putting xmlns="" on children of root element

2002-02-27 Thread Eric_Schwarzenbach
I'm building a Document using Xerces2.0.0 with a DocumentBuilder. I want the resultant document to have the proper attributes for XML schema location, namespace, etc. Not knowing any other way to do it, I'm just calling setAttribute on the root Element for "xmlns", "xmlns:xsi" and "xsi:schemaLocat

Get DTD Grammar from parser

2002-02-27 Thread Cirip Tomas
Hi all, Is there any easy way to get DTDGrammar from parser after XML Document was parsed? Thank you Tomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Schema

2002-02-27 Thread Ha Nguyen
Hi, I have questions about the syntax of schema: I want to write a schema for the purchaseOrder example with conditions: (1) shipTo, comment, items can appear in any order under purchaseOrder; (2) name, street, city, state, zip can appear in any order under shipTo; (3) itemQuantity, item can app

Recommended way to implement toString() for a node?

2002-02-27 Thread Thomas Börkel
HI! What's the recommended way to implement a toString() method for an xml node? Currently, I do: StreamResult streamResult; Transformer transformer; String result; streamResult = new StreamResult(new StringWriter()); transformer = TransformerFactory.newInstance().newTransformer();

Schema validation dynamic not working anymore in current build?

2002-02-27 Thread Thomas Börkel
HI! If I set the attribute "http://apache.org/xml/features/validation/dynamic"; to true with Xerces 2.0.0, then I can load an XSLT document without warning (it cannot find the XSLT schema). Using the current build, this generates a warning. Which version of Xerces is doing it right? Is there su

AW: parser doesn't find schema

2002-02-27 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
thank you Laura, the validation feature is set to true. if i want to set the other feature, i get an exception: org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/schema-full-checking i don't know why it throws the exception. is there a certain property i must set ad

Re: Bad bug in Xerces?

2002-02-27 Thread Andy Clark
Thomas Börkel wrote: > Clearly, the XML is damaged. And it's not the Transformer's > fault, because if you iterate through the DOM, you see that > the 2nd CDATA node really has the wrong data. > > Anyone any idea, please? Am I doing something wrong? This looks like a bug in Xerces 2.0.0. But th

Re: xerces2-j in applet

2002-02-27 Thread Edwin Goei
Andy Clark wrote: > > Edwin, > > Luke Deller wrote: > > (2) org.apache.xerces.util.ObjectFactory doesn't work in an applet because > > it tries to use "Thread.getContextClassLoader" without gracefully > > degrading to use the default classloader if a security exception is > > thrown. I get an "I