Because we expect that if you want an xml fragment you define your attribute type to be org.w3c.dom.Element in which case you get the attribute content child element.
However, its a bug that we are not parsing anything but Text element content if this is not the case. Open a bug report on sourceforge.


--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Brian Wallis wrote:


I'm trying to configure an MBean that has an attribute that requires a value in XML format.


The MBean is defined in jboss-service.xml in the conf directory something like...

<mbean code="a.b.c.d" name="jboss.deployment:service=abcd">
  <attribute name="DepInfo"> <![CDATA[
<depinfo>
  <value name="abc">A Value</value>
</depinfo>]]
  </attribute>
</mbean>

but in my mbean setDepInfo() method I get an empty string as the value. If I define it like so...

<mbean code="a.b.c.d" name="jboss.deployment:service=abcd">
  <attribute name="DepInfo">
&lt;depinfo>
  &lt;value name="abc">A Value&lt;/value>
&lt;/depinfo>]]
  </attribute>
</mbean>

then it works. I also tried just the raw XML as the value but that breaks as well with the empty string (not surprising, as there isn't any actual character data, the parser would parse the elements.

So, Why doesn't the CDATA work? (maybe this is a dumb XML question?)

brian wallis...



------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to