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 Craig Noah <Cr...@sterling.com> on 2000/05/09 16:51:57 UTC

CreateXMLDecl

I have been working with the DOMPrint sample.  When I use the -x flag to
enable the creation of the XML Declaration node, the sample dies with a
core dump.  I looked at the code, and the DOMPrint sample has the
following line to enable this feature:
        parser->setToCreateXMLDeclTypeNode(doCreateXMLDecl);
but when I looked in the code for DOMParser, the function
setToCreateXMLDeclTypeNode does not exist.  Am I looking in the wrong
file?  Is there something special I need to do to make this work?

--
Craig Noah                  INTERNET: Craig.Noah@sterling.com
Software Engineer

Computer Associates
1404 Fort Crook Road South     Phone:    (402) 291-8300 x 284
Bellevue,  NE   68005-2969     FAX:      (402) 291-4362




Re: CreateXMLDecl

Posted by Arundhati Bhowmick <ar...@hyperreal.org>.
I'm not sure how you mixed up with the new and old files. The function is
declared and defined in DOMParser.hpp and I did verify it in the repository.
Please, do extract the source and the samples and let me know if it fails
again.
Arundhati

Craig Noah wrote:

> I have been working with the DOMPrint sample.  When I use the -x flag to
> enable the creation of the XML Declaration node, the sample dies with a
> core dump.  I looked at the code, and the DOMPrint sample has the
> following line to enable this feature:
>         parser->setToCreateXMLDeclTypeNode(doCreateXMLDecl);
> but when I looked in the code for DOMParser, the function
> setToCreateXMLDeclTypeNode does not exist.  Am I looking in the wrong
> file?  Is there something special I need to do to make this work?
>
> --
> Craig Noah                  INTERNET: Craig.Noah@sterling.com
> Software Engineer
>
> Computer Associates
> 1404 Fort Crook Road South     Phone:    (402) 291-8300 x 284
> Bellevue,  NE   68005-2969     FAX:      (402) 291-4362
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org