---
title: "Ruby yaml转换xml"
author: "夜鸣猪"
date: "2012-09-04T21:02:55Z"
tags: []
categories: ["编程语言"]
slug: "ruby-yaml-xml"
draft: false
lastmod: "2012-09-04T21:02:55Z"
id: 1671459
url: "https://hlee.iteye.com/blog/1671459"
---

```ruby

require 'active_support/core_ext'
YAML.parse("key: value").transform.to_xml

```