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 Andreas Volz <av...@traffic-consult.de> on 2002/08/29 10:14:23 UTC

xml "header"

Am Dienstag, 27. August 2002 15:32 schrieb Daniel Pyra:
> Hi,
>
> try this one:
>
> DOM_Document newdoc = DOM_Document::createDocument() ;
> DOM_XMLDecl declnode = newdoc.createXMLDecl("1.0", "UTF-8", "no") ;
> DOM_Element rootelem = newdoc.createElement("document") ;
>
> newdoc.appendChild(declnode) ;
>
> Now we have got:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document />
>
> Is it sth you expect?

Yes it is. But this seems to be xerces 1.7 or before code. I use xerces 2.0 
and the Objects and methods you descibed doesn't further exist.

DOM_XMLDecl = XMLElementDecl ? (But now virtual)
newdoc.createXMLDecl = newdoc.setEncode ? (But return nothing)

Is there a document in the web where the differences between xerces 2.0 and 
your xerces version are descibed?

Thanks
Andreas Volz

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