Unable to create xml element with a attribute and a content value using aegis 
binding.
--------------------------------------------------------------------------------------

                 Key: XFIRE-1133
                 URL: http://jira.codehaus.org/browse/XFIRE-1133
             Project: XFire
          Issue Type: Bug
          Components: Aegis Module
    Affects Versions: 1.2.6
         Environment: Windows XP, Eclipse 3.2.0
            Reporter: Benoit Drolet
            Assignee: Dan Diephouse


I want to create xml element with a attribute and a content value using aegis 
binding.
I didn't find a way to create it using actual aegis definition. This is my case:

Fore example, the java class:

public class Employee
{
  private String name;
  private String title;

  public String getName() { return name; }
  public void setName(String name) { this.name = name; }

  public String getTitle() { return title; }
  public void setTitle(String title) { this.title = title; }
}

I have this Aegis Mapping

<mappings xmlns:np="urn:north-pole:operations">
  <mapping name="np:Employee">
    <property name="name" mappedName="Name" style="attribute" />
    <property name="title" mappedName="Title"/>
  </mapping>
</mappings>

Actual Result 
<np:Employee xmlns:np="urn:north-pole:operations" name="Santa Claus">
  <np:Title>Chief Present Officer (CPO)</np:Title>
</np:Employee>

I need to create this xml output format
Expected Result 
<np:Employee xmlns:np="urn:north-pole:operations" name="Santa Claus">Chief 
Present Officer (CPO)</np:Employee>

there is a way to do this?

Ben


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to