You obviously have some sort of build problem. Each parse for some reason
seems to be re-initializing global/static data, instead of seeing that its
already done. You should only call Terminate() when you are ready to close
down, and it shouldn't be required to avoid that memory accumulation.
Are
Read the FAQ at http://apache.xml.com . It covers this. There are no known
real memory leaks in the release version ( I believe it has to do with the
memory pooling technique), and Initialize and Terminate must only be called
once.
- kaoruAngel
- Original Message -
From: "Simon Reye" <[E
Xerces Gurus,
Okay, perhaps there is no leaking problem. I tried calling Terminate()
after I finished a single parse() and the leaks went away. The only problem
I am left with now is that if I try to call Intialize() again I get an
access violation when the DLL attempts to execute the line:
(8
Xerces Gurus,
I've finally managed to build a debug version of the 28/3/2001 code snapshot
in BCB5. To my horror when I run BoundsChecker or any other memory leak
snooper on the dll I get quite a large number of leaks. In my specific case
each parse() costs me 20k of memory. I'm writing a serv
> -Original Message-
> From: Dean Roddey [mailto:[EMAIL PROTECTED]]
>
>
> Read the FAQ. Go through all of the sample programs and carefully look at
> what they do. Read up on the DOM and SAX APIs which are publically defined
> APIs that the Xerces parser implements, so they are well docume
What program are you running? Can you parse the file with say DOMPrint or
something like that? If so, and its some program of your that you are
running that is having this problem, then I'd say you have a bug in your
program.
--
Dean Roddey
The CIDLib C++ Frameworks
Charme
I don't think that the base path can ever be "xml/" The way the parser
works, the base path is always a fully qualified base path. The URL class is
not designed for general purpose use, so if you are using it directly, I'm
not sure that's something that the parser team really needs to support,
cau
I'm sorry if this has been asked thousands of times recently, but there
doesn't seem to be an easy way of viewing the archives at present.
I decided I would have to do some coding with Xalan and Xerces to do exactly
what I want - but it seems I need stlport to build.
There has been no response f
Here is the hex dump along with an error, by the way it may sound weird but
this occurs once out of three times I run the program?
2F 72 65 67 69 73 74 65 72 65 64 27 2F 3E
Fatal Error at file "LOGIN", line 1, column 128
Message: Expected comment or processing instruction
-Original
You are talking about the default namespace, which is a special animal and
is allowed to have an empty URL as a means to set it back to nothing. We are
talking about something other than setting the default namespace.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROT
On Mon, Apr 02, 2001 at 03:50:25PM -0700, [EMAIL PROTECTED] wrote:
>
> Actually, I believe there are three states to consider:
>
> 1. Element is not in a namespace
> 2. Element is a namespace whose URI is a zero-length string
Dave,
According to how I read the spec I believe that condition 2
Mail me the file, in original binary form as an attachment. I'm assuming
that its going to work with no problems, which is going to kind of leave you
with no real answers.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Message-
From: Ale
version is 1.4 platform is windows nt
-Original Message-
From: Dean Roddey [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 7:12 PM
To: '[EMAIL PROTECTED]'
Subject: RE: error
What versoin of the parser are you using and on what platform? There is
obviously something just silly go
What versoin of the parser are you using and on what platform? There is
obviously something just silly going on here, since there's no way the
parser cannot handle that simple a file and no one would have noticed all
this time.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[
Actually, there's another one. See my other post on a related thread. I
think that I was confused here. What I think I did was that stuff in the
global namespace really did have an empty URI. I think that the one I
kludged was "xmlns:foo". In this case, the spec says that xmlns maps to
nothing. Ho
I hexdump it there is nothing else after last character.
-Original Message-
From: Dean Roddey [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 7:03 PM
To: '[EMAIL PROTECTED]'
Subject: RE: error
Then you probably have some trailing, non-printable, gorp at the end. If
everything af
Ryan Koss wrote:
> What compiler and OS is this running on because I still get a the
following
> compiler error when I try to do the cast that has been stated in this
> multi-threaded email... I am running Mandrake linux 7.1 and my compiler
is
> GCC 2.95.3
>
> xmlobject.cpp:446: conversion to no
Actually, I believe there are three states to consider:
1. Element is not in a namespace
2. Element is a namespace whose URI is a zero-length string
3. Element is in a namespace whose URI is a non-zero length string.
Clearly 3 is no problem, but 1 and 2 are a problem. Believe it or not,
this e
Then you probably have some trailing, non-printable, gorp at the end. If
everything after the last > is not basically whitespace, or a PI or a
comment, that's the error you'd get.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Message-
F
Encoding is UTF-8 and it says that it expected it at last character.
-Original Message-
From: Dean Roddey [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 6:59 PM
To: '[EMAIL PROTECTED]'
Subject: RE: error
What encoding is the text in? If its not UTF-8 or UTF-16, it has to have
What encoding is the text in? If its not UTF-8 or UTF-16, it has to have an
XMLDecl. And where exactly does it say that it expected it? If its at 0,0,
then most likley its an encoding issue.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Mes
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1189
*** shadow/1189 Mon Apr 2 15:52:57 2001
--- shadow/1189.tmp.12946 Mon Apr 2 15:52:57 2001
***
*** 0
--- 1,49
+ ++
+ | relative path erro
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1189
*** shadow/1189 Mon Apr 2 15:52:57 2001
--- shadow/1189.tmp.12963 Mon Apr 2 16:00:23 2001
***
*** 46,49
XMLExcepts::File_BasePathUnderflow);
}
! it's not an error if there is so
"The prefix xmlns is used only for namespace bindings and is not itself
bound to any namespace name."
Doh! Maybe I remembered wrong and it was *this* one that I ended up
assigning to a proprietary URL when its used like "xmlns:foo", since it is a
namespace prefix and it cannot map to "" since tha
not at all
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: Re: error
Hi, Alex,
Your XML file looks pretty fine since it goes through both DOMPrint
and
DOMCount, unless with -v=always, it giv
Hi, Alex,
Your XML file looks pretty fine since it goes through both DOMPrint
and
DOMCount, unless with -v=always, it gives out error message like "unkown
element...".
If u don't mind posting your code, it may help to identify what had
happened.
Regards,
Peiyong Zhang
_
I think the issue at hand here is really whether the SAX2 parser should
enable namespace processing by default. The core parser does not, and you
have to enable namespaces if you want to process them.
As for the more general issue, unless the W3C comes up with some way to
indicate inside the docu
Why do you want to do this? We found that no real improvement in performance
was gained from doing so, so it was considered a waste of space to do
otherwise.
--
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com
"I'm
Curt,
Your code looks fine to me, and is a nice enhancement. I think that it
should go in.
The existing loop was last touched by Dean (version 1.6), and before that
by me (version 1.5), and before that was Dean's original code. None of
the earlier versions are as tight as yours.
Andy Heni
> DOM_Element elem = static_cast(nodeList.item(i));
nodeList.item() is returning a DOM_Node by value. The value
that you are trying to cast doesn't have a usable memory
address at that point - it's just a temporary value in the
middle of an expression - so casting it to a reference type
doesn'
Is there away to adjust the Max len of the Element string without rebuilding
the Parser? I'm looking at changing:
enum Constants
{
kCharBufSize= 16 * 1024
, kRawBufSize = 48 * 1024
};
from internal/XMLReader.hpp, but I wanted to make sure that there is
I just refreshed myself on the namespace spec, and it's true that there are
a lot of "MUST" and "REQUIRED" statements about conforming documents. For
example, that a name with ":" MUST conform to the QName production for an
XML document to conform to the Namespace spec.
The question is, what abo
I am using DOM parser and I got the following error
"Expected comment or processing instruction" on perfectly legitimate XML
any ideas?
Thanks,
Alex Fridman
(212)771-1923
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
> When I run this through the SAX2 parser interface for Xerces,
> with default feature settings (which means namespace processing
> is on), I get the following fatal error:
>
> Fatal Error: The prefix 'xlink' has not been mapped to any URI#114 (3:29)
>
> I believe this is an overzealous interpreta
I think you are wrong. I think that the namespace spec very definitely says
that once namespace processing is turned on, colons in a name very
specifically mean that a prefix is being used. And it means that you can now
only have one colon in a name, and that some names cannot have any colons in
t
Here's a different namespace issue in Xerces-C. Consider the following simple input
file:
some text
Text
When I run this through the SAX2 parser interface for Xerces, with default featu
What compiler and OS is this running on because I still get a the following
compiler error when I try to do the cast that has been stated in this
multi-threaded email... I am running Mandrake linux 7.1 and my compiler is
GCC 2.95.3
xmlobject.cpp:446: conversion to non-const reference type `class
> So is it legal to do this:
>
>
>
>
>
No it isn't, post namespace rec. "" is a relative URI, and their use in
namespaces has been deprecated by the W3C, and their use is undefined in all
specs henceforth that decission. While technically it is legal to use
relative URIs in namespace decla
So is it legal to do this:
If so, then there would be no way to know that baz was in a namespace,
because it would look exactly the same. I know its kind of contrived, but
given that it can probably easly happen, it would have just made a lot more
sense to have a URL for the global names
I did notice that. It states that a beta release has support for them, but
where can that be found? As a registered OTN --
Oh, wait... upon visiting the "XML Parser for Java v2" download area,
"Oracle XML Parser for Java v2 on Windows NT- BETA" can be found, while the
"XML Parser of C++ v2" area
Read the FAQ. Go through all of the sample programs and carefully look at
what they do. Read up on the DOM and SAX APIs which are publically defined
APIs that the Xerces parser implements, so they are well documented
elsewhere. Since they are the most common ways to use the parser, you'll get
a lo
Definitely the Xerces-C implementation of schema is underway. Currently, The Oracle
XML Parser for C++ supports an previous working draft of XML schema, check
http://technet.oracle.com/tech/xml/xdk_cpp/index.htm
-
To unsubscrib
> But is there anything in the namespace spec that says that the URL for a
> namespace cannot be empty? I didn't see anything that said that, which is
> why I provided a real URL for the global namespace to map to. Personally I
> think that they should have provided one, since its not true that th
But is there anything in the namespace spec that says that the URL for a
namespace cannot be empty? I didn't see anything that said that, which is
why I provided a real URL for the global namespace to map to. Personally I
think that they should have provided one, since its not true that they
aren'
Hello,
I am new to xml and xerces-c. I support an api which sends requests and
receives replies
in the form of a data structure sent via tcp/ip sockets. I plan on
converting this api so that
requests and replies are sent in xml format. I have a few questions:
1. What is the best way to get
May I really work with the Java easily from within my C++ code?
Well, you have mentioned one of the major reasons I had dismissed Java as a
solution - it's slow. Most apps made in it are slow, and it has a reputation
for that.
The second reason would be that I don't know Java! ;p
I've had small
Cem, and the list,
>I don't know of a C++ solution to your problems, but if I might ask you
>this: can you mix the Java and C++ code you have together? Using the
>JNI you should be able to access the Java parser/whatever from C++.
I've recently found a problem on both Solaris and Redhat Linux
Read the FAQ again. You are mixing runtime libraries.
John
Erik Sloge wrote:
>
> Hi,
>
> I have created a COM component for Win32 using VC++ that incorporates the
> Xerces-C XML parser v1.4.0 from 1/30 2001. The distributed binary DLL:s are
> used. It runs perfectly all right when compiled in
I'm afraid the word of Dean Roddey _is_ your documentation ;)
He has, however, seemed to have answered every question regarding
transcoding on this list as well as IBM's discussion board, regardless of
redundancy. So, although I could not possibly speak for Dean, I must say
that, for now at least
I'm using the DOM to create an XML representation of my application's
documents. Certain components of these documents have no specific
ordering and are therefore stored internally in an essentially random
order. However the DTD (or schema) imposes a particular ordering on
everything, so to produc
I don't know of a C++ solution to your problems, but if I might ask you
this: can you mix the Java and C++ code you have together? Using the
JNI you should be able to access the Java parser/whatever from C++. The
downside will be speed to some degree (although on the mac and linux
sides, that sh
An ID must begin
with a letter, and underscore, or a colon. See http://www.w3.org/TR/2000/REC-xml-20001006#id and
http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name.
Xerces checks for this; apparently IE 5 and Notepad XML are failing to do
so.
-Original Message-From: pierre feuillo
Hi,
I have created a COM component for Win32 using VC++ that incorporates the
Xerces-C XML parser v1.4.0 from 1/30 2001. The distributed binary DLL:s are
used. It runs perfectly all right when compiled in debug mode, but when
compiling the DLL in Release mode, the SAX2XMLReader object that is cre
Hello,
I have a trouble about an XML file and two Xerces
examples (Sax2count, and Domcount).
I'm testing on PC with NT4 sp5, I'm using xerces
1.40 binary and examples, and visual c++ 6.0 sp4.
XML file:
]>
JOURX.DET.CUM.
JOURX.DET.CUM.
000
David,
I was making some namespace changes for schema, and may be that broke the default
namespace
behavior. Since the schema development is still in intermediate stage, some unstable
code may
introduce. I will try to fix it soon, but if possible, it is recommend you use the
stable
release X
The problem is that my SAX2 ContentHandler is being called with the URI. I
don't think that makes sense at all. If an element is not mapped to a
namespace, then it should not have a namespace URI passed to startElement
(). I also don't think that if I build an instance of a DOM from that same
Talking of transcoding, where are there docs or examples of how to use
the transcoder classes in Xerces. The class documentation has no
comments in at all.
John
Dean Roddey wrote:
>
> The best way to deal with this kind of thing is just to allow the buffer to
> expand as required. If you get a
Hello,I've been planning to use XML for data exchange in a ( C++
) project ofmine, and initially chose Apache's Xerces-C C++ library. This
was, however,before I knew much about XML at all. I've now read through most
of thetechincal details of XML and it's related technologies, and am in love
That's the URL for the xml prefix. Not sure how it started getting used for
the default namespace. The parser did, perhaps a little unconventionally,
assign a proprietary URL to the global namespace, if I remember correctly.
There wasn't one defined for it, and it didn't make any sense for it not
59 matches
Mail list logo