Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Processing instruction Processing instructionTo: NULL Date: 8/2/2004 5:05:00 PM Hi,
I'm using msxml4 to insert a processing instruction inside an XML node (
pElementNode)
VARIANT v1;
v1.vt = VT_I4;
V_I4(&v1) = MSXML2::NODE_PROCESSING_INSTRUCTION;
pPiNode = pXMLDoc->createNode(v1,_bstr_t("DEX"),L"");
pElement = pPiNode;
pElement->setAttribute("binary-file",_bstr_t("test.txt")); ----------->
This throw an exception
pElementNode->appendChild(pPiNode);
I'm using this code but it doesn't work.
What is wrong ???
I 've tried also createProcessingInstruction method but it doesn't work.
How can I insert a PI inside a node ?
Thanks in advance,
Michele
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
