< prev index next >

test/javax/xml/jaxp/unittest/dom/Bug6521260.java

Print this page




  60 
  61         ByteArrayInputStream bais = new ByteArrayInputStream(docStr.getBytes());
  62 
  63         Document doc = builder.parse(bais);
  64 
  65         Element root = doc.getDocumentElement();
  66 
  67         String systemId = root.getAttribute("systemId");
  68 
  69         // Change the prefix on the "time" attribute so that the list would
  70         // become unsorted
  71         // before my fix to
  72         // xml-xerces/java/src/com/sun/org/apache/xerces/internal/dom/ElementImpl.java
  73         root.setAttributeNS("http://xmlresolver.org/ns/catalog", "xc:time", "100");
  74 
  75         String systemId2 = root.getAttribute("systemId");
  76 
  77         Assert.assertEquals(systemId, systemId2);
  78     }
  79 }
  80 


  60 
  61         ByteArrayInputStream bais = new ByteArrayInputStream(docStr.getBytes());
  62 
  63         Document doc = builder.parse(bais);
  64 
  65         Element root = doc.getDocumentElement();
  66 
  67         String systemId = root.getAttribute("systemId");
  68 
  69         // Change the prefix on the "time" attribute so that the list would
  70         // become unsorted
  71         // before my fix to
  72         // xml-xerces/java/src/com/sun/org/apache/xerces/internal/dom/ElementImpl.java
  73         root.setAttributeNS("http://xmlresolver.org/ns/catalog", "xc:time", "100");
  74 
  75         String systemId2 = root.getAttribute("systemId");
  76 
  77         Assert.assertEquals(systemId, systemId2);
  78     }
  79 }

< prev index next >