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,
|
2022-11-13 00:13:05 +00:00
|
|
|
UseRawToken: true,
|
2022-10-25 03:27:16 +00:00
|
|
|
ProcInstPrefix: "+p_",
|
|
|
|
DirectiveName: "+directive",
|
|
|
|
SkipProcInst: false,
|
|
|
|
SkipDirectives: false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var ConfiguredXMLPreferences = NewDefaultXmlPreferences()
|