XML decoder additions (#1239)

* Add xml-keep-namespace and xml-raw-token features

* Add tests

* Change flags usage strings

* Append docs
This commit is contained in:
rndmit
2022-06-15 09:40:31 +10:00
committed by GitHub
parent 98193a7a9d
commit b9309a42a4
11 changed files with 181 additions and 21 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
yaml "gopkg.in/yaml.v3"
)
var XMLPreferences = xmlPreferences{AttributePrefix: "+", ContentName: "+content", StrictMode: false}
var XMLPreferences = xmlPreferences{AttributePrefix: "+", ContentName: "+content", StrictMode: false, UseRawToken: false}
type xmlEncoder struct {
attributePrefix string