Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Querying EMF model with Xpath(KDM model)
Querying EMF model with Xpath [message #987412] Mon, 26 November 2012 09:11
Daniel San Martín is currently offline Daniel San Martín
Messages: 8
Registered: October 2012
Junior Member
Hello,

I would like to know how to get some elements of a model with Xpath.

I am using KDM instance and I want to get all class type. For example with the xmi file all I need to do is:

//codeElement[xsi:type="code:ClassUnit"]


But with the model I do not have xsi:type.

How could I do the same but with de EMF model instance?

I know that in xpath 2.0 exist the instance of operator but I am using xpath 1.0.

Thanks,

Daniel.
Previous Topic:[Xcore] Error importing ecore.EcorePackage in generated class
Next Topic:[Xcore] Using non EMF classes in operations
Goto Forum:
  


Current Time: Fri Jul 25 14:33:52 EDT 2014

Powered by FUDForum. Page generated in 0.02594 seconds