Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a valid XML processing instruction node

0 views
Skip to first unread message

Hapa

unread,
Jul 30, 2009, 6:30:36 AM7/30/09
to
Hello all,

we are using MSXML.dll version1 (VC++6.0) and we are trying to write into
the processing instruction node some more text to be confirm to our
customers specification.

CComBSTR PITarget = ("xml");
CComBSTR PITarget1 = ("version=\"1.0\" encoding=\"UTF-8\"");
V_I4(&NodeType) = MSXML::NODE_PROCESSING_INSTRUCTION;
CVCXMLDOMNodePtr pProcInstr=NULL;

//case 1:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, PITarget1,
&pProcInstr)
->>hr == 1???? and pProcInstr=0xcccccc?

//case 2:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, NULL,
&pProcInstr)
->>hr == 0 and pProcInstr=valid pointer


So the Node could not be created in case PITarget1 points to a string
object!
What is wrong with case 1?

Thanks
hapa.


mzdude

unread,
Jul 30, 2009, 8:11:39 AM7/30/09
to

Please don't cross post. You have already recieved your answer
on microsoft.public.vc.language

http://tinyurl.com/meawv8

0 new messages