Hi, 

        Im sub-classing XMLSerializer, but I find that I cannot access the 
'state' object
        for any given element because its fields are not defined to be public. 
I've created
        a patch for Xerces-1.4.3 ElementState.java which I am appending (its 
short). 

        Is there any reason to keep these fields private (or not have public 
accessor methods)?? 

                                                        Regards,

                                                        -b.t.
-- 

  * Dr. Brian Thomas 
  * ADC NASA/Raytheon ITSS

  *   fax: (301) 286-1771
  * phone: (301) 286-6128

The future is a myth created by insurance salesmen and high school counselors.

Patch Begins Here:
*** ElementState.java.orig      Fri Aug 31 15:22:35 2001
--- ElementState.java   Fri Aug 31 14:34:24 2001
***************
*** 77,146 ****
      /**
       * The element's raw tag name (local or prefix:local).
       */
!     String rawName;
  
  
      /**
       * The element's local tag name.
       */
!     String localName;
  
  
      /**
       * The element's namespace URI.
       */
!     String namespaceURI;
  
  
      /**
       * True if element is space preserving.
       */
!     boolean preserveSpace;
  
  
      /**
       * True if element is empty. Turns false immediately
       * after serializing the first contents of the element.
       */
!     boolean empty;
  
  
      /**
       * True if the last serialized node was an element node.
       */
!     boolean afterElement;
  
  
      /**
       * True if the last serialized node was a comment node.
       */
!     boolean afterComment;
  
  
      /**
       * True if textual content of current element should be
       * serialized as CDATA section.
       */
!     boolean doCData;
  
  
      /**
       * True if textual content of current element should be
       * serialized as raw characters (unescaped).
       */
!     boolean unescaped;
  
  
      /**
       * True while inside CData and printing text as CData.
       */
!     boolean inCData;
  
  
      /**
       * Association between namespace URIs (keys) and prefixes (values).
       */
!     Hashtable prefixes;
  
  
  }
--- 77,146 ----
      /**
       * The element's raw tag name (local or prefix:local).
       */
!     public String rawName;
  
  
      /**
       * The element's local tag name.
       */
!     public String localName;
  
  
      /**
       * The element's namespace URI.
       */
!     public String namespaceURI;
  
  
      /**
       * True if element is space preserving.
       */
!     public boolean preserveSpace;
  
  
      /**
       * True if element is empty. Turns false immediately
       * after serializing the first contents of the element.
       */
!     public boolean empty;
  
  
      /**
       * True if the last serialized node was an element node.
       */
!     public boolean afterElement;
  
  
      /**
       * True if the last serialized node was a comment node.
       */
!     public boolean afterComment;
  
  
      /**
       * True if textual content of current element should be
       * serialized as CDATA section.
       */
!     public boolean doCData;
  
  
      /**
       * True if textual content of current element should be
       * serialized as raw characters (unescaped).
       */
!     public boolean unescaped;
  
  
      /**
       * True while inside CData and printing text as CData.
       */
!     public boolean inCData;
  
  
      /**
       * Association between namespace URIs (keys) and prefixes (values).
       */
!     public Hashtable prefixes;
  
  
  }


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

Reply via email to