The m_pDoc member is of type DOMDocument*. Take a look at the API Documentation
(http://xml.apache.org/xerces-c/apiDocs/index.html) and check out the classes I use
below to create a new XML document.
///
/// @return Root element of the new document on success; otherwise NULL.
DOMElement* XSLSerializer::CreateDocument(LPCXSTR psxElem)
{
// Create document.
DOMImplementation* pImpl =
DOMImplementationRegistry::getDOMImplementation(_X("LS"));
DOMDocumentType* pDocType = pImpl->createDocumentType(psxElem, NULL,
_X("dialogue.dtd"));
m_pDoc = pImpl->createDocument(DXFDefs::X_URI_DIALOGUE, psxElem, pDocType);
DOMElement* pRoot = m_pDoc->getDocumentElement();
return pRoot;
}
Adam Heinz
Senior Software Developer
Exstream Software
-----Original Message-----
From: Baccar MEDDEB [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 1:20 PM
To: [EMAIL PROTECTED]
Subject: XML Header v2.4
Hi;
I'd like to export a file to xml format, I have used the following call
to write the file header (with xerces 1.7):
........
DOM_XMLDecl xmlDecl = doc.createXMLDecl( "1.0", format.GrabCString(),
"yes" );
doc.appendChild( xmlDecl );
........
How can I did the equivalent with xerces 2.4?
Thanx for help.
Baccar M.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]