JAXB: No XML element decl in the XML registry matching the namespace and name

Some code in the rootelement class:\[code\] @XmlElementRefs({ @XmlElementRef(name = "footnoteLink", namespace = "http://www.xbrl.org/2003/linkbase", type = JAXBElement.class, required = false) })\[/code\]It appears following description\[code\]No XML element decl in the XML registry matching the namespace 'http://www.xbrl.org/2003/linkbase' and name 'footnoteLink'.\[/code\]The reason is, that the ObjectFactory from this rootelement class has no decl found.But I found the footnoteLink in another object factory (xlink object factory) .\[code\]private final static QName _FootnoteLink_QNAME = new QName("http://www.xbrl.org/2003/linkbase", "footnoteLink");\[/code\]The point is the xlink declaration:\[code\] <complexType> <sequence> <element ref="link:schemaRef" minOccurs="1" maxOccurs="unbounded" /> <choice minOccurs="0" maxOccurs="unbounded"> <element ref="xbrli:unit"/> <element ref="link:footnoteLink"/> </choice> </sequence> </complexType>\[/code\]I need to point the \[code\]@xmlElementRef "footnoteLink"\[/code\] to the link object factory. Is this possible?
 
Back
Top