Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Is ecore-based XML browsing possible?
Is ecore-based XML browsing possible? [message #66675] Fri, 05 January 2007 10:35 Go to next message
Eclipse UserFriend
Originally posted by: nijha.cisco.com

Hi,

Is ecore-based XML browsing possible using JET (to generate code for the
XML) . If yes then how can this be achieved?
Here XML could be an EMF Model instance. Eg:

<?xml version="1.0" encoding="UTF-8"?>
<library:Library xmlns:library="http://www.example.eclipse.org/Library">
<writers>
<name>JKR</name>
<books>#//@books.0</books>
</writers>
<writers>
<name>APJ Kalam</name>
<books>#//@books.1</books>
</writers>
<books>
<title>HP</title>
<author>#//@writers.0</author>
</books>
<books>
<title>Wings of Fire</title>
<author>#//@writers.1</author>
</books>
</library:Library>

Regards,
Nitu
Re: Is ecore-based XML browsing possible? [message #68196 is a reply to message #66675] Tue, 16 January 2007 12:36 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Nitu,

If you have a schema for this XML, then you can generate a model for that.


nitu wrote:
> Hi,
>
> Is ecore-based XML browsing possible using JET (to generate code for the
> XML) . If yes then how can this be achieved?
> Here XML could be an EMF Model instance. Eg:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <library:Library xmlns:library="http://www.example.eclipse.org/Library">
> <writers>
> <name>JKR</name>
> <books>#//@books.0</books>
> </writers>
> <writers>
> <name>APJ Kalam</name>
> <books>#//@books.1</books>
> </writers>
> <books>
> <title>HP</title>
> <author>#//@writers.0</author>
> </books>
> <books>
> <title>Wings of Fire</title>
> <author>#//@writers.1</author>
> </books>
> </library:Library>
>
> Regards,
> Nitu
>
>
>
Re: Is ecore-based XML browsing possible? [message #601288 is a reply to message #66675] Tue, 16 January 2007 12:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Nitu,

If you have a schema for this XML, then you can generate a model for that.


nitu wrote:
> Hi,
>
> Is ecore-based XML browsing possible using JET (to generate code for the
> XML) . If yes then how can this be achieved?
> Here XML could be an EMF Model instance. Eg:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <library:Library xmlns:library="http://www.example.eclipse.org/Library">
> <writers>
> <name>JKR</name>
> <books>#//@books.0</books>
> </writers>
> <writers>
> <name>APJ Kalam</name>
> <books>#//@books.1</books>
> </writers>
> <books>
> <title>HP</title>
> <author>#//@writers.0</author>
> </books>
> <books>
> <title>Wings of Fire</title>
> <author>#//@writers.1</author>
> </books>
> </library:Library>
>
> Regards,
> Nitu
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse MDA alternatives
Next Topic:Questions on JET transformation project
Goto Forum:
  


Current Time: Tue Apr 23 06:57:30 GMT 2024

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

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

Back to the top