logo       


Re: Re: Unwanted SAXParseException: msg#00018

Subject: Re: Re: Unwanted SAXParseException
Hi,

To conclude the issue,  I suggest the following patch.

bash-2.05b$ diff -u gnu/xml/aelfred2/SAXDriver.java.orig 
gnu/xml/aelfred2/SAXDriver.java
--- gnu/xml/aelfred2/SAXDriver.java.orig        Sat Oct 18 19:51:10 2003
+++ gnu/xml/aelfred2/SAXDriver.java     Sat Oct 25 08:41:10 2003
@@ -596,8 +596,6 @@
                        in.getSystemId ());
            if (source == null)
                source = in;
-           else if (source.getSystemId () == null)
-               source.setSystemId (in.getSystemId ());
        }
        startExternalEntity (name, source.getSystemId (), true);
        return source;
@@ -638,8 +636,13 @@
        boolean stackOnly)
     throws SAXException
     {
+       // The following warning was deleted because the application has the
+       // option of not setting systemId. Sun's JAXP or Xerces seems to
+       // ignore this case.
+       /*
        if (systemId == null)
            warn ("URI was not reported to parser for entity " + name);
+       */
        if (!stackOnly)         // spliced [dtd] needs startEntity
            lexicalHandler.startEntity (name);
        entityStack.push (systemId);
bash-2.05b$ diff -u gnu/xml/aelfred2/XmlParser.java.orig 
gnu/xml/aelfred2/XmlParser.java
--- gnu/xml/aelfred2/XmlParser.java.orig        Sat Sep 13 22:43:30 2003
+++ gnu/xml/aelfred2/XmlParser.java     Sat Oct 25 08:47:16 2003
@@ -3449,10 +3449,15 @@
 
            // we might be using alternate IDs/encoding
            systemId = source.getSystemId ();
+           // The following warning and setting systemId was deleted bcause
+           // the application has the option of not setting systemId
+           // provided that it has set the characte/byte stream.
+           /*
            if (systemId == null) {
                handler.warn ("missing system ID, using " + ids [1]);
                systemId = ids [1];
            }
+           */
        } else {
            // "[document]", or "[dtd]" via getExternalSubset()
            scratch.setCharacterStream (reader);


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe