OK, thank you, I started watching the side of XStream:
Not bad actually, and it can easily highlight the directory structure of a java object as XML.
Here, I encountered two limitations of GWT:
1) XML input grid is not an XML "standard" (with n levels) nested XML but a "flat" for each subject with a foreign key to its parent object.
Code:
<List>
−
<employee>
<EmployeeId>4</EmployeeId>
<ReportsTo>1</ReportsTo>
<Name>Charles Madigan</Name>
<Job>Chief Operating Officer</Job>
<Phone>x10962</Phone>
<Email>cmadigan@server.com</Email>
<OrgUnit>Management</OrgUnit>
<Salary>26200.00</Salary>
<Gender>male</Gender>
<MaritalStatus>married</MaritalStatus>
<EmployeeType>full time</EmployeeType>
<EmployeeStatus>active</EmployeeStatus>
</employee>
−
<employee>
<EmployeeId>192</EmployeeId>
<ReportsTo>4</ReportsTo>
<Name>Ralph Brogan</Name>
<Job>Mgr Software Client Supp</Job>
<Phone>x32524</Phone>
<Email>rbrogan@server.com</Email>
<OrgUnit>Management</OrgUnit>
<Salary>13700.00</Salary>
<Gender>male</Gender>
<MaritalStatus>married</MaritalStatus>
<EmployeeType>full time</EmployeeType>
<EmployeeStatus>active</EmployeeStatus>
</employee>
−
<employee>
<EmployeeId>295</EmployeeId>
<ReportsTo>192</ReportsTo>
<Name>Bhushan Sambhus</Name>
<Job>Line Worker</Job>
<Phone>x12125</Phone>
<Email>bsambhus@server.com</Email>
<OrgUnit>Management</OrgUnit>
<Salary>8300.00</Salary>
<Gender>female</Gender>
<MaritalStatus>married</MaritalStatus>
<EmployeeType>part time</EmployeeType>
<EmployeeStatus>active</EmployeeStatus>
</employee>
</List>
2) GWT expects that the fields are defined explicitly in order to render ... This is not my case, because the generated XML by XStream uses as a tag attribute names ...
In short, I must find a way to convert the XML into an XML XStream "GWT compliant" ... and it is not won
Bookmarks