porting Java to C++

2001-08-29 Thread Wang, Xinju
We are porting a Java application based on XercesJ to a C++ one using XercesC. I guess some people on this list have done that. Could you share some experience with me? I'm most interested in some pitfalls I might run into. After I went through the XercesC doc, mailing list and some sample code,

RE: DTD and DomParser

2001-08-29 Thread Vinodkumar S
u can do like this Cheers VInod -Original Message- From: Julia Larson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 7:22 AM To: '[EMAIL PROTECTED]' Subject: RE: DTD and DomParser Right, of course. But the original question was how to tell the parser where to find the dt

Re: DTD and DomParser

2001-08-29 Thread Jason E. Stewart
Hi Julia, I posted this before I saw your code example in which you were using a MemBufInputSource. All you would need to do as append an XMLDecl and a Doctype with the SYSTEM id set to the local file to the data in the buffer and the parser/entityResolver will do it all for you. I did appreci

RE: DTD and DomParser

2001-08-29 Thread Michael McIntosh
see the DOMParser::setEntityResolver documentation. -Original Message- From: Julia Larson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 9:52 PM To: '[EMAIL PROTECTED]' Subject: RE: DTD and DomParser Right, of course. But the original question was how to tell the parser w

RE: DTD and DomParser

2001-08-29 Thread Julia Larson
Right, of course. But the original question was how to tell the parser where to find the dtd. In particular, I did not want to specify a URL, but use a local file. Cheers, -Julie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 5

Re: Exception on wrong encoding

2001-08-29 Thread Michael D. Crawford
> Anyone knows what exception is thrown when I lie about the encoding PinnochioException. You shouldn't lie to your software! Mike -- Michael D. Crawford GoingWare Inc. - Expert Software Development and Consulting http://www.goingware.com [EMAIL PROTECTED] Tilting at Windmills for a Better

Exception on wrong encoding

2001-08-29 Thread Juergen Hermann
Hi! Anyone knows what exception is thrown when I lie about the encoding, i.e. when I have this in an UTF-8 file? Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

schema support

2001-08-29 Thread Wiessner Karsten
Hi there, I'd like to use Xerces for C++ in an ongoing project which uses XML and schemas. Unfourtunately the schema, which is defined/standardized by 3GPP, contains an "xsd:all" group element. In 1.5.1 Xerces complains about this "xsd:all". Do you know how to solve this problem? Might be inter

Re: DTD and DomParser

2001-08-29 Thread Jason E. Stewart
"Julia Larson" <[EMAIL PROTECTED]> writes: > Please help a newbie who can't find it in the docs > > How do I specify a DTD to use with a DomParser instance? > > Where does it look for the dtd? local directory? > Does it need a fully qualified path? You don't. The XML file you are parsing sp

RE: DTD and DomParser

2001-08-29 Thread Julia Larson
Nevermind, I found out how to do it, I think: static const char* szMemBufId = "request"; MemBufInputSource* memBufIS = new MemBufInputSource( (const XMLByte*)szRequest.c_str(), _tcslen(szRequest.c_str()), szMemBufId, false );

Re: My own node list?

2001-08-29 Thread Scott A. Herod
Hi John, Why not have a class that responsible for maintaining the DOM list and have everything else make calls into it. That way you also hide all of the xerces specific code in case you later need to swap out with another parser. Also, if you want to thread your code, you'll need to protect t

My own node list?

2001-08-29 Thread jrodriguez
Hi, I'm not sure what the best way to accomplish this task is. I would like to create my own node list by collecting nodes from various DOM API's. Then I'd like to use those nodes by passing the list around to different functions in my code. I know the following will not work: DOM_No

DTD and DomParser

2001-08-29 Thread Julia Larson
Please help a newbie who can't find it in the docs How do I specify a DTD to use with a DomParser instance? Where does it look for the dtd? local directory? Does it need a fully qualified path? Help! Thank you - To unsubsc

[DO NOT REPLY: Bug 3347] New: Memory deallocation

2001-08-29 Thread bugzilla
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3347

Alternatives to StrX.

2001-08-29 Thread Tasso Angelidis
I am writing an ISAPI server xtension which parses XML... I have a custom made function for outputing data through the socket. This function works exactly as printf. myFunction("Message: %s", StrX(exception.getMessage()); This seems to be hagning the server extension. Is it possible to convert

RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 r ev.1

2001-08-29 Thread peiyongz
Christoffer, Thanks for the error message. >Is there a reason why inline is not specified in the class XXX ? >It seems that it would be more safe to just always put "inline" into the >class declaration instead of reordering the functions. Yes, I agree with you, adding the "inline"

RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 r ev.1

2001-08-29 Thread Christoffer Dam Bruun
Hi Peiyong, Is there a reason why inline is not specified in the class XXX ? It seems that it would be more safe to just always put "inline" into the class declaration instead of reordering the functions. /Christoffer Compiler output for the failing files: xlC_r -qnotempinc -D_THREAD_SAFE -c

RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 r ev.1

2001-08-29 Thread peiyongz
Christoffer, Great! But for the sake of consistency, we may go with the re-order-caller-callee solution, could you send us the error message (before you add 'inline' into the class construct) on the following files? thanks. "/home/kfat/nightly/include/util/XMLUri.hpp" "/home/kfat/nightly

RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 rev.1

2001-08-29 Thread Christoffer Dam Bruun
Hi, It works if the inline declaration is made inside the class XXX {...} construct. We have successfully compiled all the source. /Christoffer > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 28. august 2001 23:12 > To: [EMAIL PROTECTED] > Subject: Re:

Re: patch for IRIX sproc( ) compatibility

2001-08-29 Thread peiyongz
Christopher, Would you mind sending us your version of the files? thanks. /src/runConfigure /src/util/Platforms/IRIX/IRIXPlatformUtils.cpp Regards, Peiyong Zhang XML Parsers Development IBM Toronto Laboratory email: [EMAIL PROTECTE

Re: XercesLib and Borland C++Builder 5

2001-08-29 Thread peiyongz
Don, Your latest change is in CVS now. Regards, Peiyong Zhang XML Parsers Development IBM Toronto Laboratory email: [EMAIL PROTECTED] Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088 Don Mastrovito <[EMAIL PROTECTED]> on 08/29/2001 07:

[DO NOT REPLY: Bug 3328] gTranscoder pointer is NULL after XMLPlatformUtils::Initialize();

2001-08-29 Thread bugzilla
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3328

BCB4 compilation errors

2001-08-29 Thread Don Mastrovito
I believe bug reports #2728 and 769 submitted by [EMAIL PROTECTED] today might be fixed by using the latest copy of src\util\Compilers\BorlandCDefs.hpp from the CVS repository. It recognizes the different compiler versions and defines XMLCh appropriately. Note that the BCB4 project files hav

Re: XercesLib and Borland C++Builder 5

2001-08-29 Thread Don Mastrovito
Peiyong, Everything checks out OK except a reference was added to AnySimpleTypeDatatypeValidator since I last submitted the updates. The attached zip file contains the one line additions to the project and make files, along with the CVS difs. Thanks again, Don At 04:45 PM 8/28/2001 -0400, y

[DO NOT REPLY: Bug 3335] New: static XMLStringPool compiled on Borland C++Builder 4 throws exception in destructor

2001-08-29 Thread bugzilla
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3335

[DO NOT REPLY: Bug 769] BCB 5 fails to compile Xerces 1.4 library on Windows 2000

2001-08-29 Thread bugzilla
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=769

[DO NOT REPLY: Bug 2728] Borland C++ Builder 5.0 Compile Error

2001-08-29 Thread bugzilla
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2728

Xerces 1.5.1 : Handling of broken new operator in MSVC

2001-08-29 Thread VAN DYCK Pieter
While digging into another issue, I noticed that the library code apparently relies on the new operator throwing an exception in case of failure. A simple example of this can be found in src/util/Transcoders/Win32/Win32TransService.cpp on or about line 881 of the 1.5.1 release. A more serious exa