You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Holger Flörke <fl...@doctronic.de> on 2001/12/12 17:16:30 UTC

Getting Length of null-terminated XMLCh*

Hi there,

   in many SAX-Methods of the ContentHandler-Class you receive a null 
terminated XMLCh* for processing

   ContentHandler::startElement(const XMLCh* const uri,...)

Which way is the fastest to get a DOMString-Object out of this XMLCh*?

I try "DOMString oString(uri)", but the system has to walk twice through 
the memory. First to get the correct length of "uri" and the to copy the 
data. Can I get the size or a DOMString object out of the parser?

HolgeR


-- 
holger floerke                     d  o  c  t  r  o  n  i  c
email floerke@doctronic.de         information publishing + retrieval
phone +49 2222 9292 90             http://www.doctronic.de


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org