I'm trying to use the XML namespace and the following code to load a document:
- Code: Select all
AutoPtr<XML::Document> m_xmlConfig;
XML::InputSource src(std::ifstream(schemaFile));
m_xmlSchema.assign(parser.parse(&src));
but I get the following compiler error:
error C2664: 'Poco::XML::Document *Poco::XML::DOMParser::parse(const Poco::XML::XMLString &)': cannot convert parameter 1 from 'Poco::XML::InputSource (__cdecl *)(std::ifstream)' to 'const Poco::XML::XMLString &'
It seems to not "view" the method
Document* parse(InputSource* pInputSource);
I'm using VS2010. Any suggestions?
Regards,
Daniele.





