Re: Xerces and BCB

2002-02-15 Thread Andrew Snare
At 12:31 PM 14/02/2002 -0800, Tinny Ng wrote: >As a general proposal, how about we exclude any out-dated project files like >BCB4, Vacpp in the source package distribution but still leave them in CVS in >case some users need them? It is confusing to ship some project files >that are >out-of sync

Re: specifying encoding for the parser

2002-02-15 Thread Alberto Massari
At 17.33 14/02/2002 -0800, you wrote: >Hello > Is there a way I can specify the encoding for the xerces pareser. What >happens if the >XML document being parsed does not contain the starting >tag which normally specifies the >encoding ? In this case Xerces will try to guess the encoding follo

DO NOT REPLY [Bug 6092] - stricmp and strnicmp not present in FreeBSD

2002-02-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: Xerces and BCB

2002-02-15 Thread Don Mastrovito
It is my intention to always have BCB6 spit out a make file. It should be compatible with the free Borland's free C++ compiler. The same version of make is used for both BCB5 and 6. Don At 09:32 AM 2/15/2002 +0100, you wrote: >At 12:31 PM 14/02/2002 -0800, Tinny Ng wrote: >>As a general prop

Re: new xerces libraries

2002-02-15 Thread Jason Jesso
WOW! What a difference! The program SZ does not move at all. Before the for loop I initialize the xml platform stuff, inside the loop I call new DOMParser, parse a file, then delete the parser, and so on with the next loop. With the older libraries the SZ was increasing by 200K on each itera

Inquiry

2002-02-15 Thread paresh prakash patil
Sir; I am facing some problems in using xerces-c1.4 on linux 7.1 but it is working fine on 7.0.can you tell me what the problem might be or can u tell me whether u have any version of xerces-c which runs fine on linux 7.1. Thanking You, Regards, Paresh Patil. ---

Proposal: C++ Language Binding for DOM Level 2 - in term of IDOM

2002-02-15 Thread Tinny Ng
Hi, W3C DOM Recommendation has only defined JAVA and ECMAScript language bindings.   For all other languages, W3C has links to binding owners' web sites in http://www.w3.org/DOM/Bindings. In order to populate Xerces-C++ IDOM as a formal C++ language binding to more open source users, I would like

compatibilty

2002-02-15 Thread Jason Jesso
Now that I am using the latest xerces ibm xml libraries I get the following compile error with the same piece of code that worked with a previous xerces libraries. I do this: DOM_Document doc = parser->getDocument(); DOM_NodeList nl = doc.getElementsByTagName("ACTION"); DOM_Element thisAction =

Building XML documents

2002-02-15 Thread chris . m . dodson
Hi: The samples show clearly how to parse an existing xml doc, what about a sample that shows how to create an xml doc. e.g. Add an element, here's the value to use Add an attribute to this element etc. Does the Xerces API support this sort of thing ? Regards, Chris ---

Re: compatibilty

2002-02-15 Thread David N Bertoni/CAM/Lotus
Do this instead: DOM_Element thisAction = (const DOM_Element &) nl.item( actionNum ); Casting an rvalue to a non-const reference is illegal in C++, so perhaps you've changed/upgraded your compiler? Dave

Re: compatibilty

2002-02-15 Thread Jason Jesso
I tried the const thing, but I get the same error. When I wrote this piece of code I used a previous version of ibm xerces for C++ and it compiles fine. I am now using the new ibm xerces libraries, since there were memory leaks in the older libraries. Now I get this compile time error. I am no

Re: compatibilty

2002-02-15 Thread Jason Jesso
In fact the error I get now is: An rvalue of type "DOM_Node" cannot be converted to "const DOM_Element &". Jason Jesso wrote: > I tried the const thing, but I get the same error. > > When I wrote this piece of code I used a previous version of ibm xerces for C++ and >it compiles > fine. > > I

RE: compatibilty

2002-02-15 Thread Dave Connet
Try just casting to a (DOM_Element) DOM_Element thisAction = (DOM_Element)nl.item(actionNum); item() returns a DOM_Node, not a DOM_Node&. Dave Connet > -Original Message- > From: Jason Jesso [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 9:01 AM > To: [EMAIL PROTEC

Re: compatibilty

2002-02-15 Thread David N Bertoni/CAM/Lotus
OK, have you included the header file for DOM_Element? Dave "Jason Jesso"

Re: Building XML documents

2002-02-15 Thread Tinny Ng
see sample CreateDOMDocument. Tinny [EMAIL PROTECTED] wrote: > Hi: > > The samples show clearly how to parse an existing xml doc, what about a > sample that shows how to create an xml doc. > > e.g. > > Add an element, here's the value to use > Add an attribute to this element etc. > > Does the

Re: Building XML documents

2002-02-15 Thread Joseph Kesselman/CAM/Lotus
See the archives for past discussion of DOM and SAX serializers. Last I knew, we still didn't have an official equivalent of the serializer classes provided with Xerces-J, and folks were getting by with adaptations of the primitive versions provided in the sample programs, or trying to adapt the

RE: xercesc on hpux 11 with gcc

2002-02-15 Thread Bhushan Khanal
Yes the "-D__POSIX_C_SOURCE=199506L" option did the trick. We even use the IDOM and that is working fine. Patch-diff and a bugzilla to follow. Thanks! Bhushan -Original Message- From: Martin Kalen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:07 PM To: [EMAIL PROTECTED]

Re: compatibilty

2002-02-15 Thread Jason Jesso
Yes, it is. If I didn't I don't it would compile with the older libraries. David N Bertoni/CAM/Lotus wrote: > OK, have you included the header file for DOM_Element? > > Dave > > > "Jason Jesso" > atrix.com> cc:

Re: compatibilty

2002-02-15 Thread Jason Jesso
That doesn't work either. I get the following errors when I do that: "iMtxDOM.cpp", line 325.57: 1540-1280 (S) An rvalue of type "DOM_Node" cannot be converted to "DOM_Element". "iMtxDOM.cpp", line 325.57: 1540-0218 (I) The call does not match any parameter list for "DOM_Element::DOM_Element". "

RE: compatibilty

2002-02-15 Thread Dave Connet
Oops. It's been awhile since I wrote similar code. My stuff has been compiling and working for months, so I haven't looked at it... Coffee must be slow kicking in today! On a different note, Xerces 1.6.0 compiles pretty nicely using VC7. All those nasty stl warnings are gone so you can actually s

Re: compatibilty

2002-02-15 Thread Keyur Dalal
Try: DOM_Node node = static_cast( nl.item( actionNum ) ); Keyur - Original Message - From: "Jason Jesso" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 12:42 PM Subject: Re: compatibilty > I tried the const thing, but I get the same error. > > When I wrot

Re: compatibilty

2002-02-15 Thread Jason Jesso
I did that. The error I get now is: "iMtxDOM.cpp", line 327.58: 1540-1280 (S) An rvalue of type "DOM_Node" cannot be converted to "DOM_Node &". "iMtxDOM.cpp", line 327.58: 1540-1290 (I) An rvalue cannot be converted to a reference to a non-const type. I don't know. I am no C++ expert. It seem

RE: compatibilty

2002-02-15 Thread Lenny Hoffman
Hi Jason, You may want to try this before giving up: DOM_Element thisAction = static_cast( nl.item( actionNum )); Regards, Lenny -Original Message- From: Jason Jesso [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: Re: compatibilty I

even after fixing the stricmp bug, i *still* have trouble!

2002-02-15 Thread John Utz
hello; on my FreeBSD 4.4 box: bash-2.05$ SAXCount -v=always -n -s -f personal-schema.xml Error at file /usr/home/spaz/Compile/xerces-c-src1_6_0/samples/data/personal-schema.xml, line 8, char 86 Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value 'one.worker two.worker

IDOM memory model

2002-02-15 Thread Jason E. Stewart
Hey Tinny and all, It seems that I had a fundamental misunderstanding with the IDOM's memory model. I had assumed that the memory was held by the *Document* but it turns out that it's held by the *Parser*. That creates a problem. A number of people using the Perl API are using the parser to creat

Re: Proposal: C++ Language Binding for DOM Level 2 - in term of IDOM

2002-02-15 Thread Murray Cumming
On Fri, 2002-02-15 at 17:31, Tinny Ng wrote: > Hi, > > W3C DOM Recommendation has only defined JAVA and ECMAScript language > bindings. For all other languages, W3C has links to binding owners' > web sites in http://www.w3.org/DOM/Bindings. > > In order to populate Xerces-C++ IDOM as a formal