Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
89f1bfab
Commit
89f1bfab
authored
Jul 16, 2008
by
Zhangrong Huang
Committed by
Alexandre Julliard
Jul 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add support for accessing document node.
parent
1e43f207
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
domdoc.c
dlls/msxml3/domdoc.c
+14
-0
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-1
node.c
dlls/msxml3/node.c
+2
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+1
-11
No files found.
dlls/msxml3/domdoc.c
View file @
89f1bfab
...
...
@@ -2287,6 +2287,20 @@ HRESULT DOMDocument_create(IUnknown *pUnkOuter, LPVOID *ppObj)
return
hr
;
}
IUnknown
*
create_domdoc
(
xmlNodePtr
document
)
{
HRESULT
hr
;
LPVOID
pObj
=
NULL
;
TRACE
(
"(%p)
\n
"
,
document
);
hr
=
DOMDocument_create_from_xmldoc
((
xmlDocPtr
)
document
,
(
IXMLDOMDocument2
**
)
&
pObj
);
if
(
FAILED
(
hr
))
return
NULL
;
return
(
IUnknown
*
)
pObj
;
}
#else
HRESULT
DOMDocument_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
...
...
dlls/msxml3/msxml_private.h
View file @
89f1bfab
...
...
@@ -32,7 +32,7 @@
#endif
/* constructors */
extern
IUnknown
*
create_domdoc
(
void
);
extern
IUnknown
*
create_domdoc
(
xmlNodePtr
document
);
extern
IUnknown
*
create_xmldoc
(
void
);
extern
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
);
extern
IUnknown
*
create_basic_node
(
xmlNodePtr
node
,
IUnknown
*
pUnkOuter
);
...
...
dlls/msxml3/node.c
View file @
89f1bfab
...
...
@@ -1450,8 +1450,8 @@ IXMLDOMNode *create_node( xmlNodePtr node )
pUnk
=
create_comment
(
node
);
break
;
case
XML_DOCUMENT_NODE
:
ERR
(
"shouldn't be here!
\n
"
);
return
NULL
;
pUnk
=
create_domdoc
(
node
);
break
;
default:
FIXME
(
"only creating basic node for type %d
\n
"
,
node
->
type
);
pUnk
=
create_basic_node
(
node
,
NULL
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
89f1bfab
...
...
@@ -330,8 +330,7 @@ static void node_to_string(IXMLDOMNode *node, char *buf)
* results we "fix" it */
if
(
r
==
S_OK
)
ole_check
(
IXMLDOMNode_get_nodeType
(
new_node
,
&
parent_type
));
/* we need also to workaround the no document node problem - see below */
if
(((
r
==
S_FALSE
&&
type
!=
NODE_DOCUMENT
)
||
parent_type
==
NODE_DOCUMENT
)
&&
type
!=
NODE_PROCESSING_INSTRUCTION
&&
pos
==
1
)
if
((
parent_type
==
NODE_DOCUMENT
)
&&
type
!=
NODE_PROCESSING_INSTRUCTION
&&
pos
==
1
)
{
todo_wine
ok
(
FALSE
,
"The first child of the document node in MSXML is the <?xml ... ?> processing instruction
\n
"
);
pos
++
;
...
...
@@ -347,15 +346,6 @@ static void node_to_string(IXMLDOMNode *node, char *buf)
*
(
buf
++
)
=
'.'
;
}
/* currently we can't access document node in wine. All our examples this is the
* root node so to be able to test query results we add it */
if
(
type
!=
NODE_DOCUMENT
)
{
todo_wine
ok
(
FALSE
,
"Document node is not the last returned node!
\n
"
);
*
(
buf
++
)
=
'.'
;
*
(
buf
++
)
=
'D'
;
*
(
buf
++
)
=
'1'
;
}
*
buf
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment