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 Catarina Almeida <ca...@yahoo.com> on 2002/02/20 12:24:33 UTC
Imlementation
Hi,
my name is Sofia Almeida, and I'm from Portugal , Lisbon.
I have work with DOMParser (XML4C) and i need to Know, how I initialize an object from class: XMLFormatter.
Well, the problem is: I need to read de name into tags and arguments.
I have this code:
"gFormatter.formatBuf(nodeValue.rawBuffer(), lent, XMLFormatter::CharEscapes);"
and the error occured is:
"'gFormatter' : undeclared identifier"
Please can you help me?
Thank you, for your time,
Sofia Almeida
SystemHouse, Lisboa
c.almeida@systemhouse.pt
---------------------------------
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
Re: Imlementation
Posted by Jorge Pozo Ramirez <j....@externo.mju.es>.
XMLFormatter is a Class. As so, u need to instantiate an object of that class before using it. First declare a pointer to the XMLFormatter class, and then create a new instance of it using that pointer. Remember to free it afterwards.
...{
gFormatter* XMLFormatter;
gFormatter = new XMLFormatter(<parameters of the constructor>);
.....
delete gFormatter;
}...
Hope this will help
Jorge
----- Original Message -----
From: Catarina Almeida
To: xerces-c-dev@xml.apache.org
Sent: Wednesday, February 20, 2002 12:24 PM
Subject: Imlementation
Hi,
my name is Sofia Almeida, and I'm from Portugal , Lisbon.
I have work with DOMParser (XML4C) and i need to Know, how I initialize an object from class: XMLFormatter.
Well, the problem is: I need to read de name into tags and arguments.
I have this code:
"gFormatter.formatBuf(nodeValue.rawBuffer(), lent, XMLFormatter::CharEscapes);"
and the error occured is:
"'gFormatter' : undeclared identifier"
Please can you help me?
Thank you, for your time,
Sofia Almeida
SystemHouse, Lisboa
c.almeida@systemhouse.pt
------------------------------------------------------------------------------
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
****************************************************************
Este mensaje ha sido analizado con una herramienta
de deteccion de virus para su seguridad.
Ministerio de Justicia
***************************************************************