unable to register xerces-com.dll

2001-08-30 Thread Johannes Lipp
Hi, I'm a Xerces user, not a developer, and I have a problem with the COM bindings for Xerces-C. I couldn't find a mailing list 'Xerces-C User' analogous to 'Xerces-J User', so I'm posting my question here. I'm using the archive http://xml.apache.org/dist/xerces-c/experimental/com/xerces-com-1_2

Re: patch for IRIX sproc( ) compatibility

2001-08-30 Thread Christopher Just
[EMAIL PROTECTED] wrote: > > Christopher, > > Would you mind sending us your version of the files? > thanks. > > /src/runConfigure > /src/util/Platforms/IRIX/IRIXPlatformUtils.cpp Here they are. Thanks for taking an interest in this. -chris -- Christopher [EMAIL PROTECTED]

"String pool id was not legal"

2001-08-30 Thread Jason E. Stewart
Hey All, I was using SAX2, and inside of my ContentHandler's startElement() method I called attrList->getURI(0) and got the following: Exception thrown in file: 'StringPool.cpp' At line: '186' Exception message is: String pool id was not legal Here is a gdb backtrace: #0 0x6fd8bc50 in kill

Streams created by makeStream seem to be leaked in Xerces 1.4

2001-08-30 Thread Brian Quinlan
In Xerces-C 1.4, when ReaderMgr creates a stream through the makeStream() method call on an InputSource, the stream seems to be leaked if it throws an exception during it's readBytes method call. I couldn't find a bug filed against this and was wondering if it has been fixed in 1.5.1? Cheers, Bri

RE: Stripping out whitespace

2001-08-30 Thread Julia Larson
D'OH I'm so sorry. I see the problem with my code! I'm asking for the children of the wrong element! :*0 *** Nevermind! *** argh! :I :I :I -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:40 PM To: [EMAIL PROTECTED] Cc: '[EMAIL

Recall: Stripping out whitespace

2001-08-30 Thread Julia Larson
Julia Larson would like to recall the message, "Stripping out whitespace". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fwd: xerces 1.5

2001-08-30 Thread Abdelilah . Elanbari
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hi! I'm using your source code xerces 1.5 and I'd like to point two things: 1- The file "src\util\NetAccessors\WinSock\BinHTTPURLInputStream.cpp" does not compile using UNICODE if (_UNICODE) is defined then the statements gWS

Problems using schema and namespaces

2001-08-30 Thread Stefan Brauneis
Hi all, I have problems using namespaces and schema together in an application. To be honest I don't no much about namespaces and schemas yet but have to learn it. Ok, so what I am looking for is a simple xml-file like personal-schema.xml and a corresponding xsd-file like personal.xsd but which b

RE: Stripping out whitespace

2001-08-30 Thread Julia Larson
Okay, here is the code Thanks -Julie DOMParser parser; parser.setValidationScheme( DOMParser::Val_Auto ); parser.setDoNamespaces( false ); parser.setDoSchema( false ); parser.setDoValidation( true ); parser.setValidationSchemaFullChecking( false ); DOMTreeErrorReporter errReporter; parser.setEr

RE: Stripping out whitespace

2001-08-30 Thread Michael McIntosh
Before you parse the doc set: TheParser.setIncludeIgnorableWhitespace (false); TheParser.setValidationScheme (DOMParser::Val_Always); You must have validation on for SetIgnorableWhitespace(false) to work! -Origina

RE: Stripping out whitespace

2001-08-30 Thread Julia Larson
Well, I could certainly step through the input stream and do a TrimLeft and TrimRight on every line, but this seems expensive. Isn't there a way to tell the parser to ignore extraneous whitespace? Thanks -Julie -Original Message- From: Scott A. Herod [mailto:[EMAIL PROTECTED]] Sent: T

RE: Stripping out whitespace

2001-08-30 Thread Julia Larson
Here is an excerpt of the appropriate elements from from the DTD NSAPI.dtd These are the only two elements involved, but if you think you need to see the whole DTD, I will send it. Thanks! -Julie -Original Message- From: Michael McIntosh [mailto:[EMAIL PROTECTED]] Sent: Thursd

RE: Stripping out whitespace

2001-08-30 Thread Joseph_Kesselman
>The parser tells me it only has one child - the Domain "0" child. >Why doesn't it recognize the second child? It might help if you showed us how you were asking the parser for that info. It sounds more likely to be a bug in your code than in the parser, especially given the problem you reported

RE: Stripping out whitespace

2001-08-30 Thread Michael McIntosh
please send us the DTD. -Original Message- From: Julia Larson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Stripping out whitespace An amendment to my last message: Actually, in the latter case The parser tells me it only h

Re: Stripping out whitespace

2001-08-30 Thread Scott A. Herod
Hi Julie, I've got a generic whitespace stripper that I use a lot. It uses STL strings but should be easy to adjust. Notice that it turns any whitespace into single space character. It also trims WS off the front and rear of the string. Scott

RE: Stripping out whitespace

2001-08-30 Thread Julia Larson
An amendment to my last message: Actually, in the latter case The parser tells me it only has one child - the Domain "0" child. Why doesn't it recognize the second child? Please help Thank you -Julie -Original Message- From: Julia Larson Sent: Thursday, August 30, 2001 1:10 PM To

Stripping out whitespace

2001-08-30 Thread Julia Larson
Hello all, Sorry if this has been brought up before, but is there a way to tell the parser to strip out or ignore extraneous tabs and spaces. The problem I'm having is parsing the following text: When this is parsed by Xerces, it tells me that there is one node NSAPI

RE: Static build on win32

2001-08-30 Thread Murphy, James
> Not sure about the best way to bring this up, but isn't the > buffer returned > by transcode() allocated with new[]? If so, the proposal is > flawed, since > it is using free() and not delete[]... If this type of > "solution" is chosen > to be implemented, maybe it would be best to localize

RE: Static build on win32

2001-08-30 Thread Julia Larson
I had the same problem. I added a function to XMLString to deal with this. XMLString.hpp static void XMLString::deleteBuffer( char* ptr ); XMLString.cpp // JL void XMLString::deleteBuffer( char* ptr ) { delete [] ptr; } hth, -J -Original Message- From: Armistead, Pe

RE: Static build on win32

2001-08-30 Thread Erik Schroeder
Not sure about the best way to bring this up, but isn't the buffer returned by transcode() allocated with new[]? If so, the proposal is flawed, since it is using free() and not delete[]... If this type of "solution" is chosen to be implemented, maybe it would be best to localize the solution a b

RE: My own node list?

2001-08-30 Thread jrodriguez
Hi Scott, looks like were in the same business, sort of. Yes, I have a classes for managing all things DOM and the main application calls methods of those classes, so we are in agreement there. I still would like to somehow create my own collection of nodes though. Thanks, John -Origin

RE: Static build on win32

2001-08-30 Thread Murphy, James
Read "[EMAIL PROTECTED]"'s bug submission [1]. He is proposing void XMLPlatformUtils::Free(void *p) That can be called to free memory allocated by Xerces (perhaps from a statically linked CRT). Methinks this would solve your problem. Add on yourself or wait for that change in the code base.

Re: DTD and DomParser

2001-08-30 Thread Jason E. Stewart
"Patrick Lok" <[EMAIL PROTECTED]> writes: > At 02:24 AM 8/30/01, you wrote: > > > >Julia Larson wrote: > > > >>Please help a newbie who can't find it in the docs > >>How do I specify a DTD to use with a DomParser instance? > > > > > >Supply a DOCTYPE, e.g. : > > > > > > > > > >... > > > > If t

RE: Static build on win32

2001-08-30 Thread Armistead, Peter
> What do you mean by "component"? In this case, anything that has a statically linked CRT. > Is Xerces a "component" ? Yes. > If so, how can I ensure that the strings are freed inside Xerces ? You would have to create a release function inside Xerces to do this I imagine. > Is there anothe

Re: schema support

2001-08-30 Thread Tinny Ng
Schema development is still on-going. We have just implemented the "all" support. Please try the latest nightly build (http://xml.apache.org/dist/xerces-c/nightly/2001-08-30/) and see if it works for you. Tinny Wiessner Karsten wrote: > Hi there, > > I'd like to use Xerces for C++ in an ongoi

Re: Static build on win32

2001-08-30 Thread Daniel Hägg
"Armistead, Peter" wrote: > If you build the app and the components with static CRT you will get > different heaps for each component. > > If you work this way you need to make sure the strings are freed inside the > same component that allocated them, Thanks again for your reply. What do you m

RE: Static build on win32

2001-08-30 Thread Armistead, Peter
> Thanks for the reply. But I think you did not understand me. > I don't want my application to depend on msvcrt.dll and msvcp60.dll. > I want to use static libs. I understand that all "parts" of a > process must use > the same kind of libs. In order to make it work, I need to > rebuild Xerces >

Is Xerces Exception thread safe on Solaris 7?

2001-08-30 Thread Peter Hou
Hello,I am currently working on a multi-threaded application using Xerces C++ SAX parser (v. 1.5.1) on Solaris 7.0. The application is working fine until an fatal exception is raised (SAXParseException) due to an invalid XML. It crashes the application consistently. After looking into the ap

Re: Static build on win32

2001-08-30 Thread Daniel Hägg
"Armistead, Peter" wrote: > Daniel, > > Have you checked that you are using the DLL version of CRT? > > If not, the freeing of memory will fail due to different heaps, > > Peter Thanks for the reply. But I think you did not understand me. I don't want my application to depend on msvcrt.dll and m

Is XERCES thread safe?

2001-08-30 Thread Tasso Angelidis
I am writting a IIS server extension. Is it ok if I just move over the DOMCount sample within the extension code? Do I have to do anything special not to get any memmory leaks or what not? - To unsubscribe, e-mail: [EMAIL PROTECT

RE: Static build on win32

2001-08-30 Thread Armistead, Peter
Daniel, Have you checked that you are using the DLL version of CRT? If not, the freeing of memory will fail due to different heaps, Peter > -Original Message- > From: Daniel Hägg [mailto:[EMAIL PROTECTED]] > Sent: Donnerstag, 30. August 2001 14:38 > To: [EMAIL PROTECTED] > Subject: St

Static build on win32

2001-08-30 Thread Daniel Hägg
Hi! Is it possible to build Xerces with static libraries on WIN32 ? I have tried but failed. My app asserts when it tries to free a string allocated by transcode. This does not happen if I compile both Xerces and my app with dynamic libraries. I know this problem is mentioned in the FAQ but the a

*fatal problems* while trying to run Xerces on AIX43

2001-08-30 Thread Laurent PETIT
Hello, We encounter *fatal problems* while trying to run Xerces on AIX43. We are using pre-compiled tarballs from several sources : Xerces 1_5_0, Xerces 1_5_1, and the last built xml4c from ibm (their alphaworks website). With those librairies, the same problems occur when compiling samples whi

Re: DTD and DomParser

2001-08-30 Thread Radovan CHYTRACEK
Patrick Lok wrote: > At 02:24 AM 8/30/01, you wrote: > > >> Julia Larson wrote: >> >>> Please help a newbie who can't find it in the docs >>> How do I specify a DTD to use with a DomParser instance? >> >> >> >> Supply a DOCTYPE, e.g. : >> >> >> >> >> ... >> > > > If the DOCTYPE is not i

Re: porting Java to C++

2001-08-30 Thread Radovan CHYTRACEK
Wang, Xinju wrote: > 1. If I need to port my C++ application to other platforms, should I stick > with XMLCh? If so, how can I convert a char to an XMLCh? > 2. Any sample code on using XMLString? Any other string helper class around? In case it's enough the local code page you can try: /

Re: DTD and DomParser

2001-08-30 Thread Patrick Lok
At 02:24 AM 8/30/01, you wrote: >Julia Larson wrote: > >>Please help a newbie who can't find it in the docs >>How do I specify a DTD to use with a DomParser instance? > > >Supply a DOCTYPE, e.g. : > > > > >... > If the DOCTYPE is not in the document, is there a way to tell the DOMParser to par

Re: DTD and DomParser

2001-08-30 Thread Radovan CHYTRACEK
Julia Larson wrote: > Please help a newbie who can't find it in the docs > > How do I specify a DTD to use with a DomParser instance? Supply a DOCTYPE, e.g. : ... > Where does it look for the dtd? local directory? > Does it need a fully qualified path? You can supply the fully qua

Xerces under LINUX build with PGI compiler

2001-08-30 Thread Son, G.J. van
Hi all, Has anyone build the Xerces library on a LINUX platform, using the Portland PGI-compiler (see www.pgroup.com)? We seem to be running into an error while precompiling/prelinking: 'pgCC: /mnt/usrx/usr1/people/madymo/pgi/linux86/bin/pgprelnk TERMINATED by signal 11' Does this sound famili