Community
Participate
Working Groups
The employee instance document is not valid against the generated schema and needs to be fixed in order for validation to succeed. The issue is that the XmlAnyAttribute (stuff) has the default namespace set, which is ##other, meaning that the any content must come from a namespace other than the target. So the following line: <s:stuff first-name="Joe" last-name="Oracle" /> Should be changed to: <s:stuff xmlns:o="http://www.example.com/other" o:first-name="Joe" o:last-name="Oracle" />
Upon further investigation, both read-only-employee.xml and write-only-employee.xml will require the same change as employee.xml.
Created attachment 168947 [details] Proposed fix Consists of three modified instance docs, one modified test case (added instance doc validation code) and also added a convenience method to the ExternalizedMetadata test class for validation an instance doc against a given schema file.
Reviewed by: matt.macivor@oracle.com Tests: unit tests pass as expected; AnyAttributeMappingTestCases
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink