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
c26c5599
Commit
c26c5599
authored
Mar 13, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add IXMLDOMSelection stub.
parent
c48b7566
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
17 deletions
+52
-17
Makefile.in
dlls/msxml3/Makefile.in
+1
-1
domdoc.c
dlls/msxml3/domdoc.c
+1
-1
element.c
dlls/msxml3/element.c
+1
-1
msxml_private.h
dlls/msxml3/msxml_private.h
+12
-13
node.c
dlls/msxml3/node.c
+1
-1
selection.c
dlls/msxml3/selection.c
+0
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+36
-0
No files found.
dlls/msxml3/Makefile.in
View file @
c26c5599
...
...
@@ -24,9 +24,9 @@ C_SRCS = \
nodemap.c
\
parseerror.c
\
pi.c
\
queryresult.c
\
saxreader.c
\
schema.c
\
selection.c
\
stylesheet.c
\
text.c
\
uuid.c
\
...
...
dlls/msxml3/domdoc.c
View file @
c26c5599
...
...
@@ -1926,7 +1926,7 @@ static HRESULT WINAPI domdoc_getElementsByTagName(
XPath
=
This
->
properties
->
XPath
;
This
->
properties
->
XPath
=
TRUE
;
query
=
tagName_to_XPath
(
tagName
);
hr
=
queryresult_create
((
xmlNodePtr
)
get_doc
(
This
),
query
,
resultList
);
hr
=
create_selection
((
xmlNodePtr
)
get_doc
(
This
),
query
,
resultList
);
xmlFree
(
query
);
This
->
properties
->
XPath
=
XPath
;
...
...
dlls/msxml3/element.c
View file @
c26c5599
...
...
@@ -1278,7 +1278,7 @@ static HRESULT WINAPI domelem_getElementsByTagName(
XPath
=
is_xpathmode
(
get_element
(
This
)
->
doc
);
set_xpathmode
(
get_element
(
This
)
->
doc
,
TRUE
);
query
=
tagName_to_XPath
(
tagName
);
hr
=
queryresult_create
(
get_element
(
This
),
query
,
resultList
);
hr
=
create_selection
(
get_element
(
This
),
query
,
resultList
);
xmlFree
(
query
);
set_xpathmode
(
get_element
(
This
)
->
doc
,
XPath
);
...
...
dlls/msxml3/msxml_private.h
View file @
c26c5599
...
...
@@ -213,23 +213,22 @@ static inline xmlNodePtr wine_xmlFirstElementChild(xmlNodePtr parent)
#endif
/* constructors */
extern
IUnknown
*
create_domdoc
(
xmlNodePtr
document
);
extern
IUnknown
*
create_domdoc
(
xmlNodePtr
);
extern
IUnknown
*
create_xmldoc
(
void
);
extern
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
);
extern
IUnknown
*
create_element
(
xmlNodePtr
element
);
extern
IUnknown
*
create_attribute
(
xmlNodePtr
attribute
);
extern
IUnknown
*
create_text
(
xmlNodePtr
text
);
extern
IUnknown
*
create_pi
(
xmlNodePtr
pi
);
extern
IUnknown
*
create_comment
(
xmlNodePtr
comment
);
extern
IUnknown
*
create_cdata
(
xmlNodePtr
text
);
extern
IXMLDOMNode
*
create_node
(
xmlNodePtr
);
extern
IUnknown
*
create_element
(
xmlNodePtr
);
extern
IUnknown
*
create_attribute
(
xmlNodePtr
);
extern
IUnknown
*
create_text
(
xmlNodePtr
);
extern
IUnknown
*
create_pi
(
xmlNodePtr
);
extern
IUnknown
*
create_comment
(
xmlNodePtr
);
extern
IUnknown
*
create_cdata
(
xmlNodePtr
);
extern
IXMLDOMNodeList
*
create_children_nodelist
(
xmlNodePtr
);
extern
IXMLDOMNamedNodeMap
*
create_nodemap
(
const
xmlNodePtr
);
extern
IUnknown
*
create_doc_Implementation
(
void
);
extern
IUnknown
*
create_doc_fragment
(
xmlNodePtr
fragment
);
extern
IUnknown
*
create_doc_entity_ref
(
xmlNodePtr
entity
);
extern
IUnknown
*
create_doc_type
(
xmlNodePtr
doctype
);
extern
HRESULT
queryresult_create
(
xmlNodePtr
node
,
xmlChar
*
szQuery
,
IXMLDOMNodeList
**
out
);
extern
IUnknown
*
create_doc_fragment
(
xmlNodePtr
);
extern
IUnknown
*
create_doc_entity_ref
(
xmlNodePtr
);
extern
IUnknown
*
create_doc_type
(
xmlNodePtr
);
extern
HRESULT
create_selection
(
xmlNodePtr
,
xmlChar
*
,
IXMLDOMNodeList
**
);
/* data accessors */
xmlNodePtr
xmlNodePtr_from_domnode
(
IXMLDOMNode
*
iface
,
xmlElementType
type
);
...
...
dlls/msxml3/node.c
View file @
c26c5599
...
...
@@ -1032,7 +1032,7 @@ HRESULT node_select_nodes(const xmlnode *This, BSTR query, IXMLDOMNodeList **nod
if
(
!
query
||
!
nodes
)
return
E_INVALIDARG
;
str
=
xmlchar_from_wchar
(
query
);
hr
=
queryresult_create
(
This
->
node
,
str
,
nodes
);
hr
=
create_selection
(
This
->
node
,
str
,
nodes
);
heap_free
(
str
);
return
hr
;
...
...
dlls/msxml3/
queryresult
.c
→
dlls/msxml3/
selection
.c
View file @
c26c5599
This diff is collapsed.
Click to expand it.
dlls/msxml3/tests/domdoc.c
View file @
c26c5599
...
...
@@ -8603,6 +8603,40 @@ static void test_get_attributes(void)
free_bstrs
();
}
static
void
test_selection
(
void
)
{
IXMLDOMSelection
*
selection
;
IXMLDOMNodeList
*
list
;
IXMLDOMDocument
*
doc
;
VARIANT_BOOL
b
;
HRESULT
hr
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
hr
=
IXMLDOMDocument2_loadXML
(
doc
,
_bstr_
(
szExampleXML
),
&
b
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root"
),
&
list
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMNodeList_QueryInterface
(
list
,
&
IID_IXMLDOMSelection
,
(
void
**
)
&
selection
);
EXPECT_HR
(
hr
,
S_OK
);
IXMLDOMSelection_Release
(
selection
);
IXMLDOMNodeList_Release
(
list
);
hr
=
IXMLDOMDocument_get_childNodes
(
doc
,
&
list
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMNodeList_QueryInterface
(
list
,
&
IID_IXMLDOMSelection
,
(
void
**
)
&
selection
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
IXMLDOMNodeList_Release
(
list
);
IXMLDOMDocument_Release
(
doc
);
free_bstrs
();
}
START_TEST
(
domdoc
)
{
IXMLDOMDocument
*
doc
;
...
...
@@ -8674,6 +8708,8 @@ START_TEST(domdoc)
test_get_dataType
();
test_get_nodeTypeString
();
test_get_attributes
();
test_selection
();
test_xsltemplate
();
CoUninitialize
();
...
...
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