You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Denny Vrandecic <de...@nodix.de> on 2003/10/14 16:29:10 UTC
Non-local DTDs
Hi,
I hope, the following is not a boring question...
If my doctype declaration looks like this:
<!DOCTYPE gxl SYSTEM "http://www.gupro.de/GXL/gxl-1.0.dtd">
and I tell DOMBuilder to validate, he sputters the following error message:
An exception occurred! Type: MalformedURLException, Message:The URL used an
unsupported protocol in line 2, column 60. (which is the above line).
But in the Xerces FAQ it says, http is supported by default. Now, what am I
doing wrong?
Thanks for reading,
more thanks for answering,
sincerely yours,
Denny Vrandecic
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Non-local DTDs
Posted by Denny Vrandecic <de...@nodix.de>.
Hi,
I'm using Xerces 2.2.0 under CygWin. Here's what the code does, with X()
being XMLString::transcode():
....
XMLPlatformUtils::Initialize();
DOMParser p =
DOMImplementationRegistry::getDOMImplementation(X("LS"))->createDOMBuilder(D
OMImplementationLS::MODE_SYNCHRONOUS, 0);
p->SetFeature(X("validate-if-schema"), true);
p->SetFeature(X("validation"), true);
p->SetFeature(X("datatype-normalization"), true);
... setting errorHandler...
DOMDocument* doc = p->parseURI(X(filename));
...
To repeat for convenience:
<!DOCTYPE gxl SYSTEM "http://www.gupro.de/GXL/gxl-1.0.dtd">
That's what makes the parser throw a MalformedURLException.
Did I set the features wrong? Am I using a dated version of Xerces? Or
where's the error?
Thanks for your help and time,
Denny
----- Original Message -----
From: "Gareth Reakes" <ga...@decisionsoft.com>
To: <xe...@xml.apache.org>
Sent: Tuesday, October 14, 2003 6:39 PM
Subject: Re: Non-local DTDs
> Hi,
> I don't have this problem. What version of xerces are you using?
> Attach a snippet of code so we can take a look at whats going on.
>
> Gareth
>
>
> On Tue, 14 Oct 2003, Denny Vrandecic wrote:
>
> > Hi,
> >
> > I hope, the following is not a boring question...
> > If my doctype declaration looks like this:
> > <!DOCTYPE gxl SYSTEM "http://www.gupro.de/GXL/gxl-1.0.dtd">
> > and I tell DOMBuilder to validate, he sputters the following error
message:
> > An exception occurred! Type: MalformedURLException, Message:The URL used
an
> > unsupported protocol in line 2, column 60. (which is the above line).
> > But in the Xerces FAQ it says, http is supported by default. Now, what
am I
> > doing wrong?
> >
> > Thanks for reading,
> > more thanks for answering,
> > sincerely yours,
> > Denny Vrandecic
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
> >
> >
>
> --
> Gareth Reakes, Head of Product Development +44-1865-203192
> DecisionSoft Limited http://www.decisionsoft.com
> XML Development and Services
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Non-local DTDs
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
I don't have this problem. What version of xerces are you using?
Attach a snippet of code so we can take a look at whats going on.
Gareth
On Tue, 14 Oct 2003, Denny Vrandecic wrote:
> Hi,
>
> I hope, the following is not a boring question...
> If my doctype declaration looks like this:
> <!DOCTYPE gxl SYSTEM "http://www.gupro.de/GXL/gxl-1.0.dtd">
> and I tell DOMBuilder to validate, he sputters the following error message:
> An exception occurred! Type: MalformedURLException, Message:The URL used an
> unsupported protocol in line 2, column 60. (which is the above line).
> But in the Xerces FAQ it says, http is supported by default. Now, what am I
> doing wrong?
>
> Thanks for reading,
> more thanks for answering,
> sincerely yours,
> Denny Vrandecic
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org