[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [ATL] XML extraction with ATL 3.0

Hi guys,
I'm still working on this. I have looked at the Ecore/XSD mapping, so I tried to influence the naming of the root element using the ExtendedMetaData attribute name->xxx, where xxx is the desired name for the XML element. It would seem that ATL pays no attention to this approach, although a genertaed default Ecore based on such a metamodel editor does.


Is there any way to influence this root element naming in ATL, without building an XML extractor?

Cheers,
Ronan

Ronan wrote:

Actually an example is as follows...

Using ATL I get:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Mp:DocumentRoot xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:Mp="platform:/resource/BNET-Transformation/target.xsd">
<models>
<mix/>
</models>
</Mp:DocumentRoot>

but I want...
<?xml version="1.0" encoding="ISO-8859-1"?>
 <models>
    <mix/>
</models>

So I want to surpress the outputting of the XSD holder element DocumentRoot. I'm sure this is a common question, but couldn't find a solution as i'm used to the AM3 way of doing this :(
Thanks,
Ronan