RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
BTW I am using 2.3.0. Apologies for all the posts. > -Original Message- > From: Bren Lynne [mailto:[EMAIL PROTECTED] > Sent: Monday, October 20, 2003 1:49 PM > To: [EMAIL PROTECTED] > Subject: RE: DOMwriter and xml declaration > > > > Little more info. > > Even if I setEncoding(X(UTF-8")

RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
Little more info. Even if I setEncoding(X(UTF-8")), theSerializer->canSetFeature(XMLUni::fgUTF8EncodingString, true) will still return false, and the xml declaration is not written to the file (and not in pretty print), though the file is written in UTF-8. So I must be doing something fundamenta

RE: DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
Thanks for the replies. Here's my code: DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(X("LS")); DOMDocument* pDoc = impl->createDocument(); pDoc->setEncoding(X("UTF-16")); pDoc->setStandalone(true);

RE: DOMwriter and xml declaration

2003-10-20 Thread Adam Heinz
For me, version 2.3.0 outputs the XML declaration just fine and all I'm doing to my DOMWriter is: pWriter->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true); pWriter->setFeature(XMLUni::fgDOMWRTWhitespaceInElementContent, true); pWriter->setEncoding(XMLUni::fgUTF8EncodingString); What version/

Re: DOMwriter and xml declaration

2003-10-20 Thread Gareth Reakes
Hi, A look at the current code gives this: // We always print out the xmldecl no matter whether it is // present in the original XML instance document or not. // const XMLCh* versionNo = (docu->getVersion()) ? docu->getVersion() : gXMLDecl_v

DOMwriter and xml declaration

2003-10-20 Thread Bren Lynne
This question seems to be as pointedly ignored as the recurring "Xerces-X a Win32 static library" question, but I'm trying anyway. How do I get DOMWriter to write a xml declaration at the top of an xml doc? As many have said, even after calling setEncoding, setVersion and setStandalone, the xml

RE: Bug in VC7 Project Settings

2003-10-20 Thread Gareth Reakes
Hi, yes, that has just been added. I will add the file in and commit it. Cheers, Gareth On Mon, 20 Oct 2003, Philipp Jacobi wrote: > Hello ! > > I think one more file is missing in the project file for VC7. > I've checked out xerces with cvs one hour ago and i can't build the > xerc

Re: Transcoding error with Shift-JIS encoded file on MACOS

2003-10-20 Thread James Berry
Bharat, What I should have said the other day is that I did try to reproduce the error with your provided sample, and was unable to using the current version of Xerces. So clearly there's some difference between my setup and yours. Can you document for me the behavior you're seeing inside t

RE: Bug in VC7 Project Settings

2003-10-20 Thread Philipp Jacobi
Hello ! I think one more file is missing in the project file for VC7. I've checked out xerces with cvs one hour ago and i can't build the xerces-lib. I have to add the following file to the project: src/xercesc/internal/XTemplateSerializer.cpp. Than it works. greetings Philipp -

Re: Memory leaks detected parsing an xml file

2003-10-20 Thread Alberto Massari
Hi Victor, Terminate is not supposed to delete all the memory allocated by Xerces; it will just deallocate the static objects needed by Xerces. For this reason, you shouldn't call it when you still have a SAXParser object alive, or when its destructor will be called, you will crash your applicat

Memory leaks detected parsing an xml file

2003-10-20 Thread Victor Domingo Reguant
I'm using a SAX parser in visual C++ in order to read an xml file, but when my application crashes are detected memory leaks. All the elements of the xml file appear like a memory leak. The function that creates the SAXParser is like this: CMySaxHandler errHandler; CSaxHandlerEs

RE: Transcoding error with Shift-JIS encoded file on MACOS

2003-10-20 Thread Bharat Gautam
Hi   I checked your change. The problem still occurs. Can you look into the error and provide assistance. The sample file we are working with is attached.   Thanks Bharat Gautam     -Original Message-From: James Berry [mailto:[EMAIL PROTECTED]]Sent: Saturday, October 18, 2003 9:11

Re: Memory management: the XMemory class

2003-10-20 Thread Ronald Landheer-Cieslak
I have attached the patch described below: On Mon, Oct 20, 2003 at 01:38:55PM +0200, Ronald Landheer-Cieslak wrote: > On Fri, Oct 17, 2003 at 10:11:48AM -0700, [EMAIL PROTECTED] wrote: > > You can already get compile-time alignment through a #define, which you > > could also define to be 0, which

Re: Memory management: the XMemory class

2003-10-20 Thread Ronald Landheer-Cieslak
On Fri, Oct 17, 2003 at 10:11:48AM -0700, [EMAIL PROTECTED] wrote: > > The XMemory class uses a global memory manager class thet defaults to > > MemoryManagerImpl. This latter is in charge of allocating and freeing > > memory and will return a pointer to that memory to XMemory. XMemory > > does so

DO NOT REPLY [Bug 23930] New: - XMLPlatformUtils::Initialize sets memory manager before checking whether it's been run already

2003-10-20 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

DO NOT REPLY [Bug 23888] - CVS contains LF-only project files

2003-10-20 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