From d1491e022f9180b9a9d1b65edead00fe80604bc7 Mon Sep 17 00:00:00 2001 From: Ollie Date: Mon, 8 Apr 2024 13:43:18 +1000 Subject: [PATCH] add SiblingSequence to Node --- node.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/node.go b/node.go index 28f3f54..dbeb553 100644 --- a/node.go +++ b/node.go @@ -42,11 +42,12 @@ type Attr struct { type Node struct { Parent, FirstChild, LastChild, PrevSibling, NextSibling *Node - Type NodeType - Data string - Prefix string - NamespaceURI string - Attr []Attr + Type NodeType + Data string + Prefix string + NamespaceURI string + Attr []Attr + SiblingSequence int level int // node level in the tree }