Hi,

in example7 of the binding tutorial, there's a xml like:

<customer>
  <street>12345 Happy Lane</street>
  <city>Plunk</city>
  <state>WA</state>
  <zip>98059</zip>
  <instructions>
    <!-- content skipped when unmarshalled -->
    <p>Leave package behind bushes to <b>left</b>
      of door</p>
    <!-- always marshalled as empty -->
  </instructions>
  <phone>888.555.1234</phone>
</customer>

if I marshall the object, I would like to write the follwing element
with it's content to the xml file (comments are not importent):

  <instructions>
    <!-- content skipped when unmarshalled -->
    <p>Leave package behind bushes to <b>left</b>
      of door</p>
    <!-- always marshalled as empty -->
  </instructions>

is there someting like any in xml-schema in the binding-defintion of
jibx ? f.e. i don't know the sub-content of an element (f.e. because ist
structure is too complex) but however I want to write it to my
marshalled xml-file.

for my tries I get the following exception:

org.jibx.runtime.JiBXException: Expected "instructions" end tag, found
"p" start tag (line 7, col 4)
        at
org.jibx.runtime.impl.UnmarshallingContext.parseContentText(Unmarshallin
gContext.java:956)
        at
org.jibx.runtime.impl.UnmarshallingContext.parseElementText(Unmarshallin
gContext.java:1005)


Thanks for any advice,
Markus



 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to