Overview
Features
Download
Documentation
Community
Add-Ons & Services

Doese Poco::XML support external entity?

A general discussion forum.

Doese Poco::XML support external entity?

Postby zhangwusheng » 08 Sep 2009, 08:18

File D:/a.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appConfig [
<!ENTITY chapter1 SYSTEM "b.xml">
]>

<appConfig>
&chapter1;
</appConfig>


When parsing the above xml using Poco::Util::XMLConfiguration
error reported:
"SAXParseException: Error in processing external entity reference in 'D:/a.xml', line 7 column 0"
zhangwusheng
 
Posts: 11
Joined: 08 Sep 2009, 07:18

Re: Doese Poco::XML support external entity?

Postby alex » 09 Sep 2009, 12:24

Where is the referenced b.xml file?
alex
 
Posts: 1086
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Doese Poco::XML support external entity?

Postby zhangwusheng » 11 Sep 2009, 03:14

alex wrote:Where is the referenced b.xml file?

d:/b.xml
zhangwusheng
 
Posts: 11
Joined: 08 Sep 2009, 07:18

Re: Doese Poco::XML support external entity?

Postby alex » 14 Sep 2009, 18:46

Just guessing, but did you try to specify full path to it?
alex
 
Posts: 1086
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Doese Poco::XML support external entity?

Postby zhangwusheng » 16 Sep 2009, 02:16

alex wrote:Just guessing, but did you try to specify full path to it?

It doesn't work[img][/img]
It's so urgly to write so long a xml config file
zhangwusheng
 
Posts: 11
Joined: 08 Sep 2009, 07:18


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest