Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Problems with Xerces

Reply
Thread Tools

Problems with Xerces

 
 
ike
Guest
Posts: n/a
 
      09-30-2003

Hello,

I have two problems with xerces:

- I'm using SAXParser and I can't correctly set locale for German and
when I parse xml file I got some characters incorrect.
- when I try compile code like "SAXParser parser = new SAXParser;" I get
error message "error C2661: 'new' : no overloaded function takes 3
parameters" and when I write
"SAXParser parser" compilation is ok.


Thanks
Romek



 
Reply With Quote
 
 
 
 
Alexey Dmitriev
Guest
Posts: n/a
 
      10-02-2003
ike wrote:

> Hello,
>
> I have two problems with xerces:
>
> - I'm using SAXParser and I can't correctly set locale for German and
> when I parse xml file I got some characters incorrect.
> - when I try compile code like "SAXParser parser = new SAXParser;" I get
> error message "error C2661: 'new' : no overloaded function takes 3
> parameters" and when I write
> "SAXParser parser" compilation is ok.
>
>
> Thanks
> Romek
>
>
>

You on a review could not submit a scrap of a code?

--
Alex

 
Reply With Quote
 
 
 
 
f
Guest
Posts: n/a
 
      10-24-2003
I also have the "'new' : no overloaded function takes 3" problem with
XercesDOMParser. It happened when I put it inside a MFC derived class.

#include <xercesc/util/PlatformUtils.hpp>

#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMWriter.hpp>

#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/util/XMLUni.hpp>

XERCES_CPP_NAMESPACE_USE

XercseDOMParser* paerser1 = new XercesDOMParser(); //ok

class MyDialog : public CDialog
{
...
void MyMethod()
{
XercseDOMParser* paerser2 = new XercesDOMParser();
//does not compile, show the error message " no overloaded
function takes 3 parameters"

}
};

What's the problem here?

Thanks,
ff




with ike" <(E-Mail Removed)> wrote in message news:<blblei$jcs$(E-Mail Removed)>...
> Hello,
>
> I have two problems with xerces:
>
> - I'm using SAXParser and I can't correctly set locale for German and
> when I parse xml file I got some characters incorrect.
> - when I try compile code like "SAXParser parser = new SAXParser;" I get
> error message "error C2661: 'new' : no overloaded function takes 3
> parameters" and when I write
> "SAXParser parser" compilation is ok.
>
>
> Thanks
> Romek

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML Parsing Problems with SAX xerces John Smith Java 3 09-27-2005 05:50 AM
Xerces SAX encoding problems John Smith Java 1 09-21-2005 09:29 PM
problems with jboss an xerces koslows Java 4 06-29-2005 01:24 PM
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
Linking problems with xerces-c2_2_0 on ibm aix 5.2 Reinhard Schauer XML 0 09-18-2003 03:20 PM



Advertisments