Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
897b77ce
Commit
897b77ce
authored
Aug 26, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix attributes formatting.
parent
16744ed6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
mxwriter.c
dlls/msxml3/mxwriter.c
+3
-2
saxreader.c
dlls/msxml3/tests/saxreader.c
+9
-5
No files found.
dlls/msxml3/mxwriter.c
View file @
897b77ce
...
...
@@ -754,8 +754,6 @@ static HRESULT WINAPI mxwriter_saxcontent_startElement(
hr
=
ISAXAttributes_getLength
(
attr
,
&
length
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
length
)
xmlOutputBufferWriteString
(
This
->
buffer
,
" "
);
for
(
i
=
0
;
i
<
length
;
i
++
)
{
const
WCHAR
*
str
;
...
...
@@ -764,6 +762,9 @@ static HRESULT WINAPI mxwriter_saxcontent_startElement(
hr
=
ISAXAttributes_getQName
(
attr
,
i
,
&
str
,
&
len
);
if
(
FAILED
(
hr
))
return
hr
;
/* space separator in front of every attribute */
xmlOutputBufferWriteString
(
This
->
buffer
,
" "
);
s
=
xmlchar_from_wchar
(
str
);
xmlOutputBufferWriteString
(
This
->
buffer
,
(
char
*
)
s
);
heap_free
(
s
);
...
...
dlls/msxml3/tests/saxreader.c
View file @
897b77ce
...
...
@@ -1394,6 +1394,7 @@ struct writer_startendelement_t {
const
char
*
qname
;
const
char
*
output
;
HRESULT
hr
;
ISAXAttributes
*
attr
;
};
static
const
struct
writer_startendelement_t
writer_startendelement
[]
=
{
...
...
@@ -1475,6 +1476,13 @@ static const struct writer_startendelement_t writer_startendelement[] = {
{
&
CLSID_MXXMLWriter30
,
EndElement
,
"uri"
,
"local"
,
"uri:local2"
,
"</uri:local2>"
,
S_OK
},
{
&
CLSID_MXXMLWriter40
,
EndElement
,
"uri"
,
"local"
,
"uri:local2"
,
"</uri:local2>"
,
S_OK
},
{
&
CLSID_MXXMLWriter60
,
EndElement
,
"uri"
,
"local"
,
"uri:local2"
,
"</uri:local2>"
,
S_OK
},
/* with attributes */
{
&
CLSID_MXXMLWriter
,
StartElement
,
"uri"
,
"local"
,
"uri:local"
,
"<uri:local a:attr1=
\"
a1
\"
attr2=
\"
a2
\"
>"
,
S_OK
,
&
saxattributes
},
/* 65 */
{
&
CLSID_MXXMLWriter30
,
StartElement
,
"uri"
,
"local"
,
"uri:local"
,
"<uri:local a:attr1=
\"
a1
\"
attr2=
\"
a2
\"
>"
,
S_OK
,
&
saxattributes
},
{
&
CLSID_MXXMLWriter40
,
StartElement
,
"uri"
,
"local"
,
"uri:local"
,
"<uri:local a:attr1=
\"
a1
\"
attr2=
\"
a2
\"
>"
,
S_OK
,
&
saxattributes
},
{
&
CLSID_MXXMLWriter60
,
StartElement
,
"uri"
,
"local"
,
"uri:local"
,
"<uri:local a:attr1=
\"
a1
\"
attr2=
\"
a2
\"
>"
,
S_OK
,
&
saxattributes
},
{
NULL
}
};
...
...
@@ -1557,7 +1565,7 @@ static void test_mxwriter_startendelement_batch(const struct writer_startendelem
if
(
table
->
type
==
StartElement
)
hr
=
ISAXContentHandler_startElement
(
content
,
_bstr_
(
table
->
uri
),
lstrlen
(
table
->
uri
),
_bstr_
(
table
->
local_name
),
lstrlen
(
table
->
local_name
),
_bstr_
(
table
->
qname
),
lstrlen
(
table
->
qname
),
NULL
);
_bstr_
(
table
->
local_name
),
lstrlen
(
table
->
local_name
),
_bstr_
(
table
->
qname
),
lstrlen
(
table
->
qname
),
table
->
attr
);
else
hr
=
ISAXContentHandler_endElement
(
content
,
_bstr_
(
table
->
uri
),
lstrlen
(
table
->
uri
),
_bstr_
(
table
->
local_name
),
lstrlen
(
table
->
local_name
),
_bstr_
(
table
->
qname
),
lstrlen
(
table
->
qname
));
...
...
@@ -1676,10 +1684,6 @@ static void test_mxwriter_startendelement(void)
todo_wine
ok
(
!
lstrcmpW
(
_bstr_
(
"<><b></b><nspace:c/></a>"
),
V_BSTR
(
&
dest
)),
"got wrong content %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)));
VariantClear
(
&
dest
);
/* try with attributes */
hr
=
ISAXContentHandler_startElement
(
content
,
_bstr_
(
""
),
0
,
_bstr_
(
""
),
0
,
_bstr_
(
"b"
),
1
,
&
saxattributes
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
ISAXContentHandler_endDocument
(
content
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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