Skip to content

Commit 13877b8

Browse files
committed
Merge PR '#84'
2 parents b77f1ba + 052f54b commit 13877b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (p *parser) parse() (*Node, error) {
107107
}
108108

109109
if tok.Name.Space != "" {
110-
if _, found := p.space2prefix[tok.Name.Space]; !found {
110+
if _, found := p.space2prefix[tok.Name.Space]; !found && p.decoder.Strict {
111111
return nil, errors.New("xmlquery: invalid XML document, namespace is missing")
112112
}
113113
}

0 commit comments

Comments
 (0)