class_docstr: Base class for defining how to parse xml-based image snippets.
  
  Image-specific parsers should define:
      StartElementHandler
      EndElementHandler
      CharacterDataHandler
class_docstr_tok: ["Base","class","for","defining","how","to","parse","xml-based","image","snippets",".","Image-specific","parsers","should","define",":","StartElementHandler","EndElementHandler","CharacterDataHandler"]
docstr: Parameters
  ----------
  encoding : str
      string containing xml document
  
  buffer_size: None or int, optional
      size of read buffer. None uses default buffer_size
      from xml.parsers.expat.
  
  verbose : int, optional
      amount of output during parsing (0=silent, by default).
docstr_tok: ["Parameters","--","--","--","--","--","encoding",":","str","string","containing","xml","document","buffer_size",":","None","or","int",",","optional","size","of","read","buffer",".","None","uses","default","buffer_size","from","xml.parsers.expat",".","verbose",":","int",",","optional","amount","of","output","during","parsing","(","0=silent",",","by","default",")","."]
code: def __init__(self, encoding="utf-8", buffer_size=35000000, verbose=0):
      """
      Parameters
      ----------
      encoding : str
          string containing xml document
  
      buffer_size: None or int, optional
          size of read buffer. None uses default buffer_size
          from xml.parsers.expat.
  
      verbose : int, optional
          amount of output during parsing (0=silent, by default).
      """
      self.encoding = encoding
      self.buffer_size = buffer_size
      self.verbose = verbose
      self.fname = None
  
file_path: nibabel/nibabel/xmlutils.py
imports: from io import BytesIO
  from xml.etree.ElementTree import Element, SubElement, tostring
  from xml.parsers.expat import ParserCreate
  from .filebasedimages import FileBasedHeader
label_desc: Use image node_id 1 to create a new XmlParser object  with example: obj = XmlParser(encoding, buffer_size, verbose)