DOMString has no member functions called print() or println(). You need to
transcode the string and use that value.
void
printValue(DOM_Node node, ostream& stream)
{
if (node.isNull() == false)
{
char* const data = node.getNodeValue().transcode();
stream << data;
Sorry, but polymorphism has _everything_ to do with dynamic casting. If a
class has no virtual functions, it's not polymorphic, and you cannot use
dynamic_cast to do run-time type introspection.
If you don't believe me, why don't you try to put some of that code you've
been posting through your
The XML declaration is not a processing instruction, it only looks like one.
It really isn't appropriate for it be to in the DOM since it describes how
the document is encoded in a particular file. For example, if you read an
XML document that is encoded in ISO-8859-1, it ceases being encoded in
That did the trick for the DOCTYPE declaration, but I still don't have an
processing instruction.
I'm building a DOM tree in memory, then writing it to disk using code
snitched from DOMPrint. All the nodes and now the doctype declaration are
output just fine (thanks again), but there is no line
Most people are moving towards WSDL rather than Schema's (although
WSDL contains Schema information). A number of existing
implementations will check that the request / response conforms to the
schema defined in the WSDL, although the current crop of tools only
support a fairly small subset of th
Entity nodes have no node value. You have to examine their children. See
the DOM spec for detalis.
(Same is true of Element nodes.)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
class CDOM_EXPORT DOM_Entity: public DOM_Node {
.
.
.
.
};
polymorphism has nothing to do with dynamically casting up and down a class
heirarchy tree. You might want to downcast to access methods in the derived
type, they don't have to be polymorphic methods.
> -Original Message-
> From
its wrong
should be
node.getNodeValue().print();
but even that does not work ??
-Original Message-
From: Adams, David [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 4:31 PM
To: '[EMAIL PROTECTED]'
Subject: RE: sample for down casting DOM_Node to DOM_Entity ??
Try this:
Hi,
I have following entity node defined:
when i try to get the length of Node value ("This is subtitution input
text").
i use getNodeValue().length().
I get 0 why ??
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 4:0
Try this:
DOM_Node node;
cout << node.getNodeValue().print(); // no linefeed
cout << node.getNodeValue().println(); // linefeed
> -Original Message-
> From: Awasthi, Anand [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 3:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: samp
Hi Jeff,
I was able to get the DOCTYPE by doing something like the following (notice
that it is my doctype instance being passed into createDocument():
DOM_DOMImplementation impl;
DOM_Documentdoc;
DOM_DocumentTypedoctype;
//create
Hi,
I'm new to xml and xerces. I am trying to generate an xml file from a
database and have been able to generate well-formed xml using xerces, but
the file does not have a DOCTYPE declaration nor the processing
instruction.
I've managed to get a DOCTYPE declaration generated, but it's ugly:
You cannot use dynamic_cast with DOM_Node because it is not a polymorphic
type. If your compiler lets you do this, you should throw it out and get a
new one. The whole reason for using dynamic_cast is that you want run-time
type casting, not compile-time type casting, so if this doesn't compile
oknow how do i print the Node value on console...
could you pls give some exapmle code ??
or
getNodeValue().transcode() is the only way ??
-Original Message-
From: Adams, David [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 3:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE
Yes, you should be safe doing it that way. That eliminates my earlier theory
about your screen memory being corrupt. Back to the debugging board on that
one.
> -Original Message-
> From: Awasthi, Anand [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 3:50 PM
> To: '[EMAIL PROTECT
yeah i did that already and then i used old style casting and
i think that should be safe at least this case ...am i correct ??
-Original Message-
From: Adams, David [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 3:49 PM
To: '[EMAIL PROTECTED]'
Subject: FW: sample for down cas
> Also, you may want to use the DOM_Node method DOM_Node::getNodeType() and
> do
> a switch on the result to find out what you are really dealing with.
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
No it is not safe. That is the old style of casting. With that style I could
do something like this:
int x = 1;
DOM_Node n = (DOM_Node)x; // which you know is not right.
I suggest you use the following:
DOM_Entity domen = dynamic_cast(node);
If it doesn't compile, it may be that the compiler is t
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2014
*** shadow/2014 Wed Jun 6 09:38:41 2001
--- shadow/2014.tmp.21762 Fri Jun 8 13:34:31 2001
***
*** 41,43
--- 41,49
Debug Error!
Damage: after normal block (#531) at "hex address"
+
+ --- Additional Com
thanks guys...
i tried
DOM_Node node;
DOM_Entity domen = (DOM_Entity &)(node);
its compiles...but is this safe ??
later on i want to print PublicId and SystemId associated with this Entity
node and
i coded following:
cout << "public id " << ((DOM_Entity &)node).getPublicId().transcode() <
Curt is correct, in that I am assuming you know that the Node is an
DOM_Entity type node and was passed around your code as a DOM_Node and you
simply want to get its derived type back. If you do not know what type it
really is, you do have to check it. The VC++ macro "DYNAMIC_DOWNCAST" is
another
>And my doubt is, where can I found the methods
>setDoNamespaces and setDoSchema.
>In the package that you distributed, the xerces 1.4.0,
>they don´t exist in the API of class DOMParser.
They're in the API documentation (see
http://xml.apache.org/xerces-c/apiDocs/class_DOMParser.html), and I bel
DOM_Node n = // some node;
DOM_Entity e = dynamic_cast(n);
I do not know what compiler you are using, but you will need to set the /GR
switch on VC++ compilers. This is done by going to Project->settings, select
the C/C++ tab, select the C++ Language category, and click on "Enable
Run-Time Type I
There is not a clean way to do it in the current
code base that would mimic
DOM_Entity entity = (DOM_Entity) node;
in Java. To do this, we would need an
DOMNode::operator DOM_Entity() that
would throw an exception if the node
type was inappropriate.
The best you can do, is to check the node
t
Hi,
could someone pls provide sample code for down casting DOM_Node to
DOM_Entity ??
thanks
Anand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2083
*** shadow/2083 Fri Jun 8 11:55:32 2001
--- shadow/2083.tmp.21504 Fri Jun 8 11:55:32 2001
***
*** 0
--- 1,25
+ ++
+ | why it take long t
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1693
*** shadow/1693 Sun May 20 17:27:07 2001
--- shadow/1693.tmp.21282 Fri Jun 8 10:57:46 2001
***
*** 1,19
! Bug#: 1693
! Product: Xerces-C
! Version: 1.4
! Platform: Other
! OS/Version: AIX
! Status: NEW
! Resolution:
I have attempted to unsubscribe myself from this list and every few days I end
up on it again.
What is going on here?
Jonathan
Reply Separator
Subject:I have a doubt! Can you help me?
Author: [EMAIL PROTECTED]
Date: 6/6/2001 2:41 PM
Greetings
use nightly build, v1.4 does not support schema yet ...or wait for v1.5
supposed to be launched shortly.
regards,
alfredo
-Original Message-
From: Nelson Miranda Pinto [mailto:[EMAIL PROTECTED]]
Sent: Miércoles, 06 de Junio de 2001 09:41 a.m.
To: [EMAIL PROTECTED]
Subject: I have a doub
We are using Xerces on Solaris 8 and it builds succesfully. We built it
using Forte 6. Of course, it was not success on the first go but after some
digging we got it to work.
So if you have not done the following, then it may be worthwhile trying out
it first:
1> Run the script runConfigure as fo
Look at the MemParse example.
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-Original Message-
From: Simon Gagnon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 8:34 AM
To: [EMAIL PROTECTED]
Subject: Parsing string instead of document
At 12:29 PM 6/8/2001, Dean Roddey wrote:
>I think you are being a little overly anal there dude. Having messages be in
>semi-psuedo English isn't a bad thing. I think we can spare the extra three
>words in order to have a little friendlier message?
That might be, but I don't see the point in havi
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 14:09:02 2001
--- shadow/2032.tmp.12112 Wed Jun 6 14:11:08 2001
***
*** 5,11
| Status: NEW Version: 1.4 |
| Resolution:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2043
*** shadow/2043 Wed Jun 6 17:28:36 2001
--- shadow/2043.tmp.12618 Wed Jun 6 17:28:36 2001
***
*** 0
--- 1,31
+ ++
+ | XMLFormatter unall
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 10:41:07 2001
--- shadow/2032.tmp.11846 Wed Jun 6 13:01:47 2001
***
*** 30,32
--- 30,37
it seems that DOMString::gLiveStringHandleCount never get down to zero
so no memory is ever
I've been trying to - why ?
Martin
-Original Message-
From: Vikas Jolly [mailto:[EMAIL PROTECTED]]
Sent: 05 June 2001 17:47
To: [EMAIL PROTECTED]
Subject: Anyone using C and XML
Hi anyone
Is there anyone who is using C and XML ??
thanks
vikas
__
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 10:13:55 2001
--- shadow/2007.tmp.5957Tue Jun 5 10:15:29 2001
***
*** 80,82
--- 80,86
> nmake /f makefile.mak
this note referes to the following attachement named testCase.zip
+
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 09:16:57 2001
--- shadow/2007.tmp.5653Tue Jun 5 09:18:10 2001
***
*** 53,55
--- 53,60
DOM_Text lText2 = lDoc.createTextNode("ailsdfjoaiuopsdi dfasd"); <-- Not
crashes
+
+
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 08:56:04 2001
--- shadow/2007.tmp.5529Tue Jun 5 08:56:04 2001
***
*** 0
--- 1,24
+ ++
+ | Encoding iso-8859-
Hello,
We are having problem with linkage of program C ( Pro*C) using XML on
SunSolaris
( same code works in production on NT )
I apply error message and compilation script
Could you suggest any solution to this problem,
Thank you in advance
(See attached file: errlog.txt)(See attached fil
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 08:56:04 2001
--- shadow/2007.tmp.Tue Jun 5 08:57:50 2001
***
*** 22,24
--- 22,28
to UTF-8 it works ok
It is important to use the server.cpp with the hebrew words that are typ
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 14:06:44 2001
--- shadow/2032.tmp.12096 Wed Jun 6 14:09:02 2001
***
*** 40,42
--- 40,49
--- Additional Comments From [EMAIL PROTECTED] 2001-06-06 14:06
---
Created an attac
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 13:01:47 2001
--- shadow/2032.tmp.11878 Wed Jun 6 13:21:27 2001
***
*** 1,5
++
! | DOMString Memory Leak
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 10:15:29 2001
--- shadow/2007.tmp.5988Tue Jun 5 10:21:40 2001
***
*** 84,86
--- 84,91
--- Additional Comments From [EMAIL PROTECTED] 2001-06-05 10:15 ---
Created an attach
Hi,
We are very interested in using the "Load and Save" API as defined in
the DOM Level 3 specification.
Is the implementation of DOM Level 3 in Xerces-c is foreseen and
when ?
Thanks for your help
--
Jean-Marc Gerber
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 09:18:10 2001
--- shadow/2007.tmp.5941Tue Jun 5 10:13:55 2001
***
*** 58,60
--- 58,82
--- Additional Comments From [EMAIL PROTECTED] 2001-06-05 09:18 ---
Created an attach
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 08:57:50 2001
--- shadow/2007.tmp.5563Tue Jun 5 08:58:23 2001
***
*** 26,28
--- 26,33
--- Additional Comments From [EMAIL PROTECTED] 2001-06-05 08:57 ---
Created an attach
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2014
*** shadow/2014 Tue Jun 5 14:23:50 2001
--- shadow/2014.tmp.8945Tue Jun 5 14:23:50 2001
***
*** 0
--- 1,37
+ ++
+ | "user breakpoint c
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 13:21:27 2001
--- shadow/2032.tmp.12072 Wed Jun 6 14:06:44 2001
***
*** 35,37
--- 35,42
Oups.
In fact , I finally discovered that it happens only when the XML contains a DTD
like
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2007
*** shadow/2007 Tue Jun 5 08:58:23 2001
--- shadow/2007.tmp.5641Tue Jun 5 09:16:57 2001
***
*** 31,33
--- 31,55
--- Additional Comments From [EMAIL PROTECTED] 2001-06-05 08:58 ---
Created an attach
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2012
*** shadow/2012 Tue Jun 5 11:01:09 2001
--- shadow/2012.tmp.6504Tue Jun 5 11:01:09 2001
***
*** 0
--- 1,51
+ ++
+ | Internal Compiler
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2021
*** shadow/2021 Wed Jun 6 02:10:59 2001
--- shadow/2021.tmp.9901Wed Jun 6 02:10:59 2001
***
*** 0
--- 1,22
+ ++
+ | Janitor/MemBufInpu
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2021
*** shadow/2021 Wed Jun 6 02:10:59 2001
--- shadow/2021.tmp.9916Wed Jun 6 02:17:49 2001
***
*** 20,22
--- 20,26
ReaderMgr::createReader method and once in the DTDScanner::scanDocTypeDecl
method. When I the
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2032
*** shadow/2032 Wed Jun 6 10:41:07 2001
--- shadow/2032.tmp.11577 Wed Jun 6 10:41:07 2001
***
*** 0
--- 1,32
+ ++
+ | DOMString Memory L
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2014
*** shadow/2014 Tue Jun 5 14:23:50 2001
--- shadow/2014.tmp.11382 Wed Jun 6 09:38:41 2001
***
*** 35,37
--- 35,43
Kyle Danielson
Paragon Voice Systems
+
+ --- Additional Comments From [EMAIL PROTECTED
Greetings !
I´m a portuguese programmer and I have a little doubt.
In your webSite I found the code I have to use for
parsing an xml document with its schema, which is :
Here is an example how to turn on schema processing
in DOMParser (default is off). Note that you must also
turn on namesp
Is it possible to encode and parse string instead of document with this xml
parser.
We are developping an application and want to exchange data from client to
server (with ACE-TAO, implementation of CORBA). Some data are know and pass
with known structure, but we want to pass unknown data with
If you have any luck with this please let the
list know. I've been looking for an OS/390 classic
port of any parser for a couple of days and, to my
surprise, have had little success.
M.Gerdes
[EMAIL PROTECTED]
-Original Message-
From: Christoffer Dam Bruun [mailto:[EMAIL PROTECTED]]
I am Working with solaris 2.8 and using CC
I can not build may code. Hereby attached is the Make and errors
CC loadert.o loadfunc.o DOMTreeErrorReporter.o -o mqbloader -L. -lmqm
-lmqmcs -lmqmzse -lm -lsocket -lc -lgen -L/usr/ccs/lib -L/opt/SUNWspro/lib/
-L/home/mqbroker/xerces-c1_4_0-SolCC/lib
I think you are being a little overly anal there dude. Having messages be in
semi-psuedo English isn't a bad thing. I think we can spare the extra three
words in order to have a little friendlier message?
--
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
---
In the exception messages for the parser, there is one in particular which
bothers me.
Since all the exception types end in "Exception", I'd rather see the
abbreviated form:
There are several misspellings in the errors as well ("occured"), which
could probably be fixed with a spellchecker
At 10:28 AM 6/8/2001, you wrote:
>[sp]>: I have a construct like this. But my main Problem is, that Delphi
>even fails to step over the LoadLibrary Line (error code: 998
>ERROR_NOACCESS). The Lib is there, thats not the point. I tryed it, when i
>removed the Xerces DLL´s from my Directory and it t
At 08:41 AM 6/8/2001 -0700, you wrote:
>AFAIK, no one is building SOAP engines with validation, in which case
>Xerces works fine.
This should help in the short term.
Longer term...inter-enterprise SOAP based communication without
validation...pretty scary stuff...
>[1] has a list of SOAP imple
I have now converted my application to link against the .lib file for my dll
(instead of using LoadLibrary) and now my reports of memory leaks are gone.
I still get the memory leaks if I use LoadLibrary, but I don't think this
will be a problem for me. I'm including the VC++ debug output from a r
AFAIK, no one is building SOAP engines with validation, in which case
Xerces works fine. [1] has a list of SOAP implementations, you might
want to take one of these as a starting point.
Cheers
Simon
www.pocketsoap.com
[1] http://www.soapware.org/directory/4/implementations
On Fri, 08 Jun 2001 1
Hi Chris!
Answers are in the Text below marked with [sp]>:
BEST regards,
Sascha
-Originalnachricht-
Von: Chris Hill
An: [EMAIL PROTECTED]
Gesendet: 08.06.01 17:02
Betreff: Re: Problems with Xerces 1.4.0 and VC++ 6.0
It's hard to say what the problem is without more details. What is t
It's hard to say what the problem is without more details. What is the
exception it throws? Is this only under the debugger? Xerces does throw
exceptions internally. Perhaps Delphi's debugger is showing these internal
exceptions.
Are you sure you are declaring the C++ function with the sam
I need to develop a C++ XMLP/SOAP 1.1 client ASAP. The SOAP schemas have
been updated for http://www.33.org/2001/XMLSchema. Is anyone successfully
parsing SOAP or know if the parser is capable yet ? From the FAQ, it
appears it is not ready.
Best guess re: when it will be ready ?
Cheers,
-
Markus,
You need gmake to do the installation, see
http://xml.apache.org/xerces-c/build-winunix.html#faq-3,
good luck.
Regards,
Peiyong Zhang
XML Parsers Development
IBM Toronto Laboratory email: [EMAIL PROTECTED]
Phone: (416)448-4088;
Hi!
I have a big problem using Xerces 1.4.0 with Visual C++ 6.0 (SP 4) and
Windows 2000 Pro.
I want to build a DLL, witch implements the xerces .lib-files (and so calls
the xerces dll´s)
Now, when I try to load the DLL with Delphi (its an C++ with 'extern "C"'
calls in it), it throws me an Expect
My situation is that I am loading my dll, but not making any calls to it (so
therefore it isn't making any xerces calls. If I do this AND make at least 1
xerces call (I'm testing with createDocument) I will get memory leaks
reported.
If I either don't load the dll OR take the xerces call out of m
Hi!
I´ve installed Xerces-C, set the environment variables and run the
configure-script on AIX 4.3.
Now when I try to run make (gmake´s not installed) I get several errors (see
down below). What´s the problem? Do I need gmake?
Thanks
/Markus
Errors:
utv01_utv1 >make
"../Makefile.incl", line 64:
I'm using Xerces-C 1.4
I've been following this issue closely as I am running BOUNDS checker on my
app which is reporting leakage by Xerces.
I suppose a possibility, in your case, is that Xerces does some allocation
and returns the allocated memory to the caller, who is suppose to be
responsib
73 matches
Mail list logo