class_docstr: Helper class creating xml file to one without references to nkjp: namespace.
  That's needed because the XMLCorpusView assumes that one can find short substrings
  of XML that are valid XML, which is not true if a namespace is declared at top level
class_docstr_tok: ["Helper","class","creating","xml","file","to","one","without","references","to","nkjp",":","namespace",".","That","'s","needed","because","the","XMLCorpusView","assumes","that","one","can","find","short","substrings","of","XML","that","are","valid","XML",",","which","is","not","true","if","a","namespace","is","declared","at","top","level"]
code: def __init__(self, root, filename):
      self.read_file = os.path.join(root, filename)
      self.write_file = tempfile.NamedTemporaryFile(delete=False)
  
imports: import functools
  import os
  import re
  import tempfile
  from nltk.corpus.reader.util import concat
  from nltk.corpus.reader.xmldocs import XMLCorpusReader, XMLCorpusView
label_desc: Use image node_id 1 to create a new XML_Tool object  with example: obj = XML_Tool(root, filename)