linker error with Xerces-C from CVS

2001-06-18 Thread Jason E. Stewart
Hey All, I just updated my xerces-c distro from CVS. I get a link error in all the sample applications: cd /home/jasons/work/xml-xerces/c/samples/ make -k Building SAXPrint cd SAXPrint ; make ; cd .. /home/jasons/work/xml-xerces/c/samples/SAXPrint make[1]: Entering directory `/home/jasons/work

AW: Can't rebuild samples / Problem with VC++

2001-06-18 Thread Wolfram Frei
Hi, with same configuration as yours I also had some problems first. As you have not included the vc++ message you have got, I can only tell what I have changed to solve my complie problems. I made the folling changes: file: XalanArrayKeyMap.hpp (include dir) line: 277 from: return m_

Re: Xerces 1.2.0

2001-06-18 Thread Nikita Sawant
Even though we have the patch installed we still have the server crash problem: Will  the following code cause any problems //implementation of the constructor. EcxStyleSheets::EcxStyleSheets(const char *fname):bad_(0){   errorMsg = NULL;   DOMParser parser;   parser.setValidationScheme(SAXParser

[Bug 2225] New: - assignment vs. comparison in if clause

2001-06-18 Thread bugzilla
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2225 *** shadow/2225 Mon Jun 18 18:59:51 2001 --- shadow/2225.tmp.21844 Mon Jun 18 18:59:51 2001 *** *** 0 --- 1,33 + ++ + | assignment vs. com

Re: SAX2XMLReader slows down during mutli-file parse loop...

2001-06-18 Thread jkakar
Hi, Further testing is yielding strange results... I've patched in the code specified in Bug #1329 (SAX2XMLReader leaking XMLBuffers). This has had no noticeable effect in speed. By the way, why have the changes specified in this bug not made their way into the release code? I've also changed

documentation of tests directory?

2001-06-18 Thread Artur.Klauser
Is there any documentation on the programs in the tests directory or any sort of regression test script that uses them? I don't seem to be able to find this in the FAQ, sources, or web pages. Thanks -r2r- - To unsubscribe, e-m

Re: xerces-c library for HP 11

2001-06-18 Thread Martin Kalen
- Original Message - From: "Karimeddini, Fereshteh" <[EMAIL PROTECTED]> > Is there a version of libxerces-c library for HP that links with > libCsup_v2.2? > If not, is it possible for us to build it in house while linking with > libCsup_v2.2? Fereshteh, I just did a quick test on HP-U

Re: converting DOM tree into XMLCh * string form ??

2001-06-18 Thread Joseph_Kesselman
This really ought to be on the FAQ page. Quick-and-dirty: Adapt the DOMPrint sample program. (Folks have done this repeatedly, so you should be able to swipe a copy from someone else.) For better results: Everyone seems to be waiting for Someone Else to volunteer to port the Serializer package

converting DOM tree into XMLCh * string form ??

2001-06-18 Thread anand awasthi
can we converting DOM tree into XML form (XMLCh * string form precisely )?? if yes coulsd some one pls show few bits of how to do that ?? __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ -

RE: problem in DOMPrint.cpp

2001-06-18 Thread MIke Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry for having long since gone off topic. DOM_node node = parser.getDocument(); std::ofstream _os("anand.txt",std::ios::app); _os << node; That oughta do it. Sometimes it's just easier to give a man a fish and be done with it. - -Original

Re: ElemStack.cpp

2001-06-18 Thread peiyongz
David, The memory leak fix to the addLevel() has been made and will be available in the next nightly built, thanks. Regards, Peiyong Zhang XML Parsers Development IBM Toronto Laboratory email: [EMAIL PROTECTED] Phone: (416)448-4088; Fax: (416)4

Re: > not getting escaped

2001-06-18 Thread Joseph_Kesselman
Even in SGML, I believe > is harmless as a text character except when combined into ]]> and not intended as the end of a CDATA Section. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: > not getting escaped

2001-06-18 Thread Joseph_Kesselman
The '>' character appearing in text almost never has to be escaped, either in XML or SGML; given the grammar of these langauges, it's harmless. See discussion in http://www.w3.org/TR/REC-xml#syntax It _could_ be escaped, that's harmless too. You'd waste a few bytes but the file might be a trifle

Re: How to create a documentType node with internal subset ?

2001-06-18 Thread Joseph_Kesselman
See the DOM spec, particuarly http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-Core-DocType-internalSubset DOM level 2 did not intend this field to be usable for anything more than "round-tripping" existing documents. It's stri

> not getting escaped

2001-06-18 Thread Jeff Paquette
I have to represent the string "" in xml. I create a node with the following code: name = xmlDoc.createElement("Name"); name.appendChild(xmlDoc.createTextNode(f->name)); where f->name is "". Using the code from the DOMPrint sample, the text output is: Notice

Re: Initialize & Terminate each Parser instance?

2001-06-18 Thread Joseph_Kesselman
>Should XMLPlatformUtils::Initialize and >Terminate be called for each Parser instance or only once per DOM session? Once per _application_ session. In other words, don't call terminate until you are done with Xerces. - To uns

ElemStack.cpp

2001-06-18 Thread Adams, David
Tinny, I just downloaded and compiled the Xerces-c 1.5 release code. I did NOT see Erik's fix for the 'addLevel()' memory leak when reusing the top stack row. I did see the fix in the destructor however. Has the 'addLevel()' fix been: A) overlooked, B) still in testing, C) fixed in a hig

Re: Initialize & Terminate each Parser instance?

2001-06-18 Thread David_N_Bertoni
You will save yourself and others lots of time by reading the FAQ: http://xml.apache.org/xerces-c/faqs.html or, more specifically: http://xml.apache.org/xerces-c/faq-parse.html#faq-25 Dave

SAX2XMLReader slows down during mutli-file parse loop...

2001-06-18 Thread jkakar
Hi, I'm using the SAX2XMLReader in an application that reuses the parser as it reads in several thousand XHTML files. I'm experiencing very fast parsing of the first few files but as it goes the time to parse gets longer and longer. The files are all roughly the same size. Initially files are p

RE: Initialize & Terminate each Parser instance?

2001-06-18 Thread Jesse Pelton
Initialize() and Terminate() should each be called once per process, as per http://xml.apache.org/xerces-c/faq-parse.html#faq-25. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to create a documentType node with internal subset ?

2001-06-18 Thread Peter A. Volchek
If creating XML document with DOM API, sometimes it is required to add DOM_DocumentType node to the DOM_Document. For eample, to create simple XML document ]> I would write: DOM_DOMImplementation& di = DOM_DOMImplementation::getImplementation(); DOM_DocumentType dtNode =di.createDocumentType(

Initialize & Terminate each Parser instance?

2001-06-18 Thread Houle, Dennis W
Team Xerces - I'm planning on instantiating temporary DOMParser objects, since I'll be parsing new documents infrequently relative to the amount of element processing during a "DOM session". Should XMLPlatformUtils::Initialize and Terminate be called for each Parser instance or only once per DOM

Can't rebuild samples

2001-06-18 Thread DUMOUCHEL David
The binary samples works well (under Win NT4) I ve just loaded Xalan/Xerces C++. I've got the right environment (VC6 + SP5 + Dinkumware) and i set up the path to the release directory. But i m still unable to build a sample such as 'Xalantransform'. In fact the compilation fails with 3 errors, an

Bug in Iconv and Iconv390

2001-06-18 Thread Michael Kopp
Hi guys, Xerces-C: 1.4.0 OS: NT4 SP6a, Sun Solaris 6,7,8 os390 Compiler: VC6 (NT) Sun Workshop Forte 4, 5 and 6U1 The compareNIString seems to compare one char to much: unsigned int n = 0; const XMLCh* c

RE: Bug in Iconv and Iconv390

2001-06-18 Thread Michael Kopp
Sorry, the return is not complete correct. if (n == maxChars) return 0; else return (int) ( towupper(*cptr1) - towupper(*cptr2) ); Sorry for that, Bye Mike Michael Kopp Financial Technologies International, Inc Development Center Austria A-4066 Pasching, Plus-Kaufstr.7, P.O.

RE: getNodeValue().transcode() - Explanation

2001-06-18 Thread Adams, David
Thank you. I fat-fingered that one. > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 12:28 PM > To: [EMAIL PROTECTED] > Subject: RE: getNodeValue().transcode() - Explanation > > > That should be: > >char* p = node.

RE: getNodeValue().transcode() - Explanation

2001-06-18 Thread David_N_Bertoni
That should be: char* p = node.getNodeValue().transcode(); std::string value(p); delete [] p; Since the pointer was allocated with new [], you must use delete []. You can get away with delete p using Visual C++, but on other platforms, your application will cra

RE: problem in DOMPrint.cpp

2001-06-18 Thread Awasthi, Anand
anand.txt gives me following o/p: nothing else -Original Message- From: Jeff Paquette [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: RE: problem in DOMPrint.cpp Try: std::ofstream xmlfile("anand.txt"); xmlfile <<

RE: problem in DOMPrint.cpp

2001-06-18 Thread David_N_Bertoni
You cannot create an instance of the class ostream -- it's an abstraction of an output "stream." You need an instance of a class _derived_ from ostream. One possible choice is std::cout, but there are many others. Please do yourself a favor and get a good book on C++, as this question has noth

RE: problem in DOMPrint.cpp

2001-06-18 Thread Jeff Paquette
Try: std::ofstream xmlfile("anand.txt"); xmlfile << "" << std::endl; DOM_node node = parser.getDocument(); xmlfile << node << std::endl; -- Jeff Paquette paquette at mediaone.net http://www.atnetsend.net > -Original Message- > From: Awasthi, Anand [mailto:[EMAIL PROTEC

Re: Redhat Linux 7.1

2001-06-18 Thread harm de laat
I had the same problem with my Redhat Linux 7.1 installation. Downloading and compiling XercesC 1.5 solved my problems. Good luck, Harm. [EMAIL PROTECTED] On Friday 15 June 2001 10:03 pm, you wrote: > Hello, > > I am trying to get the Xerces library to build on Redhat Linux 7.1. Are > you aware

RE: problem in DOMPrint.cpp

2001-06-18 Thread Awasthi, Anand
thanks ...and what about if i want this XML output to go to a file . lets say "anand.txt" -Original Message- From: MIke Wilson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: RE: problem in DOMPrint.cpp -BEGIN PGP SIGNED MESSAGE

RE: problem in DOMPrint.cpp

2001-06-18 Thread MIke Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here: DOM_node node = parser.getDocument(); std::cout << node; - -Original Message- From: Awasthi, Anand [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 12:23 PM To: '[EMAIL PROTECTED]' Subject:RE: problem in DOMPrint.cp

RE: problem in DOMPrint.cpp

2001-06-18 Thread Awasthi, Anand
okay i am executing following code in main() : DOM_node node = parser.getDocument(); ostream os; os << node; but even that is not working and gives following error message: error C2248: 'ostream::ostream' : cannot access protected member declared in class 'ost

RE: problem in DOMPrint.cpp

2001-06-18 Thread Awasthi, Anand
-Original Message- From: Erik Rydgren [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: RE: problem in DOMPrint.cpp Ehh? cout << os? Print an ostream on stdout? Is that really what you wanna do? ;) I think you were aiming at just: os <<

xerces-c library for HP 11

2001-06-18 Thread Karimeddini, Fereshteh
Hi, We are using the libxerces-c library for HP 11. Our application is compiled with aCC compiler and some of the modules are linked with the xerces library. We realized that the version of the xerces library that we have is linked with libCsup.2. And this is causing problem for us. All our modu

PATCH: fix headers install

2001-06-18 Thread Murray Cumming
Could someone please apply this patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1147 Murray Cumming [EMAIL PROTECTED] www.murrayc.com Get free email and a permanent address at http://www.netaddress.com/?N=1 -

Redhat Linux 7.1

2001-06-18 Thread Mike Becker
Hello, I am trying to get the Xerces library to build on Redhat Linux 7.1. Are you aware of any problems with this operating system? Here is the complete set of steps that I attempted. I apologize for the length of this but I didn't want to leave anything out. If there is another place to bring t

RE: Xerces and DLL?

2001-06-18 Thread Erik Schroeder
Erik, This may be a strange request, and I'm sorry to bother you, but for some reason I have had difficulty getting through to the Xerces list as of late. If this fails to make it to the list, would you mind posting it for me? Thanks, Erik - Perhaps

RE: problem in DOMPrint.cpp

2001-06-18 Thread Evert Haasdijk
Anand, If you want to write to cout, just use DOM_Node node = parser->getDocument(); cout << node; ta, evert > -Original Message- > From: Awasthi, Anand [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 16:58 PM > To: '[EMAIL PROTECTED]' > Subject: problem in DOMPrint.cpp > >

RE: problem in DOMPrint.cpp

2001-06-18 Thread Erik Rydgren
Ehh? cout << os? Print an ostream on stdout? Is that really what you wanna do? ;) I think you were aiming at just: os << node; I know you can go totally blind when debugging your own code. Regards Erik Rydgren -Original Message- From: Awasthi, Anand [mailto:[EMAIL PROTECTED]] Sent: d

RE: getNodeValue().transcode() - Explanation

2001-06-18 Thread Adams, David
A note of caution. I noticed one suggestion as this: std::string value(node.getNodeValue().transcode()); This will cause a memory leak if you use this method. 'std::string' makes it own copy of the returned string and it's destructor does not delete the char* returned by 'transcode()'.

problem in DOMPrint.cpp

2001-06-18 Thread Awasthi, Anand
Hi, I am trying to run the DOMPrint.cpp sample for generating XML from DOM tree. this sample declares and defines three following functions for this purpose: ostream& operator<<(ostream& target, const DOMString& toWrite); XMLFormatter& operator<< (XMLFormatter& strm, const DOMString& s); an

RE: Xerces and DLL?

2001-06-18 Thread Erik Rydgren
Sorry I haven't answered earlier. This error can depend on so many things. My suggestion is that you get yourself a good C++ compiler and debugger. I use Visual studio myself. Build the Xerces dll yourself and debug the code to find out exacly what the problem is. Sorry that I can't be of more he

Re: xerces-c-src_1_1_0

2001-06-18 Thread peiyongz
Gaelle, You can find useful information on how to build the Xercesc lib and samples as well at http://xml.apache.org/xerces-c/build-winunix.html#faq-1. BTW, is there any particular reason for you to use 1.1? Xercesc1.5 is available now. Regards, Peiyong Zhang __

Re: getNodeValue().transcode() - Explanation

2001-06-18 Thread Peter A. Volchek
> Thank you everybody. > > I only typed two possibilities ("John" and "Tom") only not > to write too much, but the fact is that I've got 9 > possibilities, and I do not want to use if-then-else, but > switch-case. > > I tested with: > value = attr.getNodeValue().transcode() > if (strcmp(value,"J

Re: getNodeValue().transcode() - Explanation

2001-06-18 Thread Carl_Erhorn
Hi, XML-Man. Sure, Switch-case is more elegant, but it won't work. The ANSI C specification says that switch can only be used with an integer type, not a string or c-string. Whatever solution you use, you must use some type of comparison for strings, such as strcmp, or one of the utility funct

[ANNOUNCEMENT] Xerces-C 1.5.0 is now available

2001-06-18 Thread Tinny Ng
Everyone, This is to announce the much awaited release Xerces C 1.5.0 which brings Schema Subset Support to Xerces-C! Highlights of this version: - Schema Subset Support (see http://xml.apache.org/xerces-c/schema.html for list of supported features). - Mac OS X command line configuration a

Re: getNodeValue().transcode() - Explanation

2001-06-18 Thread XML Man
If that is true, I am not to care about it anymore. Thank you very much. ___ Tu correo gratuito en HispaVista - http://www.hispavista.com/altacorreo/ - To unsub

RE: getNodeValue().transcode() - Explanation

2001-06-18 Thread Jesse Pelton
It would be elegant if the language permitted switching on a string, but it doesn't. In my mind, cascading if-else statements are not inelegant if they are what is required to get the job done. If you are concerned about efficiency (as you should be), you should take advantage of the else clause

Re: getNodeValue().transcode() - Explanation

2001-06-18 Thread tbentley
Many times compilers generate the same code for switch statements as they do for if-then-else blocks.   If the compile doesn't care, why should you. If you really want to use a switch, you can add extra code that creates a Standard Template Library map (#include ).  You can then map your list of

RE: xerces-c library for HP 11

2001-06-18 Thread Karimeddini, Fereshteh
Hi, We are using the libxerces-c library for HP 11. Our application is compiled with aCC compiler and some of the modules are linked with the xerces library. We realized that the version of the xerces library that we have is linked with libCsup.2 and libstream.2. And this is causing problem for

getNodeValue().transcode() - Explanation

2001-06-18 Thread XML Man
Thank you everybody. I only typed two possibilities ("John" and "Tom") only not to write too much, but the fact is that I've got 9 possibilities, and I do not want to use if-then-else, but switch-case. I tested with: value = attr.getNodeValue().transcode() if (strcmp(value,"John")==0)... if (str

Re: getNodeValue().transcode()

2001-06-18 Thread Carl_Erhorn
Hi! char *value; value = attr.getNodeValue().transcode(); if (strcmp( "John", value ) == 0 ) { printf("Your name is John\n"); } if (strcmp( "Tom", value ) == 0) { printf("Hello, Tom!\n"); } etc. Regards, --Carl

RE: doubt!!!

2001-06-18 Thread Hespelt, Steve (Exchange)
If you ldd & nm on your box, they are very useful tools for tracking down library problems. use ldd -v your-executable-name Does the output indicate that ldd found the libxerces-c1_3.so? If so, where? run nm -C on the file given in the ldd output. Grep it for 'XMLScanner::updateNSMap'. Is in defin

RE: doubt!!!

2001-06-18 Thread Co-op DI
I just follwed the instructions on the XERCES Website to build the instructions. And While doing that I did not get any errors. IS there any other way that I should build the libraries.Please let me know if there is a way!! Saurabh. -Original Message- From: Tinny Ng [mailto:[EMAIL PROTEC

Re: getNodeValue().transcode()

2001-06-18 Thread Martin Kalen
- Original Message - From: "Miroslaw Dobrzanski-Neumann" <[EMAIL PROTECTED]> > In the previous mail I have redeclared "value" to > std::string value(transcode()); Sorry, my bad - I was all "C mode" after reading the previous replies and did not see your string class declaration. > t

xerces-c-src_1_1_0

2001-06-18 Thread Yven, Gaelle
Hi! I'm using the xerces-c-src_1_1_0 version and I would like to create my = own project The problem is that I don't know where it has to be created to = be sure that the libraries are recognized I have created it in = xerces-c-src_1_1_0/projects/win/VC/xerces-c-src_1_1_0 but I can't compile it be

Re: getNodeValue().transcode()

2001-06-18 Thread Miroslaw Dobrzanski-Neumann
On Mon, Jun 18, 2001 at 09:53:59PM +1000, Martin Kalen wrote: > - Original Message - > From: "Miroslaw Dobrzanski-Neumann" <[EMAIL PROTECTED]> > > switch () > > expects an integral (bool, enum, int, ...) type not an array. > > Correct... > > > what about this: > > if ("John" == value) >

Re: getNodeValue().transcode()

2001-06-18 Thread Martin Kalen
- Original Message - From: "Miroslaw Dobrzanski-Neumann" <[EMAIL PROTECTED]> > switch () > expects an integral (bool, enum, int, ...) type not an array. Correct... > what about this: > if ("John" == value) I would say "nay" to this considering all the side effects of pointer comparison.

Re: getNodeValue().transcode()

2001-06-18 Thread Miroslaw Dobrzanski-Neumann
On Mon, Jun 18, 2001 at 02:36:04PM +0300, Peter A. Volchek wrote: > > Hi! > > > > I'm trying to parse the value of a Node by using this piece > > of code: > > > > char *value; > > value = attr.getNodeValue().transcode(); > > switch (value) { > > case "John": > > printf("Your name is

Re: getNodeValue().transcode()

2001-06-18 Thread Peter A. Volchek
> Hi! > > I'm trying to parse the value of a Node by using this piece > of code: > > char *value; > value = attr.getNodeValue().transcode(); > switch (value) { > case "John": > printf("Your name is John\n"); > break; > case "Tom": > printf("Hello, Tom!\n"); > break; > } > > But I get this error: >

Re: getNodeValue().transcode()

2001-06-18 Thread Stefan Berglund
Hi, try: char *value; value = attr.getNodeValue().transcode(); if (strcmp(value, "John") == 0) { printf("Your name is John\n"); } else if (strcmp(value, "Tom") == 0) { printf("Hello, Tom!\n"); } ... delete[] value; Since char * cannot be used in switch() expressions, as it says in the e

Re: getNodeValue().transcode()

2001-06-18 Thread Peter A. Volchek
> Hi! > > I'm trying to parse the value of a Node by using this piece > of code: > > char *value; > value = attr.getNodeValue().transcode(); > switch (value) { > case "John": > printf("Your name is John\n"); > break; > case "Tom": > printf("Hello, Tom!\n");

internalSubset: continue (to Xerces team)

2001-06-18 Thread Peter A. Volchek
In my previous message I reported an error when extra whitespaces appear in the docType internal subset. The problem is in DTD\DTDScanner.cpp Method: void DTDScanner::scanAttListDecl() I've slightly modified this function (see attachments) to get rid of this bug. The following problem(?) I've di

getNodeValue().transcode()

2001-06-18 Thread XML Man
Hi! I'm trying to parse the value of a Node by using this piece of code: char *value; value = attr.getNodeValue().transcode(); switch (value) { case "John": printf("Your name is John\n"); break; case "Tom": printf("Hello, Tom!\n");