Don
I found out how to suppress the EndOfEntityException in the Borland IDE
and now the file can be parsed and 
the progam is executed successfully. However I would like to confirm if
suppressing Exceptions this way could 
cause any other problems.
Ranjana

-----Original Message-----
From: Don Mastrovito [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 8:59 AM
To: [EMAIL PROTECTED]
Subject: RE: MalformedURLException


That's what the comments say.  Xerces throws the EndOfEntityException
from 
deep within the entity scanning logic.  That's what makes me think the 
problem has nothing to do with parsing a local file, but with the
contents 
of the file being parsed.

Don

At 02:43 PM 1/16/2002 +0100, you wrote:
>Aren't EndOfEntityExceptions caught within Xerces? I thought it was
only
>used internally to finish parsing an entity.
>
> > -----Original Message-----
> > From: Ranjana Srivastava [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 16, 2002 13:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: MalformedURLException
> >
> >
> > Thanks for replying
> > I had tried that but that gives me an EndOfEntityException. Any
ideas
> > ????????
> > Ranjana
> >
> > -----Original Message-----
> > From: Don Mastrovito [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 16, 2002 6:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: MalformedURLException
> >
> >
> > Replace file: with file:/// in the local url.  Note the 3 slashes!
> >
> > Don
> >
> > At 03:15 PM 1/15/2002 -0500, you wrote:
> > >I am trying to parse an xml file that resides on my local machine.
If i
> > >try sending in the path of the file to the Parser I get an
> > >MalformedURLException
> > >I have tried passing the file name as" file:C:/wf32/personal.xml "
the
> > >parser object but I get a RuntimeException  error . This is the
same
> > xml
> > >file that came with the samples
> > >  so I am sure the problem is not with the file. BTW I am using
Borland
> > >C++5 on Windows98. Any help will be appreciated
> > >
> > >A few lines of the code are as follows:
> > >   char * fileName = "file:C:/wf32/personal.xml"
> > >  DOMParser *parser = new DOMParser;
> > >     //  Parse the XML file, catching any XML exceptions that might
> > >propogate
> > >     //  out of it.
> > >     //
> > >     bool errorsOccured = false;
> > >     try
> > >     {
> > >         parser->parse(fileName);
> > >         int errorCount = parser->getErrorCount();
> > >         if (errorCount > 0)
> > >             errorsOccured = true;
> > >     }
> > >
> > >     catch (const XMLException& e)
> > >     {
> > >
> > >     }
> > >
> > >
> > >
> > >Ranjana Srivastava
> > >
> > >
> > >
> >
>---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to