Commit 7c34694c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

msxml3: Implement createProcessingInstruction with a stub PI object.

parent 2b01f6e0
...@@ -19,6 +19,7 @@ C_SRCS = \ ...@@ -19,6 +19,7 @@ C_SRCS = \
nodelist.c \ nodelist.c \
nodemap.c \ nodemap.c \
parseerror.c \ parseerror.c \
pi.c \
regsvr.c \ regsvr.c \
text.c \ text.c \
uuid.c uuid.c
......
...@@ -744,8 +744,23 @@ static HRESULT WINAPI domdoc_createProcessingInstruction( ...@@ -744,8 +744,23 @@ static HRESULT WINAPI domdoc_createProcessingInstruction(
BSTR data, BSTR data,
IXMLDOMProcessingInstruction** pi ) IXMLDOMProcessingInstruction** pi )
{ {
FIXME("\n"); xmlNodePtr xmlnode;
return E_NOTIMPL; domdoc *This = impl_from_IXMLDOMDocument( iface );
xmlChar *xml_target, *xml_content;
TRACE("%p->(%s %s %p)\n", iface, debugstr_w(target), debugstr_w(data), pi);
xml_target = xmlChar_from_wchar((WCHAR*)target);
xml_content = xmlChar_from_wchar((WCHAR*)data);
xmlnode = xmlNewDocPI(get_doc(This), xml_target, xml_content);
TRACE("created xmlptr %p\n", xmlnode);
*pi = (IXMLDOMProcessingInstruction*)create_pi(xmlnode);
HeapFree(GetProcessHeap(), 0, xml_content);
HeapFree(GetProcessHeap(), 0, xml_target);
return S_OK;
} }
......
...@@ -35,6 +35,7 @@ extern IUnknown *create_basic_node( xmlNodePtr node, IUnknown *pUnkOuter ...@@ -35,6 +35,7 @@ extern IUnknown *create_basic_node( xmlNodePtr node, IUnknown *pUnkOuter
extern IUnknown *create_element( xmlNodePtr element, IUnknown *pUnkOuter ); extern IUnknown *create_element( xmlNodePtr element, IUnknown *pUnkOuter );
extern IUnknown *create_attribute( xmlNodePtr attribute ); extern IUnknown *create_attribute( xmlNodePtr attribute );
extern IUnknown *create_text( xmlNodePtr text ); extern IUnknown *create_text( xmlNodePtr text );
extern IUnknown *create_pi( xmlNodePtr pi );
extern IUnknown *create_comment( xmlNodePtr comment ); extern IUnknown *create_comment( xmlNodePtr comment );
extern IXMLDOMNodeList *create_nodelist( xmlNodePtr node ); extern IXMLDOMNodeList *create_nodelist( xmlNodePtr node );
extern IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node ); extern IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment