forked from netvl/xml-rs
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
For a basic document source without DOCTYPE or xml processing instruction, an extra "":"" entry is added to namespaces.
<root xmlns:foo="http://www.example.com" attr="test2" foo:attr="test" />
Expected namespaces in StartElement event:
{
"foo": "http://www.example.com",
"xml": "http://www.w3.org/XML/1998/namespace",
"xmlns": "http://www.w3.org/2000/xmlns/"
}
Actual namespaces:
{
"": "",
"foo": "http://www.example.com",
"xml": "http://www.w3.org/XML/1998/namespace",
"xmlns": "http://www.w3.org/2000/xmlns/"
}
Test case in:
https://github.com/drott/xml-rs/blob/emptyNsForRoot/tests/streaming.rs#L122
Metadata
Metadata
Assignees
Labels
No labels