SkyLine_Standard_Library_XML

package
v0.0.0-...-72c8661 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file defines all parser based functions for XML files

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file defines all of the code converters which can convert XML code to something like JSON or PLIST

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file defines grabbers and generation functions. These functions help for dumping XML into specific formats such as Arrays, Maps, converting it to json and much more

other various functions. This can help when working with larger sets of files and instead of parsing everything manually and using for loops, we can dump it into a map.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file defines all functions to help the XML library during specific operations such as dumping, parsing, loading or converting

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file holds all models for the XML library or package that can be imported into SkyLine. This includes node and hash xml relations

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This file contains all information for the SkyLine standard library //   _____ _       __    _             __ __     _____     __
such as the math, io, IoT, ECP, Socket, Web, HTTP and other various //  |   __| |_ _ _|  |  |_|___ ___ ___|  |  |___|     |___|  |
library content types. This code section defines a sub unit under a //  |__   | '_| | |  |__| |   | -_|___|-   -|___| | | |___|  |
primary unit. This means that this section is under neath all of the//  |_____|_,_|_  |_____|_|_|_|___|   |__|__|   |_|_|_|   |_____|
primary units that define the functions to register the sub func's  //            |___|

////////////////////////////////////////////////////////////////////////

This section of the standard library is dedicated to dumping, mapping, matching, adding, generating, parsing, running or loading XML files which can also be parsed

as PLIST files. However, given that PLIST files are technically XML, we put them under their own library as BPLIST ( Binary Property List ) works with regular PLIST

parsers and programs. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

This file defines all functions that will be registered as standard library functions. This means that these are the initated functions before calling the primary functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPrimeXMLNodeToJsonNode

func ConvertPrimeXMLNodeToJsonNode(node XML_NodeConverterXMLtoJson) ([]byte, error)

func ConvertValues

func ConvertValues(value interface{}) SkyEnv.SL_Object

func ConvertXMLDataToHashMap

func ConvertXMLDataToHashMap(data map[string]interface{}) *SkyEnv.SL_HashMap

func XML_CallToConvertXMLtoJson

func XML_CallToConvertXMLtoJson(Arguments ...SkyEnv.SL_Object) SkyEnv.SL_Object

This function will take a input XML file and convert it to JSON

func XML_CallToConveryJsonToXML

func XML_CallToConveryJsonToXML(Arguments ...SkyEnv.SL_Object) SkyEnv.SL_Object

func XML_CallToParse

func XML_CallToParse(Arguments ...SkyEnv.SL_Object) SkyEnv.SL_Object

func XML_Helper_EraseJsonUnescapedString

func XML_Helper_EraseJsonUnescapedString(str string) string

func XML_Helper_FindUnescapeJsonValues

func XML_Helper_FindUnescapeJsonValues(data map[string]interface{}) map[string]interface{}

func XML_Lib_DumpIntoHashMap

func XML_Lib_DumpIntoHashMap(node XML_Node) map[string]interface{}

Dump and convert values into a well required hash map

Types

type Node

type Node struct {
	Name  xml.Name
	Text  string `xml:",chardata"`
	Nodes []Node `xml:",any"`
}

::::::::::::::::::::::::::::::::::::::::::::::: :: Defines a base node for XML visualization :: :::::::::::::::::::::::::::::::::::::::::::::::

type XML_Node

type XML_Node struct {
	XMLName xml.Name
	Attrs   []xml.Attr `xml:",any,attr"`
	Nodes   []XML_Node `xml:",any"`
	Text    string     `xml:",chardata"`
}

::::::::::::::::::::::::::::::::::::::::::: :: Defines a base node for XML dumping :: :::::::::::::::::::::::::::::::::::::::::::

type XML_NodeConverterJsonToXML

type XML_NodeConverterJsonToXML struct {
	XMLName xml.Name
	Attrs   []xml.Attr                    `xml:",any,attr"`
	Nodes   []*XML_NodeConverterJsonToXML `xml:",any"`
	Text    string                        `xml:",chardata"`
}

This is for the function that will take a JSON file and convert it to JSON

func ConstructPrimeXMLTree

func ConstructPrimeXMLTree(data interface{}) *XML_NodeConverterJsonToXML

type XML_NodeConverterXMLtoJson

type XML_NodeConverterXMLtoJson struct {
	XMLName xml.Name
	Text    string `xml:",chardata"`
	Attrs   []xml.Attr
	Nodes   []XML_NodeConverterXMLtoJson `xml:",any"`
}

This is for the function thart will take an XML file and convert it to JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL