Is ecore-based XML browsing possible? [message #66675] |
Fri, 05 January 2007 05:35  |
Eclipse User |
|
|
|
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 07:36  |
Eclipse User |
|
|
|
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 07:36  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03070 seconds