On 6 June 2011 11:29, <jurgis_at_viesite.edu.lv> wrote:
>
>
> <content>
> <dynamic_data>....</dynamic_data>
> </content>
>
> tag name dynamic_data is not known so my purpose is to define content
> tag as anyType so I can get it as Element and then dive into
> "manually".
> So I defined schema like that:
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xs:element name="content" type="xs:anyType"/>
> </xs:schema>
>
> Unfortunately xjc generated only ObjectFactory.java file not Content
> class.
>
What would you expect to be in the generated "Content" class? If you don't
know anything, the type of the element <content> is java.lang.Object, and
you don't need Java code for that.
See
http://jaxb.java.net/tutorial/section_2_2_16_1-Elements-With-Any-Type.html#Elements%20With%20Any%20Type
-W