oxymel – a sweet XML builder [](https://travis-ci.org/nb/oxymel) ============================ ```php $oxymel = new Oxymel; echo $oxymel ->xml ->html->contains ->head->contains ->meta(array('charset' => 'utf-8')) ->title("How to seduce dragons") ->end ->body(array('class' => 'story'))->contains ->h1('How to seduce dragons', array('id' => 'begin')) ->h2('The fire manual') ->p('Once upon a time in a distant land there was an dragon.') ->p('In another very distant land')->contains ->text(' there was a very ')->strong('strong')->text(' warrrior') ->end ->p->contains->cdata('who fought bold dragons')->end ->raw('
with not fake bold dragons, too
') ->tag('dragon:identity', array('name' => 'Jake')) ->comment('no dragons were harmed during the generation of this XML document') ->end ->end ->to_string(); ``` Outputs: ```xmlOnce upon a time in a distant land there was an dragon.
In another very distant land there was a very strong warrrior
who fought bold dragons]]>
with not fake bold dragons, too