Issue Details (XML | Word | Printable)

Key: MODELLO-113
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Olivier Lamy
Reporter: Olivier Lamy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Modello

Parsing xml element with attributes and a getter to the element content

Created: 26/Jul/08 07:33 PM   Updated: 04/Aug/08 04:14 PM
Component/s: modello-core, modello-plugin-java, modello-plugin-xpp3
Affects Version/s: None
Fix Version/s: 1.0-alpha-21

Time Tracking:
Not Specified

File Attachments: 1. File MODELLO-113 (3 kB)
2. File MODELLO-113-MODELLO-114-MODELLO-115-MODELLO-116 (53 kB)
3. File MODELLO-113-with-unit (25 kB)

Issue Links:
dependent
 

Complexity: Intermediate


 Description  « Hide
I need to parse xml like :
<action dev="me" type="add">
  Added additional documentation on how to configure the plugin.
</action>

Currently it's not impossible to have a mix content in a class



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Olivier Lamy added a comment - 27/Jul/08 05:04 AM
here a patch for xppReader.
I will provide one later for xpp3writer and other plugins.

Olivier Lamy added a comment - 27/Jul/08 01:00 PM - edited
New patch which include xpp3writer for this new feature and unit s for xpp3Reader/Writer.
The type to have such a field is
<field>
  <name>action</name>
  <version>1.0.0</version>
  <type>Content</type>
  <description>
  A short description of the action taken.
  </description>
</field>

Note the type Content.
Is-it possible to commit this patch and deploy a snapshot ? or give to me karma on modello ?

Thanks !!


Olivier Lamy added a comment - 27/Jul/08 06:31 PM
Here a new patch.
Note it contains patches for 4 issues : MODELLO-113 MODELLO-114 MODELLO-115 MODELLO-116

Olivier Lamy added a comment - 28/Jul/08 02:31 AM
fixed in rev 914

Olivier Lamy added a comment - 04/Aug/08 02:15 PM
Reopen this issue.
Now class with field of type Content can contains other field which refers to an other.
Currently in such case the xsd generation generate a bad schema.
We have to generate something like :
<xs:complexType mixed="true">
....

Olivier Lamy added a comment - 04/Aug/08 04:14 PM
add support for mixed content in xsd generation in rev 926