YAML document design.
Rob Mensching <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
I've done plenty of work in XML. Now I'm looking into YAML to see how it can
make the same sort of content more approachable to humans. Given that I'm
relatively new to YAML, I'm hoping some people here can give me some general
guidance which designs are more "YAML-like" and not "too much like XML". :)
Note: I'm also experimenting with YAML via Python so if things look "too
much like Python" then please set me straight there as well.
This style seems to be most YAML-like:
---
- a: MyA
data: data for a
children:
- x: MyX
- y: MyY
- z: MyZ
- b: MyB
...
But this style was serializing better:
---
- !ObjectA
name: MyA
data: data for a
children:
- !ObjectX
name: MyX
- !ObjectY
name: MyY
- !ObjectZ
name: MyZ
- !ObjectB
name: MyB
...
Any recommendations?
virtually,
Rob Mensching
http://RobMensching.com LLC <http://RobMensching.com>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core