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
af502d23
Commit
af502d23
authored
Jan 10, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLDocument::get_doctype().
parent
04288208
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
xmldoc.c
dlls/msxml3/tests/xmldoc.c
+10
-0
xmldoc.c
dlls/msxml3/xmldoc.c
+14
-2
No files found.
dlls/msxml3/tests/xmldoc.c
View file @
af502d23
...
...
@@ -39,6 +39,7 @@ static void create_xml_file(LPCSTR filename)
static
const
char
data
[]
=
"<?xml version=
\"
1.0
\"
?>
\n
"
"<!DOCTYPE BankAccount>
\n
"
"<BankAccount>
\n
"
" <Number>1234</Number>
\n
"
" <Name>Captain Ahab</Name>
\n
"
...
...
@@ -125,6 +126,15 @@ static void test_xmldoc(void)
ok
(
!
lstrcmpW
(
name
,
szVersion
),
"Expected 1.0, got %s
\n
"
,
wine_dbgstr_w
(
name
));
SysFreeString
(
name
);
/* doctype */
hr
=
IXMLDocument_get_doctype
(
doc
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
hr
=
IXMLDocument_get_doctype
(
doc
,
&
name
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
name
,
szBankAccount
),
"Expected BANKACCOUNT, got %s
\n
"
,
wine_dbgstr_w
(
name
));
SysFreeString
(
name
);
hr
=
IXMLDocument_get_root
(
doc
,
&
element
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
element
!=
NULL
,
"Expected non-NULL element
\n
"
);
...
...
dlls/msxml3/xmldoc.c
View file @
af502d23
...
...
@@ -451,8 +451,20 @@ static HRESULT WINAPI xmldoc_get_version(IXMLDocument *iface, BSTR *p)
static
HRESULT
WINAPI
xmldoc_get_doctype
(
IXMLDocument
*
iface
,
BSTR
*
p
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
p
);
return
E_NOTIMPL
;
xmldoc
*
This
=
impl_from_IXMLDocument
(
iface
);
xmlDtd
*
dtd
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_INVALIDARG
;
dtd
=
xmlGetIntSubset
(
This
->
xmldoc
);
if
(
!
dtd
)
return
S_FALSE
;
*
p
=
bstr_from_xmlChar
(
dtd
->
name
);
CharUpperBuffW
(
*
p
,
SysStringLen
(
*
p
));
return
S_OK
;
}
static
HRESULT
WINAPI
xmldoc_get_dtdURl
(
IXMLDocument
*
iface
,
BSTR
*
p
)
...
...
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