is it possible to access values between tags via qvto?
For example i have something like this in a xml document:
<tag> value </tag>
and the xml is conform to my ecore. In the ecore i marked the element which defines the specific tag as "simple" by the extended metadata.
Nevertheless i can't access the value between the tags.
Does anybody know how i can read out this value using a qvto or an ocl operation?
If you used a model as input the tag value should already have been
extracted making access trivial.
OCL (and QVTo) are not primarily designed for text processing, there are
much better languages for that, but if you really must then you need to
look at the functions in the string library. The Juno version added
additional regular expression functions that may help.
Regards
Ed Willink
On 12/02/2013 08:54, Andreas Burger wrote:
> Hello,
>
> is it possible to access values between tags via qvto?
> For example i have something like this in a xml document:
> <tag> value </tag>
> and the xml is conform to my ecore. In the ecore i marked the element
> which defines the specific tag as "simple" by the extended metadata.
> Nevertheless i can't access the value between the tags.
> Does anybody know how i can read out this value using a qvto or an ocl
> operation?
>
> Best regards,
>
> Andreas