Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] XML2EMF handling for ANY

Cameron Bateman wrote:
Has any work been done to support DTD ANY and XSD anyType data in the XML2EMF translators? If not, what is the current design thinking in this area?

I've thought a bit about its use.

xsd:anyType and friends would need special support in both EMF2SAX and EMF2DOM and cannot be added as "just another Translator", as some of the special types can.

But what kind of "any" support are you looking for?
- Introspective matching between the XML structure and the EMF model.
- Best effort mapping to a small, generic EMF model mimicking the XML structure - Serialization to/from some "real world" XML in-memory structure such as a DOM or a plain old string

Keep in mind that the Translator framework is both a structural description of the XML and the mapping to/from the EMF model. Without the Translator tree, you won't know how the XML tree maps to a tree of EMF objects/features.

-Jesper


--Cam
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev



Back to the top