Skip to main content



      Home
Home » Archived » Sapphire » Getting XmlElement of an IModelElement
Getting XmlElement of an IModelElement [message #940570] Thu, 11 October 2012 15:19 Go to next message
Eclipse UserFriend
Hi,
is there a way to get the XmlElement of an IModelElement? I would like to implement a custom renderer for the XML sub-tree belonging to an IModelElement (in particular a render for MathML).
THXIA

-Eyck
Re: Getting XmlElement of an IModelElement [message #941577 is a reply to message #940570] Fri, 12 October 2012 13:07 Go to previous message
Eclipse UserFriend
I think you would be better off implementing a Sapphire model for your MathML subtree and then implementing your custom presentation on top of a Sapphire model. That way, Sapphire would take care of XML binding, change notification and validation for you.

To access XmlElement from an IModelElement, do the following:

element.adapt( XmlResource.class ).getXmlElement()
Previous Topic:problem having namespace declaration within xml tree
Next Topic:Element ordering not according to XSD
Goto Forum:
  


Current Time: Sat Jul 19 18:07:49 EDT 2025

Powered by FUDForum. Page generated in 0.03527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top