I have an xml element called Extension.  It allows extensions because it
uses the <any> tag.

I had JiBX generate my Java code from the schema.  In the generated code I
can access the <any> list via the call "public List<org.w3c.dom.Element>
getAnyList()".

Unfortunately the list is not populated with org.w3c.dom.Element - but
rather by com.sun.org.apache.xerces.internal.dom.XXX (which are not
subclassed off of Element).  I think this is a bug.

Right now I treat the list as a list of Object, and then make appropriate
casts.  Other suggestions are welcome.

BTW - what I want to have happen is for the xml generator to have a
namespace for their extension schema and for me to be able to switch to
that schema when processing <any>.  Other suggestions are welcome.

Thanks
    RonA
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to