zhuowei / yamlconv Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chadderz121/yamlconv
Converts between BYAML and XML
License: GNU General Public License v2.0
This project forked from chadderz121/yamlconv
Converts between BYAML and XML
License: GNU General Public License v2.0
yamlconv by Chadderz Converts between the BYAML file format and XML. For documentation on the BYAML format see: http://mk8.tockdom.com/wiki/BYAML_%28File_Format%29 Conversion ---------- The conversion procedure begins at the root node. It is encoded as the root XML node with name "yaml". Every sub-node is then recursively converted. Value nodes may either be converted to XML attributes or XML elements. Integers are encoded directly, booleans are encoded as "true" or "false" and floats are encoded as the numeric representation followed by an "f". A string is encoded as the inner text of an XML element with the attribute "type" set to "string". A path is encoded as a series of "point" elements with attributes "x", "y", "z", "nx", "ny", "nz" and "val". The container element of the path has attribute "type" equal to "path". Finally, arrays are encoded as a series of "value" elements with the container having attribute "type" equal to "array" and dictionaries are encoded as a series of named elements or attributes. Examples -------- The following is an example of the output of yamlconv showing all features mentioned above. <?xml version="1.0" encoding="utf-8"?> <yaml float_field_example="1.0f" int_field_example="0" bool_field_example="true"> <string_field_example type="string">Hello!</string_field_example> <path_example type="path"> <point x="0f" y="0f" z="0f" nx="0f" ny="1f" nz="0f" val="0" /> <point x="1f" y="0f" z="0f" nx="0f" ny="1f" nz="0f" val="0" /> </path_example> <array_example type="array"> <value sample_int="0" /> <value sample_int="1" /> </array_example> <empty_array type="array" /> <dictionary_example> <attr type="string">Hi!</attr> </dictionary_example> <empty_dictionary /> </yaml>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.