Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » [Moxy] Mixed objects (Howto get XML with mixed objects)
[Moxy] Mixed objects [message #692499] Mon, 04 July 2011 11:23 Go to previous message
Kasper Thuno is currently offline Kasper Thuno
Messages: 11
Registered: March 2011
Junior Member
Hey,

I have run into a problem which worked with Metro. Using same annotations for EclipseLink just gives nothing.

Consider following XML snippet:

<?xml version="1.0" encoding="ISO-8859-1"?>
<theme>
   <layer downloadable="true" type="point" datasource="ds_bibliotek" name="bibliotek">
[some where important text i want to read into an object]
      <class>
         <name>Bibliotek</name>
         <style>
            <color>255 102 101</color>
            <size>10</size>
            <symbol>square</symbol>
         </style>
      </class>
   </layer>
</theme>


The text node (DOM wise) containing the text "[some where important text i want to read into an object]" is not loaded into the Layer object.

The Java code has this:

@XmlMixed
private ArrayList<Object> objects = new ArrayList<Object>();

.
.
.

@XmlTransient
public ArrayList<Object> getObjects()
{
	return objects;
}

public void setObjects(ArrayList<Object> objects)
{
	this.objects = objects;
}


but nothing is in the Arraylist "objects".

Please help me out!

/Kasper
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:(no subject)
Next Topic:Maven static weaving plugin
Goto Forum:
  


Current Time: Sat May 25 15:28:29 EDT 2013

Powered by FUDForum. Page generated in 0.01682 seconds