Modello

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

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    3

Description

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

  1. MODELLO-113
    27/Jul/08 5:04 AM
    3 kB
    Olivier Lamy
  2. MODELLO-113-MODELLO-114-MODELLO-115-MODELLO-116
    27/Jul/08 6:31 PM
    53 kB
    Olivier Lamy
  3. MODELLO-113-with-unit
    27/Jul/08 1:00 PM
    25 kB
    Olivier Lamy

Issue Links

Activity

Hide
Olivier Lamy added a comment -

here a patch for xppReader.
I will provide one later for xpp3writer and other plugins.

Show
Olivier Lamy added a comment - here a patch for xppReader. I will provide one later for xpp3writer and other plugins.
Hide
Olivier Lamy added a comment - - 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 !!

Show
Olivier Lamy added a comment - - 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 !!
Hide
Olivier Lamy added a comment -

Here a new patch.
Note it contains patches for 4 issues : MODELLO-113 MODELLO-114 MODELLO-115 MODELLO-116

Show
Olivier Lamy added a comment - Here a new patch. Note it contains patches for 4 issues : MODELLO-113 MODELLO-114 MODELLO-115 MODELLO-116
Hide
Olivier Lamy added a comment -

fixed in rev 914

Show
Olivier Lamy added a comment - fixed in rev 914
Hide
Olivier Lamy added a comment -

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">
....
Show
Olivier Lamy added a comment - 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">
....
Hide
Olivier Lamy added a comment -

add support for mixed content in xsd generation in rev 926

Show
Olivier Lamy added a comment - add support for mixed content in xsd generation in rev 926

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: