You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2001/01/26 21:23:12 UTC

cvs commit: xml-xerces/java/src/org/apache/xml/serialize OutputFormat.java

elena       01/01/26 12:23:12

  Modified:    java/src/org/apache/xml/serialize OutputFormat.java
  Log:
  Uncommenting code related to DOM Level 2 -- getSystemId()/ getPublicId()
  
  Revision  Changes    Path
  1.11      +7 -7      xml-xerces/java/src/org/apache/xml/serialize/OutputFormat.java
  
  Index: OutputFormat.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/OutputFormat.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- OutputFormat.java	2000/12/14 19:21:54	1.10
  +++ OutputFormat.java	2001/01/26 20:23:10	1.11
  @@ -91,7 +91,7 @@
    * </ul>
    *
    *
  - * @version $Revision: 1.10 $ $Date: 2000/12/14 19:21:54 $
  + * @version $Revision: 1.11 $ $Date: 2001/01/26 20:23:10 $
    * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
    *         <a href="mailto:visco@intalio.com">Keith Visco</a>
    * @see Serializer
  @@ -905,16 +905,16 @@
       {
           DocumentType doctype;
   
  -        /* XXX  Delayed until DOM Level 2 is introduced into the code base
  +           /*  DOM Level 2 was introduced into the code base*/
              doctype = doc.getDoctype();
              if ( doctype != null ) {
              // Note on catch: DOM Level 1 does not specify this method
              // and the code will throw a NoSuchMethodError
              try {
  -           return doctype.getPublicID();
  +           return doctype.getPublicId();
              } catch ( Error except ) {  }
              }
  -        */
  +        
           if ( doc instanceof HTMLDocument )
               return DTD.XHTMLPublicId;
           return null;
  @@ -929,16 +929,16 @@
       {
           DocumentType doctype;
   
  -        /* XXX  Delayed until DOM Level 2 is introduced into the code base
  +        /* DOM Level 2 was introduced into the code base*/
              doctype = doc.getDoctype();
              if ( doctype != null ) {
              // Note on catch: DOM Level 1 does not specify this method
              // and the code will throw a NoSuchMethodError
              try {
  -           return doctype.getSystemID();
  +           return doctype.getSystemId();
              } catch ( Error except ) { }
              }
  -        */
  +        
           if ( doc instanceof HTMLDocument )
               return DTD.XHTMLSystemId;
           return null;