Next in thread → Next in month →

Re: [xml-dev] problems with using DOM to parse XML (yet again)

From
Thomas B. Passin <>
To
Date
2002-04-27T00:40:21Z
ID
<00ae01c1ed84$1ccce2e0$0bf13044@tbp>
Thread
Re: [xml-dev] problems with using DOM to parse XML (yet again)
What is giving you the error? The parser, I presume?  What is the sample of
xml it is trying to parse?  We can't very well comment on an error about a
declaration without seeing it.

Tom P

[Derrick Pisani]

>
> I am sorry that I am resending this because those of you that have already
> seen it and can't answerr will inadvertedly be trashing this once again,
but
> I really need help here as this is for my final year Uni thesis and I am
> stuck (deep).
>
> Derrick
>
>
>
> Hi,
>
> I am a newbie to XML, XML Parsing etc... and am trying to use the DOM
> tutorial found at
>
> http://members.fortunecity.com/seagull98/XmlTutorial.html
>
> wich gives a simple example. I am trying to use the attached code to parse
> an XML document, construct a DOM tree and traverse the tree and printing
the
> content. I found the code at the above site. I am also attaching my XML
> file.
>
> This is the error I am getting:
>
> The external entity declaration must begin with either "SYSTEM" or
"PUBLIC".
> [Fatal Error] test.xml:2:21: The external entity declaration must begin
with
> either "SYSTEM" or "PUBLIC".
>
Next in thread → Next in month →