[ATL] Reading XML Value [message #765851] |
Wed, 14 December 2011 19:18 |
schabel Messages: 6 Registered: September 2011 |
Junior Member |
|
|
Hi,
(it may be a stupid question, sorry)
How can I read the node value "DBConnection" from
<Performers>
<Performer>DBConnection</Performer>
</Performers>
Given is the xsd (from XPDL2.1):
...
<xsd:element name="Performer">
<xsd:annotation>
<xsd:documentation>A String or Expression designating the Performer</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
Any help would be great!
[Updated on: Wed, 14 December 2011 19:21] Report message to a moderator
|
|
|
|
|
Re: [ATL] Reading XML Value [message #766283 is a reply to message #766083] |
Thu, 15 December 2011 13:54 |
Ed Willink Messages: 7680 Registered: July 2009 |
Senior Member |
|
|
Hi
The EMF project provides a variety of capabilities to read a variety of
different XML styles specifically to help those with non-standard or
legacy XML requirements. I do not need them, so I can only refer you to
the EMF book that I would consult if I needed to use them.
Regards
Ed Willink
On 15/12/2011 00:00, schabel wrote:
> Hi Ed,
> thanks. The ecore is below and it only gives access to the attributes.
> If the input is:
> <Performer Value="DBConnection"></Performer>
> ..I can pick it.
>
> But is there a way to handle this input?
> <Performer>DBConnection</Performer>
>
> Kind regards
> Gerhard
>
> class PerformerType
> {
> attribute Value : _'ecore.xml.type'::String[?] { ordered }
> {
> annotation _'<some link>'
> (
> name = ':0',
> kind = 'simple'
> );
> }
> attribute Relationship : _'ecore.xml.type'::String[?] { ordered }
> {
> annotation _'<some link>'
> (
> kind = 'attribute',
> name = 'Relationship'
> );
> }
> attribute AnyAttribute : ecore::EFeatureMapEntry[*] { ordered
> !unique }
> {
> annotation _'<some link>'
> (
> kind = 'attributeWildcard',
> wildcards = '##other',
> name = ':2',
> processing = 'lax'
> );
> }
> annotation _'<some link>'
> (
> name = 'Performer_._type',
> kind = 'simple'
> );
> }
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds