Documentation ¶
Index ¶
- func BytesXMLFromArrai(v rel.Value) (rel.Value, error)
- func BytesXMLToArrai(bs []byte, config XMLDecodeConfig) (rel.Value, error)
- func BytesYamlToArrai(bytes []byte) (rel.Value, error)
- func FromArrai(v rel.Value) (interface{}, error)
- func ToArrai(data interface{}) (rel.Value, error)
- type XMLDecodeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesXMLFromArrai ¶ added in v0.238.0
BytesXMLFromArrai converts an Arr.ai object to an XML document in byte resentation
func BytesXMLToArrai ¶ added in v0.238.0
func BytesXMLToArrai(bs []byte, config XMLDecodeConfig) (rel.Value, error)
BytesXMLToArrai converts a well formatted XML document in byte representation to a structured Arr.ai object
Types ¶
type XMLDecodeConfig ¶ added in v0.238.0
type XMLDecodeConfig struct {
TrimSurroundingWhitespace bool
}
NOTE: Currently the XML transform does not support documents with explicit namespaces. NOTE: A full cycle from XML -> Arr.ai -> XML reproduces semantically similar documents
with possibly different content.
Click to show internal directories.
Click to hide internal directories.