thanks Gareth, I ended up adding an internal subset to resolve the
undeclared internal entities.

 -----Original Message-----
From:   Gareth Reakes [mailto:[EMAIL PROTECTED] 
Sent:   Tuesday, September 23, 2003 7:22 AM
To:     [EMAIL PROTECTED]
Subject:        RE: please help: Internal entity resolution.

Hi,

> could there be a way such that the parser would avoid resolving these
> entities altogether?
> 
> I tried to make it a non-validating parser 
> saxParser->setFeature(XMLUni::fgSAX2CoreValidation, false);
> 
> but it does not seem to work. 

It does not do what you want. It will not validate the document but it 
will still retrive the DTD to grap the entities.


> Also implementing the EntityResolver did not
> help. It does not get called to resolve this entity.

Yes, this is really good naming. EntityResolver do not resolve the type of 
entites you are talking about (&xxx;).


> 
> could somebody please confirm that a DTD is a must if I want to
successfully
> parse an XML document containing entities?

Yes, but you can use an internal subset if you want.


Gareth

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




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