All, I am using jibx to create Java classes from an already existing xml schema which I do not have control over. The schema makes use of mixed complex types, which as far as I understand jibx does not support, at least not by default. I originally thought I might be able to get around this by writing a simple Class decorator which simply added a field to any class generated from a complex type with the mixed attribute set to true. I am having difficulty however, actually getting at the base xml definition from within my decorator. I've created the following extremely basic schema to demonstrate what I'm attempting to do:
<xsd:schema targetNamespace="urn:bogus" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:bogus"> <xsd:complexType name="FooType" mixed="true"> <xsd:sequence> <xsd:element name="Bar" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema> In the end, I'd like to end up with a class, FooType, which gives me the methods: getBar, setBar, getMixedContent, and setMixedContent. I can't seem to get to the original xml from the IClassHolder parameter on the ClassDecorator to check whether the mixed attribute was set. Stepping through a bit of debugging shows that the value I want is buried all the way in the m_children array of the schema. Is there a proper way to do this that I am missing, or is this really unsupported? Regards, Adam Elnagger ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users