Does XMLBinding use XPath?https://www.eclipse.org/forums/index.php/mv/msg/392530/932606/#msg_932606
I just wonder if XMLBinding use XPath for addressing different tags.

For example:

<tagA>
<tagB key1="value1" />
</tagA>

If I want "key1" to be a Property in the class "ITagA.java", can I just write:

@XmlBinding ( path = "tagB/@key1" )

??

more generally, is it possible to make "key1" a Property for "ITagA.java" instead of creating a class for "tagB"?

And if I have to create a class for "tagB", how can I put "key1" as a Property Editor in the Composite of "tagA"?

Thnx in advance ]]>Hazem ELRAFFIEE2012-10-04T09:00:31-00:00Re: Does XMLBinding use XPath?https://www.eclipse.org/forums/index.php/mv/msg/392530/933142/#msg_933142
If you choose not to flatten, you would use an ImpliedElementProperty to bind to container XML elements that don't in themselves have semantic value. In sdef, you would use the "with" construct to traverse into an ImplementElementProperty as part of a form definition.

If anything above is unclear, don't hesitate to ask for clarification.

- Konstantin

]]>Konstantin Komissarchik2012-10-04T19:33:03-00:00Re: Does XMLBinding use XPath?https://www.eclipse.org/forums/index.php/mv/msg/392530/936646/#msg_936646
Konstantin Komissarchik wrote on Thu, 04 October 2012 15:33

If you choose not to flatten, you would use an ImpliedElementProperty to bind to container XML elements that don't in themselves have semantic value. In sdef, you would use the "with" construct to traverse into an ImplementElementProperty as part of a form definition.

If anything above is unclear, don't hesitate to ask for clarification.

- Konstantin

Thank you for quick response

For the "with" construct, can I use the same way to walk through the model? I mean like: <path>parent/child</path> ?
]]>Hazem ELRAFFIEE2012-10-08T07:29:24-00:00Re: Does XMLBinding use XPath?https://www.eclipse.org/forums/index.php/mv/msg/392530/937037/#msg_937037
Quote:

For the "with" construct, can I use the same way to walk through the model? I mean like: <path>parent/child</path> ?