<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="ht_tp://schema.omg._org/spec/XMI/2.1" xmlns:mymodel="ht_tp://example._org/spec/MYMODEL/1.0">
<mymodel:boxes xmi:id="uniqueId" name="RootBox" title="_YZAicjM3EeKpdar6P-33Hw">
<mymodel:boxes xmi:id="uniqueId" name="ChildOne"/>
</mymodel:boxes>
...
<mymodel:Title xmi:id="_YZAicjM3EeKpdar6P-33Hw" expression="something" language="English"/>
...
...
Resource resource = resourceSet.createResource(fileURI);
...
Map options = new HashMap();
options.put(XMIResource.OPTION_USE_XMI_TYPE, Boolean.TRUE);
options.put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.FALSE);
...
resource.save(options);
]]>