[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: xml transformation?
|
- From: mabaumba@xxxxxxxxxx (Marc Baumbach)
- Date: Wed, 16 Sep 2009 08:16:14 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi Ed,
We're looking to do something a bit odd, but hopefully there's a way to
accomplish it. See the below example for what we'd like to transform:
<elementName key="someStr#someValue" value="someContent"/>
Transform to:
<myns:someValue xmlns:myns="someStr#">someContent</myns:someValue>
The most important part is can we turn content in an attribute into an
element name and can we do any processing on that content before doing so?
I've looked into ExtendedMetaData, but I don't know if that provides
enough function to be able to do this complex processing. I see the
XMLHandler, and XMLSaveImpl/XMLLoadImpl, but those are relatively complex.
Perhaps a small snippet if you know a quick way to do something similar to
this.
Thanks in advance!