Re: encoding and saxparser

2003-01-15 Thread neilg
Hi Joseph, That's a good question; its answer will depend at least on what version of Xerces you're using and exactly what the SAXParser is doing. Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMAIL PROTECTED] |-+-

encoding and saxparser

2003-01-15 Thread Joseph Shraibman
I have code that looks like this: SAXParser sp = new SAXParser(); sp.setContentHandler(tch); //tch is my content handler InputSource is = null; is = new InputSource("/tmp/temp1.xml"); sp.parse(is); My xml starts with DOMParser handles the encoding properly, but SAXParser does not. So ho

XML validation using xml schema string

2003-01-15 Thread Praveen Peddi
Hi all, I want to validate an xml document with an existing schema. I know there is a code to do it when the schema is present as a URL. BUt in my case schema is present with in the application memory (since it is stored in the database) and that is not the url or on the hard disk. I have th

RE: Parsing DTD's with CDATA elements

2003-01-15 Thread Greg Hess
I have changed my DTD as suggested and all is well :-). Many Thanks, Greg -Original Message- From: Joseph Kesselman [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 4:59 PM To: [EMAIL PROTECTED] Subject: Re: Parsing DTD's with CDATA elements This looks like the standard confu

AW: Parsing DTD's with CDATA elements

2003-01-15 Thread Hellmann Peter (ext) ICN CN 1F BD
i agree with Joe. i have successfully validated xml that contains a RFC822 mail within a CDATA section against a XSD file and it worked. the only thing i did in the XSD file was to add the following:        the CDATA doesn't need to be defined as a kind of "tag" or "sub-tag", it simply enca

Appending a ProcessingInstruction to org.w3c.dom.Document

2003-01-15 Thread Øyvind Hvamstad
Hi, I'm generating xml on the fly for my report server, in this context I need to embedd a stylesheet inside the xml document. In order for this to work, I need a processing instruction to the parser: . I try to do this in my dom structure as follows: org.w3c.dom.Document doc = new org.apache.D