elena       2002/09/25 11:41:02

  Modified:    java/samples/dom DOMAddLines.java
  Log:
  Update sample following the XNI changes
  
  Revision  Changes    Path
  1.9       +5 -6      xml-xerces/java/samples/dom/DOMAddLines.java
  
  Index: DOMAddLines.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/samples/dom/DOMAddLines.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOMAddLines.java  12 Jun 2002 00:27:46 -0000      1.8
  +++ DOMAddLines.java  25 Sep 2002 18:41:02 -0000      1.9
  @@ -62,6 +62,7 @@
   import org.apache.xerces.parsers.DOMParser;
   import org.apache.xerces.xni.Augmentations;
   import org.apache.xerces.xni.QName;
  +import org.apache.xerces.xni.NamespaceContext;
   import org.apache.xerces.xni.XMLAttributes;
   import org.apache.xerces.xni.XMLLocator;
   import org.apache.xerces.xni.XMLString;
  @@ -254,15 +255,13 @@
   
      /* We override startDocument callback from DocumentHandler */
   
  -   public void startDocument(XMLLocator locator, String encoding, Augmentations 
augs) throws XNIException {
  -     //super.startDocument( versionIndex, encodingIndex,
  -     //                               standAloneIndex);
  -     super.startDocument(locator, encoding, augs);
  +   public void startDocument(XMLLocator locator, String encoding, 
  +                             NamespaceContext namespaceContext, Augmentations augs) 
throws XNIException {
  +     super.startDocument(locator, encoding, namespaceContext, augs);
        this.locator = locator;
        Node node = null ;
         try {
         node = (Node) this.getProperty( 
"http://apache.org/xml/properties/dom/current-element-node"; );
  -      //System.out.println( "The node = " + node );
         }
        catch( org.xml.sax.SAXException ex )
         {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to