Skip to content

XMLTree.swift: Converts tree structure into XML data.#1

Open
joshydotpoo wants to merge 7 commits into
mattcox:mainfrom
joshydotpoo:main
Open

XMLTree.swift: Converts tree structure into XML data.#1
joshydotpoo wants to merge 7 commits into
mattcox:mainfrom
joshydotpoo:main

Conversation

@joshydotpoo
Copy link
Copy Markdown

Maybe not the most elegant, but gets the job done.

Usage:
let xmlTree = XMLTree(root: root, using: Element.name)

With attributes:
let xmlTree = XMLTree(root: root, using: Element.name, assigning: [("length" : \Element.length)])

Get data:
let data:Data = xmlTree.data

Save the file to documents directory:
xmlTree.save()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant