Hello, I got exception: org.jibx.runtime.JiBXException: Missing required attribute "xlink:href" (line 2, col 211) at org.jibx.runtime.impl.UnmarshallingContext.attributeText(UnmarshallingContext.java:980) when I try to unmarshall data XML - provided schemas looks like:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink"> <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="../xlink.xsd" /> <xs:complexType name="propertyListEntryType"> <xs:attribute name="giataId" type="xs:int" use="required" /> <xs:attribute name="lastUpdate" type="xs:dateTime" /> <xs:attribute name="movedTo" type="xs:int" /> <xs:attribute name="movedOn" type="xs:dateTime" /> <xs:attribute name="deletedOn" type="xs:dateTime" /> <xs:attribute name="xlink:href" form="qualified" type="xs:anyURI" use="required" /> </xs:complexType> </xs:schema> xlink.xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink"> <xs:attribute name="href" type="xs:anyURI" /> </xs:schema> Generated field in Java class looks like: private String xlinkhref; I think it could be some trivial error considering namespaces, but I don't know how to solve it ? Best regards, Adr ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users