Hi,
XalanNode::cloneNode() is not supported, so you will get an
XalanDOMException if you call it. If you're not catching that exception,
your program will terminate.
Xalan's default implementation of the XalanDOM classes is a read-only
subset of the possible functionality and is highly optimized for fast XSLT
processing. You should not attempt to use it as a general-purpose DOM
implementation.
Dave
Nacho Conde <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
03/30/2005 08:30 AM
Please respond to xalan-c-users
To: [email protected]
cc: (bcc: David N Bertoni/Cambridge/IBM)
Subject: Problem with method cloneNode()
Hi, another question..
I have a problem with method cloneNode(), the result is a core, when i
try to clone a xalanDocument ..
the pseudocode is this...
XercesParserLiaison theParserXerces;
XercesDOMSupport theXercesDomSupport;
theParserXerces(theXercesDomSupport)
bool validation=false;
XalaDocument* theDocument;
XalaDocument* Documento;
const XalanDOMString theFileName(filePath);
const LocalFileInputSource theInputSource(theFileName.c_str());
theParserXerces.setUseValidation(validation);
Documento= theParserXerces.parseXMLStream(inputSource);
theDocument= Documento->cloneNode(deep);
return theDocument;
the dbx show, that the core is produced by cloneNode(), and when i
parse without cloneNode method the result is ok.
thanks
Nacho