XML and network programming

2004-09-17 Thread Boris Glawe
Hi, I've read some tutorials about network programming with linux. Most of them are limited to creating sockets and sending/receiving data. I am now looking for solution that is both secure and usefull to send XML based data from one machine to another. It is possible to send arbitrary text ove

Re: Why does this code crash ?

2004-09-10 Thread Boris Glawe
thd DTD ### ELEMENT map (street) ATTLIST map proportions CDATA #REQUIRED > ELEMENT street(#PCDATA) The SAXParseException I get states that there should be a space between 'street' and '(#PCDATA)'. After adding this space, the

Re: Why does this code crash ?

2004-09-09 Thread Boris Glawe
Btw.: The same happens with the sample code as given on the xerces-c homepage: http://xml.apache.org/xerces-c/program-dom.html In addition the sample code doesn't even compile due to namespace problems and the missing #include ---

Why does this code crash ?

2004-09-09 Thread Boris Glawe
Hi, I've got a very easy xerces-c implementation: If the DOCTYPE statement is included in my XML file, the code crashes, if not, it works perfecty. I cannot find any reason, why my code crashes!? Given that I don't do the catch(...) stuff, and I don' set an ErrorHandler, I get a segmentation fa

Re: corrupt archive

2004-02-21 Thread Boris Glawe
Eric J. Peters wrote: I experienced the same problem from numerous archives. I finally found a good one at: http://www.apache.org/dist/xml/xerces-c/ -Eric. Is there a way to find the origin of the corrupt archive ? I think it's a very bad idea to flood almost all mirrors with a corrupt arch

Re: corrupt archive

2004-02-20 Thread Boris Glawe
BTW one of the two mirrors I used is ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.apache.org/dist/xml/xerces-c/source/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

corrupt archive

2004-02-20 Thread Boris Glawe
Hi, Is it possible, that the tar.gz archive of the xercesc-2.5.0 source release is corrupt ? I've downloaded them from two different mirrors, and none of them worked. tar complains, that the is not a valid tar archive, though it could extract exactly on file this is the md5sum which I get from

Re: release question:

2003-10-01 Thread Boris Glawe
Boris Glawe wrote: Hi, do I have to release a string that is created like this: DOMElement* element = doc->CreateElement(XMLString::transcode("anElement")); I don't know, whether element saves the pointer that's returned by transcode anywhere. Releasing does not mak

release question:

2003-10-01 Thread Boris Glawe
Hi, do I have to release a string that is created like this: DOMElement* element = doc->CreateElement(XMLString::transcode("anElement")); I don't know, whether element saves the pointer that's returned by transcode anywhere. Releasing does not make sense then, since the (pointer to the) string

Re: Linux question

2003-07-19 Thread Boris Glawe
[EMAIL PROTECTED] wrote: I've got: LIBS = /root/xerces/lib/libxerces-c.so.22.0 -lsupc++ -lstdc++ $(myDLL): $(OBJS) $(CC) -shared -o $(myDLL) $(OBJS) $(LIBS) obviously there is more to itbut I thought that did include the standard libraries that were necessary? No? Thanks! If you co

Re: Setting LD_LIBRARY_PATH

2003-07-19 Thread Boris Glawe
Suchit Batheja wrote: hi, Everytime I log in I have to set the LD_LIBRARY_PATH using the setenv command in Linux. Is there a way to set it permenantly. thanks suchit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

XMLString handler

2003-06-10 Thread Boris Glawe
Hi, First of all I am newby with xerces(-c). I wrote a piece of code which I'd like to discuss about. Problem is , that stringhandling is almost as complicated as assembler programming in xerces-c. There are many many functions, that expect a XMLCh* as parameter, which has to be allocated first,

Re: getNodeValue() crashes

2003-02-04 Thread Boris Glawe
David N Bertoni/Cambridge/IBM wrote: 1. XMLString::transcode() returns a pointer to dynamic memory that you must delete. If you don't, it's a memory leak: char* str = XMLString::transcode(...); delete [] str; I am assigning this value to a string... do I have to delete this

getNodeValue() crashes

2003-02-04 Thread Boris Glawe
I am a beginner, so hope you're not bored with my problem... I am using gcc3.2 on Redhat 8.0... I compiled the xerces-c library myself... The program crashes, as soon, as I try to call the getNodeValue() method of a DOMNode... The used xml file (test.xml) is at the bottom According to the AP