class_docstr: Initialisation of XMLBIFReader object.
  
  Parameters
  ----------
  path : file or str
      File of XMLBIF data
      File of XMLBIF data
  
  string : str
      String of XMLBIF data
  
  Examples
  --------
  # xmlbif_test.xml is the file present in
  # http://www.cs.cmu.edu/~fgcozman/Research/InterchangeFormat/
  >>> from pgmpy.readwrite import XMLBIFReader
  >>> reader = XMLBIFReader("xmlbif_test.xml")
  >>> model = reader.get_model()
  
  Reference
  ---------
  [1] https://www.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/
code: def __init__(self, path=None, string=None):
      if path:
          self.network = (
              etree.ElementTree(file=path).getroot().find("NETWORK")
          )
      elif string:
          self.network = etree.fromstring(string.encode("utf-8")).find(
              "NETWORK"
          )
      else:
          raise ValueError("Must specify either path or string")
      self.network_name = self.network.find("NAME").text
      self.variables = self.get_variables()
      self.variable_parents = self.get_parents()
      self.edge_list = self.get_edges()
      self.variable_states = self.get_states()
      self.variable_CPD = self.get_values()
      self.variable_property = self.get_property()
      self.state_names = self.get_states()
  
imports: import xml.etree.ElementTree
  from io import BytesIO
  from itertools import chain
  import numpy
  import pyparsing
  from pgmpy.factors.discrete import State, TabularCPD
  from pgmpy.models import BayesianNetwork
  from pgmpy.utils import compat_fns
label_desc: Use image node_id 1 to create a new XMLBIFReader object from inherited base classes: object with example: obj = XMLBIFReader(path, string)