Bug 306541 - JAXB JUnit: JAXBXMLComparer should ignore order for imports
Summary: JAXB JUnit: JAXBXMLComparer should ignore order for imports
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 11:48 EDT by David McCann CLA
Modified: 2022-06-09 10:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David McCann CLA 2010-03-19 11:48:03 EDT
Currently these two schemas are considered NOT equal by the comparer:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:p="http://www.example.com/personal" xmlns:a="http://www.example.com/address" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:import schemaLocation="schema1.xsd" namespace="http://www.example.com/address"/>
   <xsd:import schemaLocation="schema2.xsd" namespace="http://www.example.com/personal"/>
   <xsd:complexType name="team">
      <xsd:sequence>
         <xsd:element name="contact-info">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element ref="a:home-address" minOccurs="0"/>
                  <xsd:element ref="p:personal-info" minOccurs="0"/>
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>

AND

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:p="http://www.example.com/personal" xmlns:a="http://www.example.com/address" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:import schemaLocation="schema1.xsd" namespace="http://www.example.com/personal"/>
   <xsd:import schemaLocation="schema2.xsd" namespace="http://www.example.com/address"/>
   <xsd:complexType name="team">
      <xsd:sequence>
         <xsd:element name="contact-info">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element ref="a:home-address" minOccurs="0"/>
                  <xsd:element ref="p:personal-info" minOccurs="0"/>
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>

These schemas are equal for our testing purposes.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:05:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink