I'm tryng to recompile xerces 1.3 but in domstring.cpp
in lines like "int DOMString::gTotalStringHandleCount = 0;"
Compiler says he cannot initialize class member there, if i omit it
linker gives me an unresolved symbol?
Can U help me?
Cya,
/kiuma
It's not possible that way.
1st: U have to include the .lib file.
2nd: U can't use coff2omf to convert m$vc .lib in bcb .lib 'cause it contains
object.
if U want to build a layer using existing dll U have do do it in vc.
Get fre
Hi,
Im writing an API over xerces C++, using Borland C++ on windows NT, Im
facing a critical problem.. Im able to create a .OBJ file but unable to
create a .exe... the file name is Hello.cpp, I have already added the Xerces
Dll's into the Path environment, The ERROR stack is
Error: Unresolve
Just being anal but:
char *sp = s.transcode();
std::cout << sp;
delete sp;
std::cout << "transcode() string deleted\n";
return 0;
is in error. It should be "delete [] sp" or you will get undefined results.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PR
Hi,
the buffer coming the transcode call must be deleted by "delete [] sp;"
and not by the simple delete sp;
If it works for you it's by an accident.
Radovan
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, 31 May, 2001 11:32 PM
Subject: RE: Pr
No. All those just fall through, on the assumption that the error has
already been reported via the error handler.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
I gather the app uses all static libraries except for xerces.
On Solaris this should not be a problem as the following code
demonstrates:
/* transcode_test.cpp */
#include
#include
#include
int main(int argc, char *argv[])
{
XMLPlatformUtils::Initialize();
DOMString s("Some text!\n");
c
Ray,
I use Xerces-C on Solaris, HPUX, and AIX, and have had no problems with
the memory. I'm currently using Xerces 1.3.1, because that's the API our
code was written against. Since it looks like 1.5 will soon be out, I will
have
to look at moving to 1.4 - I don't like bleading edge stuff - I pre
My programs on solaris use only 1 heap (I've done NT c++ before & the
general rule I've used in WIN32 programming is that memory allocated by a
method/function within a DLL must be free'd by a method/function from the
same dll so that the allocating heap is used).
You might want to fire up BoundsC
I believe that I resolved this problem. The DTD that I use has multiple
ATTLIST entries for each ELEMENT. This is a documented leak reported by :
Erik Rydgren
Mandarinen Systems AB, Sweden
Having just one ATTLIST for each attribute per ELEMENT seems to eliminate
the leak.
Sean Radcliffe wro
Hi,
Im writing an API over xerces C++, using Borland C++ on windows NT, Im
facing a critical problem.. Im able to create a .OBJ file but unable to
create a .exe... the file name is Hello.cpp, I have already added the Xerces
Dll's into the Path environment, The ERROR stack is
Error: Unresolve
Any separately linkable unit (DLL/Exe) that uses a non-DLL runtime is going
to have to get its own runtime. If you don't use the DLL runtime, you should
statically link Xerces into your program directly.
--
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAI
I am hoping to build outgoing xml using the xerces parser, so it will stick
to the dtd and avoid errors, etc. Thats the theroy anyway... the example I
have found of how to do this is the CreateDOMDocument sample program, that
comes with the parser.
I just compiled CreateDOMDocument.cpp on an AIX
Dean,
I noticed if the parser see " on 05/30/2001 06:54:01 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: RE: Bug in scanner
That is probably true, and it would be my mistake. It probably works in
99.9% of all cases, which is why its
So it sounds like dynamic construction of DOM objects is allowed
by Xerces and its memory management is not affected by an
application using new with default or copy constructors. Of course
DOM implementation objects can only be created through factory
methods. Should Xerces docs be updated to cla
The project I am working on makes use of Xerces-C on Win2000, Solaris, and
Mac. I have run into a problem on Windows and Solaris. When I attempt to
delete the memory allocated during a transcode, I get an illegal memory
access.
On Win2000, my project makes use of the Multithreaded runtime libra
Have the schema issues between Xerces and SOAP 2.1 been resolved ?
Cheers,
--
Paul Duffy
Cisco Systems, Inc.
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Benoit Lefevre wrote:
> Hi
>
> I'm having troubles to use the DOM part of Xerces C++.
> On one hand i have a DOM object that i've loaded from a XML file.
> On the other hand i have my own acces structure (a map).
>
> My problem is to be able to fill my structure according to t
... Ah; sorry; I misread the question.
Copying a pointer to a node is certainly legitimate. How that's expressed
is up to the individual binding. I don't have an opinion on whether the
copy constructor is a reasonable way for this binding to express that or
not.
---
Yes, it will work, but you must be very careful about passing that pointer
around. Aliasing a smart pointer defeats the purpose of having
reference-counting, since your application must now keep track of how many
copies of the pointer are still reachable.
It can also be less efficient, since yo
> On Thu, 31 May 2001, "jk" == [EMAIL PROTECTED]
> wrote:
+> DOM_Node* nodePtr = new DOM_Node(node); // calls copy contructor
jk> May work in some implementations. Won't work in others.
Forgive me if this is a stupid suggestion, I haven't looked at
Xerces in detail yet.
>
> >DOM_Node* nodePtr = new DOM_Node(node); //
> calls copy
> contructor
>
> May work in some implementations. Won't work in others. May not work in
> future releases of this DOM, and if it stops working you have
> only yourself
> to blame.
>
> Node.cloneNode() is a portable
>DOM_Node* nodePtr = new DOM_Node(node); // calls copy
contructor
May work in some implementations. Won't work in others. May not work in
future releases of this DOM, and if it stops working you have only yourself
to blame.
Node.cloneNode() is a portable way of doing the sa
On the other hand, if you've created a DOM_Node as you describe, you may use
the following (at least, it works for me)
DOM_Node node; // created using the DOM API
DOM_Node* nodePtr = new DOM_Node(node); // calls copy contructor
// use nodePtr, pss
Independent of memory management, one _SHOULD_ never create a DOM Node
object directly. The DOM's factory methods (Document.create...()) generally
perform addiitonal implementation-specific and non-public initialization to
make sure that the node will function properly in the context of a specifi
Dhana,
Please send us your platform sensitive file and development environment sensitive
file. (See http://xml.apache.org/xerces-c/build-misc.html#faq-4 for details).
You can either post your changes here in the mailing list
([EMAIL PROTECTED]) or post in the Bugzilla database component Xerces-C
We will try to fix as much as we can with our limited resource. Since this is
an Open Source product, if anyone volunteer to provide any fix to those Bugzilla
bugs, it is always welcome and appreciated.
Thanks!
Tinny
Maxim Volkonovsky wrote:
> Hello Tinny,
>
> Wednesday, May 30, 2001, you w
Benoit,
I think you should have a map rather than . (DOM_Element, like almost all DOM_XXX classes is a kind of
smart pointer).
But then, why have a map at all? The DOM API allows easy access to nodes and
all that - it's what it's for.
Ta, evert
> -Original Message-
> From: Benoit Lefev
On 30 May 2001 20:30:24 -0600, Jason E. Stewart wrote:
>Would it be useful to distribute the DTD's with Xerces? Or does it
>make more sense to have them available as external documents. We could
>make them available off the WWW site.
Or people could just download
http://www.w3.org/TR/xh
Hello Tinny,
Wednesday, May 30, 2001, you wrote:
[...]
TN> If you have any urgent fix or important code wanna to get in, please do
TN> so and let us know. Unless we hear any oh-hold request, our target date
TN> for Xerces 1.5 should be sometime during the 2nd of week of June.
What about existi
Hi
I'm having troubles to use the DOM part of Xerces C++.
On one hand i have a DOM object that i've loaded from a XML file.
On the other hand i have my own acces structure (a map).
My problem is to be able to fill my structure according to the DOM object.
Actualy my ma
+1
>
> Hi there,
>
> I would like to propose that Pei Yong Zhang be given CVS commit access
> for the Xerces-C project.
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
32 matches
Mail list logo