loebelectric/xmlTool
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple package used for casting XML to structs and JSON. /****************************************************************************** ******************************* INSTALLATION ****************************** *******************************************************************************/ box install xmlTool /****************************************************************************** ******************************* USER GUIDE ******************************** *******************************************************************************/ Here are xmlTool's functions: struct function convertXMLtoStruct(required xml) This function converts an XML coldfusion object into a struct by extracting the text and child tags from any given tag and nesting each pair inside of a struct together. -string function convertXMLtoJSON(required xml) This function uses convertXMLtoStruct and then simply uses the serializeJSON() function to return a JSON formatted string of the original XML document any function convertJSONtoXML(required string json) This function uses Coldbox's deserializeJSON function to make a struct, and then passes that given struct into Coldbox's XmlConverter to make an XML document object.
About
A small set of functions used for casting XML to other types in ColdFusion. Coldbox Module.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published