Skip to content

Commit

Permalink
Merge PR '#84'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed Aug 5, 2022
2 parents b77f1ba + 052f54b commit 13877b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (p *parser) parse() (*Node, error) {
}

if tok.Name.Space != "" {
if _, found := p.space2prefix[tok.Name.Space]; !found {
if _, found := p.space2prefix[tok.Name.Space]; !found && p.decoder.Strict {
return nil, errors.New("xmlquery: invalid XML document, namespace is missing")
}
}
Expand Down

0 comments on commit 13877b8

Please sign in to comment.