user
Create a simple DOM and having it serialize to:

```
 <?xml version="1.0" ?>
 <root>
     <element>
         Some text here
     </element>
 </root>

```
assistant
(formerly Perl 6)

**Works with**: Rakudo version 2018.05

```
use XML;
use XML::Writer;

say my $document = XML::Document.new(
    XML::Writer.serialize( :root[ :element['Some text here', ], ] )
);

```

Output:

```
<?xml version="1.0"?><root><element>Some text here</element></root>

```