yq/pkg/yqlib/xml.go

30 lines
633 B
Go
Raw Normal View History

2022-10-25 03:27:16 +00:00
package yqlib
type XmlPreferences struct {
AttributePrefix string
ContentName string
StrictMode bool
KeepNamespace bool
UseRawToken bool
ProcInstPrefix string
DirectiveName string
SkipProcInst bool
SkipDirectives bool
}
func NewDefaultXmlPreferences() XmlPreferences {
return XmlPreferences{
2022-11-10 11:22:55 +00:00
AttributePrefix: "+@",
2022-10-25 03:27:16 +00:00
ContentName: "+content",
StrictMode: false,
KeepNamespace: true,
UseRawToken: true,
2022-10-25 03:27:16 +00:00
ProcInstPrefix: "+p_",
DirectiveName: "+directive",
SkipProcInst: false,
SkipDirectives: false,
}
}
var ConfiguredXMLPreferences = NewDefaultXmlPreferences()