xml - JAXB binding XPath error -
i attempting fix collision when jaxb generating classes set of xsds. here's xml:
<xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema" ...> ... <xs:simpletype name="list_offerdimensionuom"> ... </xs:simpletype> </xs:schema>
and binding.xjb file:
<jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/xmlschema"> <jxb:bindings schemalocation="ota_lists.xsd" node="/xs:schema"> <jxb:bindings node="xs:simpletype[@name='list_offerdistanceuom']"> <jxb:property name="list_offerdistanceuomlist"/> </jxb:bindings> </jxb:bindings> </jxb:bindings>
i have tried few different combinations of defining xpath desired element, , keep getting same error:
compiler unable honor property customization. attached wrong place, or inconsistent other bindings.
i have searched few hours looking answers, , have found little help. error message saying it's in wrong place doesn't make sense, i'm xpath valid. also, "other bindings" doesn't make sense, since there 1 @ moment.
i found problem. step above here. stack trace lead me "list_offerdimensionuom" element didn't point root of problem. stack trace following pointed correct element, statement: "this error related above-mentioned" or effect. -_-
Comments
Post a Comment