Re: Building Xerces 2.3.0 with GCC 3.4.2 on Solaris5.8!!!

2005-04-14 Thread david_n_bertoni
> from XMLString.cpp:74: > /user/sbhatnag/xerces/xerces-c-src_2_3_0/include/xercesc/util/RefArrayVectorOf.c: > In destructor `xercesc_2_3::RefArrayVectorOf::~RefArrayVectorOf()': > /user/sbhatnag/xerces/xerces-c-src_2_3_0/include/xercesc/util/RefArrayVectorOf.c:25: > error:

Re: Xpath Expression with namespace

2005-04-12 Thread david_n_bertoni
> Hi all, > Not sure if this a bug or if I am doing something wrong. I am wrapping Xerces DOM object > with XercesDocumentWrapper and using this for xpath expressions. > This works fine when I am not using namespaces, however it fails with namespaces. > I tried to debug this and found that call t

Re: Xerces-C migration from CVS to SVN

2005-04-07 Thread david_n_bertoni
Hi Jason, Gareth's bug is here: http://issues.apache.org/jira/browse/INFRA-266 The infrastruture JIRA database is here: http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10410 Dave [EMAIL PROTECTED] (Jason E. Stewart) Sent by: "Jason E. Stewart" <[EMAIL PROTECTED]> 04/06/2005 10:

RE: [jira] Commented: (XERCESC-1395) error "Ending delimiter miss ing on substitution" building on Solaris

2005-04-04 Thread david_n_bertoni
> I downloaded the code last night so it is the latest version of xerces. > When I run "uname" on my sun box I get the following output: > > SunOS pandora 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-60 > > I have now successfully now compiled xerces with gmake 3.8, gcc 3.3, and g++ > 3.3 > > T

Re: Build xerces-c 1.6.0 on AIX 5.1 with G++

2005-03-27 Thread david_n_bertoni
> Hi, > > I need some help, as I'm not familar with UNIX c++ build. > > I downloaded the binary xerces-c1_6_0-AIX43_5.02 from Apache download site. > On AIX5, I try to build a sample with the library in this package. But I get following error: That version of Xerces-C was built with xlC, so

Re: [jira] Commented: (XERCESC-1377) Error in SAXParser! invalid namespaces

2005-03-27 Thread david_n_bertoni
> Here you are: > > virtual void SAXParser::startElement(const XMLElementDecl &elemDecl, const > unsigned int uriId, > > const XMLCh *const elemPrefix,const RefVectorOf< XMLAttr > > &attrList, > > const unsigned int attrCount,const bool isEmpty,const bool > isRoot

Re: Building debug build on linux

2005-03-21 Thread david_n_bertoni
> I'm trying to figure out how to build a debug version > of the xerces shared object on linux (bash). This is > what I do to build the library in general: > > //Begin Build > export > XERCESCROOT=/home/mydir/xercesc/xerces-c-src_2_5_0 > > ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket > -t

RE: Advanced novice question about PSVI

2005-03-21 Thread david_n_bertoni
> Well, > > I've been digging around a lot to understand what Xerces does and does > not allow and there seems to be some problem with Xerces here. If I > follow your tip and use the ContentSpecNode I end up in a dead end. I > can get the ContentSpec, but it doesn't do me much good, all that it >

RE: Encoding support

2005-03-18 Thread david_n_bertoni
> Thanks much for your reply, I still have a few more questions: > > Do you mean that I got the source code for xerces-c and ICU and then > build the projects myself? > Do I need to modify any source code? > Once I have the xerces-c and ICU ready, I can just include them in my > projects and I s

Re: is chars argument in characters( ) call null terminated?

2005-03-17 Thread david_n_bertoni
> Make sure you transcode to UTF-8. > > Sounds like a good idea, but I'm not sure how. Do I > have to use ICU? Or is there some way through > XMLString (or some other xerces class/api) which isn't > obvious to me? Look at the class XMLTransService in src/xercesc/util/TransService.hpp > > > If

Re: is chars argument in characters( ) call null terminated?

2005-03-14 Thread david_n_bertoni
> I'm wondering if I can count on the fact that the > chars argument to the characters( ) method will be a > null terminated array? No, you cannot. > The documentation seems not to indicate either way, > but the fact that the length is passed explicitly > suggests that it is not neccasarily null

RE: Generating and Serializing XML Docs using Xerces

2005-03-12 Thread david_n_bertoni
> I have taken a look at CreateDOMDocument and made some progress with > building an 'uninitialized' DOM. However, I can't see how to load data > in the DOM? i.e. the values that would end up in between the XML tags? Those "values" are text node children. > I've had a trawl through the Xerces Cla

Re: [cvs => svn] final proposal, first draft

2005-03-11 Thread david_n_bertoni
+1 > Gareth Reakes <[EMAIL PROTECTED]> writes: > > > > Hey, here is my +1, but I don't know if we really need a > > vote. I say that because the Xerces TLP does not even have any > > committers yet. We have a PMC (without a mailing list!!), but > >

Re: schema validation usage

2005-03-09 Thread david_n_bertoni
> XercesDOMParser *parser = new XercesDOMParser; > DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter (); Do you really need to build a DOM tree? > It seems that each call to event () is fairly expensive - running at about 23 docs/sec > on my system here at work I can't give an opinio

Re: Xerces internal use of .c include files

2005-02-18 Thread david_n_bertoni
> - Convert these files into actual templates, perhaps. I haven't > looked enough into the implementations to know whether this is > possible, or to discover what else might prevent us from doing this. I > do know that we use templates elsewhere in Xerces, so this shouldn't > break any com

Re: Sun Collaboration

2005-02-18 Thread david_n_bertoni
> >And, also, Alberto, the VMware/gcc/x86 comment was downright nasty! I > >bet Viet could get you a "discount" on SPARC/Forte(SunOne?); probably a > >discount on training, too! > > I would have problems fitting it in my office ;-); but it would be nice if > Sun donated a bunch of Solaris hardw

RE: The Road to 3.0

2005-02-14 Thread david_n_bertoni
> > The first of the two requirements is the killer, because it > > essentially means that allocators cannot have instance data. > > I found an interesting discussion about that on comp.lang.c++: > http://coding.derkeiler.com/Archive/C_CPP/comp.lang.cpp/2004-01/447index .html > where opinions go a

Re: The Road to 3.0

2005-02-13 Thread david_n_bertoni
> from a xerces and xalan users point of view it is always a blocker > for me that both libraries don't share a rich common code base. Yes, it's unfortunate, because it would make many things much easier for our users. On the other hand, you would not believe the number of posts over the years

Re: The Road to 3.0

2005-02-12 Thread david_n_bertoni
Hi Gareth, > I should have read this mail before replying! It was certainly the > case in the past the some of the platforms that xerces supported did > not have decent STL support. Has this now changed? Dean knew all the > issues if I recall correctly and does sometimes lurk on the list.

Re: The Road to 3.0

2005-02-12 Thread david_n_bertoni
> Lots of cool ideas there. I'm with Alby though in being reticent about > drawing in STL-based code at this juncture. I could be wrong about this, > but I seem to recall something about Xalan-C having relatively recently > gone through a painful change away from STL for the sake of portabili

Re: [jira] Commented: (XERCESC-1334) XMLTransService::makeNewTranscoderFor(...) does not have a corresponding method to release the memory it allocates. Once a new XMLTranscoder is created, no other feasible way to clear up the memory except for calling XMLTranscoder destructor explicitly

2005-02-04 Thread david_n_bertoni
> Hi Alberto, > > According to my debuggin on VC7/WinXP, delete > aTranscoder will invoke the global delete operator, > which happen to work fine simply because the current > memory manager implementation happen to use global new > operator as well. > > If the memory manager implementation change

Re: using xerces c++ header files

2005-01-18 Thread david_n_bertoni
> Hi Joanne, > > As per your suggestion, I've used the compiling command, along with > changing test.c (to remove include). I'm getting the compiler errors > below. It looks like maybe a library issue... > > /tmp/ccSN4FhO.o(.text+0x17): In function `main': > : undefined reference to `xercesc_2_

Re: How to change encoding in XML2reader --update

2005-01-12 Thread david_n_bertoni
> The problem i have is that i need to parse a huge file > that's why i decided to use the sax parser. however > the file contains a particular encoding and the parser > fails to transcode those strings. For example one line > says Moléculaire It's very very unlikely the parser cannot transcode d

Re: Is valid for Xerces parser?

2005-01-04 Thread david_n_bertoni
> Hi, > > I have an xml document: > > fdfds > > > And I use XercesDOMParser to parser this documentation. In my thought, it should be invalid > for the root tag is not the exactly same, but I got the right dom tree. After I write this dom tree back, > it changed to: > > fdfds > > Is it the

Re: Comments in XML.

2004-12-14 Thread david_n_bertoni
> Discussions with my colleagues has raised a wish-list item. It would be nice to have a "nested comment" feature > allowing the commenting of large portions of XML, which itself may contain comments. You want something you think is "nice," but has a very high cost. Something that would requir

Re: Multibyte characters

2004-12-08 Thread david_n_bertoni
> I am writing xml files which contain physical units. > Some units contain the greek mucro. Do you mean U+03BC which is "GREEK SMALL LETTER MU" or U+00B5, which is "MICRO SIGN"? There is no Greek "mucro" character. > Xerces writes it as two characters, I remember thats > because it cannot be d

Re: RES: How to I write domDoc in disc?

2004-12-08 Thread david_n_bertoni
> Hi, > I beginner with Xerces, can you show me a code that do this? Look at the DOMPrint sample application. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DTD caching problems

2004-12-03 Thread david_n_bertoni
Hi Alberto, One problem I noticed with your fix is the call to resolveEntity() in the various overloads of resolveSystemId() always result in a null pointer for the public ID, meaning that any mechanism that relies on public IDs will not work. For example, in IGXMLScanner.::resolveSystemId():

Re: Dynamically switching to/from a DOM ContentHandler during a SAX2 parse

2004-11-17 Thread david_n_bertoni
> I've been experimenting with using SAX2XMLReader::getSrcOffset() > to find the file position that elements were found at. The problem > with getSrcOffset() is that it doesn't always correspond exactly > to the absolute file position, as (for example) XMLReader will > sometimes silently eat the LF

Re: Xerces 32 and 64 bits

2004-11-09 Thread david_n_bertoni
> Is compatible binaries compiled for 64 bits with 32 bits platforms? No. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CData section

2004-11-05 Thread david_n_bertoni
> I have a question regarding CData Section, say I have an element > in XML defined as following: > > > > > > When I use the SAX parser in Xerces-c, I got the character data for the element "Customer", > is this the expected behavior? Yes. > I thought the data should be the whole thin

Re: Building Xerces-c 2.6 with Microsoft .Net

2004-11-01 Thread david_n_bertoni
> >I've been building my own binaries for use with Xalan-C++ for months > >without any issues. > > > > > Are you also using Visual C++ .Net 2003? If so, is there anything > different about your procedure? We are using 2003, and there's no change in what we're doing. We just let 2003 translat

Re: Building Xerces-c 2.6 with Microsoft .Net

2004-11-01 Thread david_n_bertoni
> The sequence of events has been something like this: > > I double-click on the VC7 project file for all. > > MSDev converts all the project file stuff to be 7.1 compatible. So, you're using Visual C++ .Net 2003? > I try to run DOMCount. A dialog comes up: > > "These project configurations

Re: possible memory bug

2004-10-31 Thread david_n_bertoni
> Afaik, when overloading 'placement' new and delete > like that, the only time the corresponding overload > of delete will be called is if the constructor throws. > All other times you have to call the destructor and > the right version of delete yourself. This is not true. If a class implements

Re: possible memory bug

2004-10-31 Thread david_n_bertoni
Hi Graham, > > All classes that derive from XMemory use "placement" new with a > > MemoryManager instance, and the normal delete expression. The call stack > > you posted looks fine. > > But is this the correct behaviour? I think the destructor for the > object should be called, then the op

Re: possible memory bug

2004-10-30 Thread david_n_bertoni
> I'm seeing a crash when an IGXMLScanner held statically is destroyed. > I'm using Xerces 2.3.0 on linux compiled with gcc 3.2. Can you elaborate on what you mean by "held statically?" You shouldn't have any static instance of Xerces-C classes, as they cannot be created before the library is i

Re: Missing xerces-c_2D.lib in xerces-c_2_6_0-windows_nt-msvc_60?

2004-10-12 Thread david_n_bertoni
> But the reason for doing this is eloquently expressed > in this very thread--people were confused by this > library's presence, and some thought they needed it > around to use the parser. Are you sure that's what's being expressed? Because that's not how I read it. I read it as "the distribut

Re: Missing xerces-c_2D.lib in xerces-c_2_6_0-windows_nt-msvc_60?

2004-10-12 Thread david_n_bertoni
> This was done intentionally. On no other platform > were both debug and release binaries both issued, > so it wasn't clear why this was being done on Windows. > No functionality is lost. Actually, functionality is lost, because you can no longer build debug executables for your applications th

Re: HowTo Request: Sax Events to DOM Tree

2004-09-30 Thread david_n_bertoni
> The idea is to take advantade of the SAX and its ability to > process a stream of non-specific length and combine that with > the data organization of DOM. I'm not sure I understand what you mean by this. Since the same underlying scanner technology runs the SAX parsers and the DOM parsers and

RE: Making Xerces less strict?

2004-09-23 Thread david_n_bertoni
> While the list is discussing the importance of adhering > to standards, is there any hope of getting a few simple > XML schema bugs fixed before the next release (e.g. > xml:lang is unusable, anyType doesn't handle arbitrary > ttributes)? Most of them don't even get an acknowledgement > in the bu

RE: Making Xerces less strict?

2004-09-23 Thread david_n_bertoni
> A preprocessing service is not a bad work around; and I > do have sympathy for the notion of standards of compliance. > Still, I see this problem (control characters) often enough > that I question the XML standard and Xerces' compliance to it. > XML Spy does not, though Microsoft's DOM parser do

RE: Making Xerces less strict?

2004-09-23 Thread david_n_bertoni
> I think the blame belongs with your clients' authoring tools, which > should help them produce well-formed documents. On the other hand, if > you want to work around the presence of certain illegal characters, you > could (as a service) translate them into character entities before > handing the

Re: Xerces-2-5

2004-09-21 Thread david_n_bertoni
> I have found an issue trying to get special characters to display correctly in SAX and > have gotten it down to a call to getCharDataOpts()within void > IGXMLScanner::sendCharData(XMLBuffer& toSend). I have looked through the > documentation and on the website, but have not found a way to set

Re: Xerces-C Mac OS Port

2004-09-20 Thread david_n_bertoni
Hi James, I might be able to help a bit, but have no access to a machine. I remember at least a year ago asking for an account on an Apache Mac box, but that didn't get anywhere. Is there some hardware available that we can use? It would also help us keep up with Xalan-C's Mac port. Thanks!

Re: Is there a copy constructor for XercesDOMParser ?

2004-08-01 Thread david_n_bertoni
> I am writing a multi-threaded server to catch and process > XML from multiple clients. > I want to be able to create the validating parser up fromt > and then clone it into each thread (one per connection), but > I cannot seem to find a simple way to copy my parser once I > have it built. Ther

Re: Problems with xerces on AIX 5.2

2004-07-30 Thread david_n_bertoni
> My question is > > - Can we use xerces 1.4 on AIX 5.2 platform , which > has been compiled using Visual Age 6.0 compiler I don't think anyone can answer that question.  You will simply have to try to build it from source, which you can download from here: http://archive.apache.org/dist/xml/x

Re: More packageBinaries.pl questions...

2004-07-26 Thread david_n_bertoni
> The project is indeed in the directory indicated. Is there anything > special that has to be done to get this to work? Does the project file > need to be writable? (It's in a source control system). Yes, because the scripts have to modify the project files for the selected build options. > Al

Re: Using packageBinaries.pl to create debug build?

2004-07-26 Thread david_n_bertoni
> Is it possible to use packageBinaries.pl to create a debug build of > Xerces? Alternatively, if someone had directions for building with ICU > in MSVC, then I could build in debug from within MSVC, but currently > the only instructions for building ICU are using the perl scripts (the > instructi

Re: Apparent memory leak from SAX2XMLReader on parse failure

2004-07-23 Thread david_n_bertoni
Hi Simon, I reported such a bug earlier, although you may be seeing a different issue. You might want to look at the latest CVS and see if you can retrofit some patches for the scanners into 2.5.0. In particular, take a look at src/xercesc/internal/IGXMLScanner2.cpp, at a patch in IGXMLScanner::

RE: How to transcode an unicode stream

2004-06-21 Thread david_n_bertoni
> Why do all that? If XMLCh is not a typedef for wchar_t > on your platform just cast the string to wchar_t*. Or am > I missing some subtlety? On some platforms wchar_t is a 32-bit integral, while on others it's a 16-bit integral, and there are very few platforms where wchar_t contains Unicode cod

RE: Sax Fatal Error

2004-06-18 Thread david_n_bertoni
Hi, This document is not encoded in UTF-8, so it is not well-formed. I tried "ISO-8859-1" and it worked, but that's just a guess at the encoding. You need to find out what the real encoding is. Dave - To unsubscribe, e-mail:

Re: DOMText & appendChild

2004-06-18 Thread david_n_bertoni
Hi, Text nodes do not have children. In your example, the "Child" node's parent is "Parent", which is an Element node. There are no RFCs to examine to figure this out -- just look at the DOM recommendation: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1590626202 Dave |-+---

Re: DOMCharacterData::substringData () does not throw exception as documented.

2004-05-28 Thread david_n_bertoni
> Hi all, yeah, I'm a newbee here... > > Maybe I'm doing something wrong or maybe it's just Friday afternoon and I want to go home, > but I can't seem to find Xerces-C++ on the product list page to submit this bug to Bugzilla. > I see Xerces-J and Xerces-P but no Xerces-C. :-( > Xerces-C is using

Re: attribute parsing problem

2004-05-17 Thread david_n_bertoni
Hi, This is a known bug with Xerces-C 2.4. You should upgrade to 2.5 to get the fix. Dave "Gary Hughes"

RE: Linking Xerces C++ statically

2004-05-13 Thread david_n_bertoni
> > Xalan-C does not define or use the Xerces-C macros that > > affect Xerces-C's class export macros. You should look very > > carefully at what you did to build Xerces-C as a static > > library and make sure have modified the following lines in > > xercesc/util/Compilers/VCPPDefs.hpp: > > > >

RE: Linking Xerces C++ statically

2004-05-13 Thread david_n_bertoni
> >I'm using Windows XP search mechanism and can't find any of them > (dllimport keyword). :( Can you recommend some better tool? > > Thank you, > Milan Xalan-C does not define or use the Xerces-C macros that affect Xerces-C's class export macros. You should look very carefully at wha

Re: String handling best practice

2004-05-01 Thread david_n_bertoni
>[EMAIL PROTECTED] wrote: > >>>Although XMLCh is UTF-16, I believe the transcoding routines make a >>>point of escaping reserved characters like "<" to "<", so the two >>>string formats you mention are not interchangeable. >>> >>> >> >>Those characters are not escaped during transcoding. They woul

RE: String handling best practice

2004-04-30 Thread david_n_bertoni
> Although XMLCh is UTF-16, I believe the transcoding routines make a > point of escaping reserved characters like "<" to "<", so the two > string formats you mention are not interchangeable. Those characters are not escaped during transcoding. They would only be escaped when generating markup.

RE: z/OS and OS/390 runConfigure ???

2004-04-28 Thread david_n_bertoni
"Bovy, Stephen J" <[EMAIL PROTECTED]> wrote: > Then why haven't those fixes been merged back into the Xerces tree ??? You are assuming there are fixes. It may just be that there are tweaks needed to new code which has appeared since the last time they did a port. That typically happens with ports

Re: DOMInputSource and BinInputStream ???

2004-04-22 Thread david_n_bertoni
> Can I do the following: > > class myinput : DOMInputSource, BinMemInputStream > { > > public: > > myinput ( ) { }; > > ~myinput ( ) { }; > > BinInputStream* makestream ( ) { return this }; > > } You shouldn't do this, because the parser will want to delete the BinMemInputStream instance, and

Re: transform in Xalan

2004-04-20 Thread david_n_bertoni
Hi, This is the wrong list for this question. However, I'll respond, since the answer is brief. The buffer is not null-terminated, so you need to check the length of the stream, or add a terminating null. In the future, please make sure you post to the correct list. Thanks! Dave |-

RE: XERCES - SAXParser: newlines in CDATA sections

2004-04-19 Thread david_n_bertoni
Well, then you didn't read carefully enough: http://www.w3.org/TR/REC-xml/#sec-line-ends "To simplify the tasks of applications, the XML processor MUST behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by tran

RE: XERCES - SAXParser: newlines in CDATA sections

2004-04-18 Thread david_n_bertoni
> hmm, can someone try this out ? the issue kind of frustrates my progress... If you're so frustrated, there are lots of XML resources out on the web. How about just reading the XML recommendation? http://www.w3.org/TR/REC-xml > one of the tags in my source XML contains a CDATA section, with

RE: Encapsulation of XMLCh* string

2004-03-24 Thread david_n_bertoni
Hi Gareth, I was thinking that would be the thing to do, and it could be put somewhere under ifdef, since basic_string is still not ubiquitous. I might have some free time to give it a shot. Dave |-+> | | Gareth Reakes

RE: Encapsulation of XMLCh* string

2004-03-24 Thread david_n_bertoni
Hi Scott, Yes, I wasn't implying that it would be easy, but it is possible to do, and might be worthwhile, if you really want to use the functionality of std::basic_string and you have multiple platforms to cover. My experience has been that transcoding to the local code page is only an answ

RE: memory corruption when deleting the SAXParser

2004-03-24 Thread david_n_bertoni
This is a FAQ: http://xml.apache.org/xerces-c/faq-build.html#faq-13 You must be using the multithreaded DLL run-time library, or the Debug multithreaded DLL run-time library, and you must link your program with the appropriate release or debug Xerces library. Dave |-+--

RE: Encapsulation of XMLCh* string

2004-03-24 Thread david_n_bertoni
Another possibility is for you to use a more modern STL, such as STLport. Or, you can simply use std::vector instead of std::string. It doesn't give you as much functionality as std::basic_string, but it's a start. Xalan-C has a class called XalanDOMString that I wrote on top of std::vector,

RE: Encapsulation of XMLCh* string

2004-03-24 Thread david_n_bertoni
You don't transcode, which is what the problem is in the first place. Dave |-+---> | | Sylvain Duval | | | <[EMAIL PROTECTED]| | | > | | | | | |

RE: Encapsulation of XMLCh* string

2004-03-24 Thread david_n_bertoni
Using std::wstring is not very portable, because wchar_t may not be the same as XMLCh. In fact, it will only be the same on a very few platforms. Why not use std::basic_string instead, if your compiler's standard library has templated string classes? That way, you're still guaranteed interop

Re: using the latest version of xerces

2004-03-22 Thread david_n_bertoni
Take a look at the documentation regarding migrating to C++ namespaces: http://xml.apache.org/xerces-c/migrate_archive.html Dave |-+---> | | Nathan Smith| | | <[EMAIL PROTECTED]| | | xar.com>|

RE: memory corruption when deleting the SAXParser

2004-03-19 Thread david_n_bertoni
> I don't recall whether creating a parser on the stack is supported, but you seem to have strong evidence that the answer is "no." I create parsers on the stack all the time without problems. Dave - To unsubscribe, e-mail:

Re: Making includes available on Windows?

2004-03-18 Thread david_n_bertoni
Hi Joanne, Yes, there is a Perl script available that runs under Cygwin. Look at xml-xerces/c/scripts/packageBinaries.pl. Dave |-+---> | | Joanne Bogart | | | <[EMAIL PROTECTED]| | | rd.edu> |

RE: SAX v DOM speed

2004-03-18 Thread david_n_bertoni
> That's what I was expecting. That's what worries me > > I don't do much in the events. > I copy the pointer for element names and the string for text > and a small bit of management to make sure there are no leaks or other nastiness > I am doing a progressive parse but I wouldn't have thought

RE: Validating that an XML file isn't corrupt

2004-03-16 Thread david_n_bertoni
> > that is what the parser does if validation is off/ there is no > > reference to a DTD. > > > Ok, and to enable this, do I call something like this: > > parser->setValidationScheme( AbstractDOMParser::Val_Always ); No, you don't need to do that. Checked that a document is well-for

Re: SV:Re: SV:HandlerBase problem with SAXXMLREADER reader

2004-03-16 Thread david_n_bertoni
Daniel, Can you please turn off requesting a return receipt when you post to this list! Thanks! Dave |-+---> | | "Gröndal Daniel"| | || | | | | | 03/16/2004 02:15|

SV:Re: SV:HandlerBase problem with SAXXMLREADER reader

2004-03-16 Thread david_n_bertoni
Return Receipt Your SV:Re: SV:HandlerBase problem with SAXXMLREADER reader document :

SV:HandlerBase problem with SAXXMLREADER reader

2004-03-16 Thread david_n_bertoni
Return Receipt Your SV:HandlerBase problem with SAXXMLREADER reader document :

SAX2XMLReader and features?

2004-03-15 Thread david_n_bertoni
Return Receipt Your SAX2XMLReader and features? document :

Re: Where can I find zip.exe?

2004-03-04 Thread david_n_bertoni
OK, how about Google? http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=zip%2Eexe which leads to: http://lists.wku.edu/pipermail/info-zip/2002-April/71.html which leads to: http://www.info-zip.org/pub/infozip/ All of which took about 20 seconds. Dave |--

RE: Placement operator delete invocation is not yet implemented.

2004-03-03 Thread david_n_bertoni
Hi, The mangled names suggest you have old objects or old header files in the build, since the missing symbols are in the namespace "xercesc_2_2". >From what I can see, this doesn't have anything to do with building the Xerces-C library, although your email seemed to suggest the missing symbo

RE: Placement operator delete invocation is not yet implemented.

2004-03-03 Thread david_n_bertoni
Hi, This warning does not cause any unresolved symbol problems on HP. I get the same warnings when I build, but have no problems linking and running with Xerces-C 2.5. If you posted a _small_ snippet of some of the unresolved symbols, someone might be able to help, but you've not done that y

Re: Placement operator delete invocation is not yet implemented.

2004-03-02 Thread david_n_bertoni
Hi Neil, We build Xalan-C with that version of the compiler and we still see those warnings. We compile with +p, which may explain why we get them, and Xerces-C does not. Dave |-+---> | | Neil Graham | | | <[EMAIL PRO

Re: Placement operator delete invocation is not yet implemented.

2004-03-02 Thread david_n_bertoni
I don't see any unresolved symbols, only warnings that the HP compiler does not implement part of the C++ standard. Dave |-+---> | | "Appaji, Prahalad P | | | [ITS]" | | | <[EM

RE: splits in character data using SAX

2004-02-24 Thread david_n_bertoni
You save all of the text in your own buffer, until you get an event that's not characters(). I've never used progressive parsing, and there's no real standard, so you'll have to experiment with it to see how it works. Dave

Re: splits in character data using SAX

2004-02-23 Thread david_n_bertoni
Hi, The parser will also make multiple calls to the characters function when it encounters an entity reference, so your plan is likely unworkable. Also, it's quite possible the buffer size could change in the future, or the parser's behavior could change for some other reason. Dave

Re: Annotations

2004-02-20 Thread david_n_bertoni
Hi Endre, You don't need to downcast. DOMNode::getNodeName() will return the target, and DOMNode::getNodeValue() will return the data. If you want to downcast, you can just use a static cast, after you've called DOMNode::getNodeType() and verified it's a processing instruction. Dave

Re: Seg fault when receiving cyrillic characters

2004-01-02 Thread david_n_bertoni
Hi, Translating to the local code page is a very bad application design. You should transcode to UTF-8 instead, since you will be guaranteed that all characters can be represented. Probably what's happening is some characters are not representable in the local code page, and XMLString::trans

Re: segmentation fault while writing apache modules using xerces

2003-12-04 Thread david_n_bertoni
Have you called the static initialization routine? See XMLPlatformUtils::Initialize() and XMLPlatformUtils::Terminate() for more information. This is well documented. Dave

Re: Compilation problem in "xerces-c-src_2_3_0" during gmake in HP-UX-11

2003-12-02 Thread david_n_bertoni
The options you see being used are for the HP compiler, not for gcc. I don't think anyone has ever ported Xerces to the gcc compiler on HP-UX. Dave

Re: Append Child, Insert Before, Remove Child, and Replace Child

2003-11-05 Thread david_n_bertoni
> Actually I had already read that and found it to be somewhat ambiguous. > > Method: Append Child > Adds the node newChild to the end of the list of children of this node. If > the newChild is already in the tree, it is first removed. > Parameters: > newChild of type Node > The node to a

Re: Append Child, Insert Before, Remove Child, and Replace Child

2003-11-05 Thread david_n_bertoni
> Don't everybody answer at once ;-) > > I apologize if this question is obvious or inappropriate, but it is a > behavior of the parser that I haven't been able to definitively classify > yet. So, if anyone could offer any help I would really appreciate it. The DOM recommendation will answer

Re: crash when using dom parser to parse an invalid xml file

2003-10-30 Thread david_n_bertoni
on never caught any exceptions. and the crash actually happens inside the parser code and not my application. I thought there might be some sort of flags that I could set so that the parser could throw exceptions in cases such as this. Regards, Xuefu

Re: crash when using dom parser to parse an invalid xml file

2003-10-30 Thread david_n_bertoni
Are you catching the appropriate exceptions? If not, your application will crash. See the sample applications and the documentation for more information. Dave

Re: Memory management: the XMemory class

2003-10-22 Thread david_n_bertoni
> 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

Re: base64 encoding

2003-10-21 Thread david_n_bertoni
Hi Adam, You might want to do a search of the mailing list archives, because I remember a previous discussion about this and it related to how XML schema specifies Base64 should work: http://marc.theaimsgroup.com/?l=xerces-c-dev&w=2&r=1&s=base64&q=b This may or may not be relevant... Dav

Re: Memory management: the XMemory class

2003-10-17 Thread david_n_bertoni
> 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 some > management of its own, however, "aligning" the pointer it returns by

Re: SAX2 Progressive Parse

2003-10-14 Thread david_n_bertoni
>try >{ >SAX2PrintHandlers handler(encodingName, unRepFlags, expandNamespaces); >parser->setContentHandler(&handler); >parser->setErrorHandler(&handler); >//parser->parse(xmlFile); >//errorCount = parser->getErrorCount(); >} > >catch (cons

Re: Deleting something returned by XMLString::replicate crashes when application is using the release build of Xerces-C++ ?

2003-10-01 Thread david_n_bertoni
Hi Gareth, A better solution would be make XMLString::replicate() a non-inline function. Too many people already are confused by XMLString::transcode(), etc., and I worry that an exception like this will just create more confusion. It would great if people actually read the documentation bef

Re: Deleting something returned by XMLString::replicate crashes when application is using the release build of Xerces-C++ ?

2003-10-01 Thread david_n_bertoni
Hi all, I think the problem is that XMLString::replicate() is inline, so the memory will come from the heap of the particular module that's making the call. The defeats the purpose of having XMLString::release(). Dave

Re: 'this' used in base member initializer list

2003-09-29 Thread david_n_bertoni
Hi Sean, > Problem being that, according to the standard, 'this' isn't required to be > a valid pointer until the body of the constructor has been entered. A fix > would likely require adding a new protected method to the parent class to > pass the pointer. Can you provide a reference to the

  1   2   3   >