Allow SelectNode() calls with a wildcard as the namespace name ("*"). This allows us to find nodes if we do not strictly care about what namespace it carries. Same deal for attributes. node.SelectNode("*", foo") finds any node named "foo", regardless of what namespace it has.
This commit is contained in:
parent
c07619da34
commit
5fff1fb51a
2 changed files with 10 additions and 7 deletions
|
@ -240,7 +240,7 @@ loop:
|
|||
if err == os.EOF {
|
||||
break loop
|
||||
}
|
||||
|
||||
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ loop:
|
|||
|
||||
switch pair[0] {
|
||||
case "encoding":
|
||||
enc = pair[1][1:len(pair[1])-1]
|
||||
enc = pair[1][1 : len(pair[1])-1]
|
||||
break loop
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue