Hello, all.
I was trying to create a template from scratch.
Can not insert <?xml-stylesheet tag before the root element, its appear
at the end of xml after root element closing tag. Code is like that:
 
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* doc = impl->createDocument(
                           NULL,                        // root element
namespace URI.
                           _T("metadata"),      // root element name
                           NULL);                       // document type
object (DTD).
DOMProcessingInstruction* procInstruction =
doc->createProcessingInstruction(_T("xml-stylesheet"),
_T("type=\"text/xsl\" href=\"my.xsl\""));       
doc->appendChild(procInstruction);

Hope it is not a bug. 

Also, what command can insert XSD location in the root element like
that:
<metadata xmlns="..." xmlns:xsi="..." xsi:schemaLocation="my.xsd">

Waiting for any help.

Thank you.
gok

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to