Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFromXML ¶
RunFromXML converts XML to JSON
Types ¶
type FromXMLOptions ¶
type FromXMLOptions struct {
AttrPrefix string // Prefix for attributes in JSON (default: "-")
TextKey string // Key for text content (default: "#text")
}
FromXMLOptions configures XML to JSON conversion
type ToXMLOptions ¶
type ToXMLOptions struct {
Root string // Root element name (default: "root")
Indent string // Indentation (default: " ")
ItemTag string // Tag for array items (default: "item")
AttrPrefix string // Prefix for attributes (default: "-")
}
ToXMLOptions configures JSON to XML conversion
Click to show internal directories.
Click to hide internal directories.