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]
|-+-
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
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
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
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
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