Fixes xml decode missing tags #1284

This commit is contained in:
Mike Farah
2022-07-29 10:26:50 +10:00
parent b9a1ef89fe
commit 8c3a8c085e
4 changed files with 29 additions and 4 deletions
+2 -2
View File
@@ -67,9 +67,9 @@ func pickOperator(d *dataTreeNavigator, context Context, expressionNode *Express
node := unwrapDoc(candidate.Node)
var replacement *yaml.Node
if node.Tag == "!!map" {
if node.Kind == yaml.MappingNode {
replacement = pickMap(node, indicesToPick)
} else if node.Tag == "!!seq" {
} else if node.Kind == yaml.SequenceNode {
replacement, err = pickSequence(node, indicesToPick)
if err != nil {
return Context{}, err