class_docstr: Article source for articles in DML format (DML-CZ, Numdam):
  1) articles = directories starting with '#'
  2) content is stored in fulltext.txt
  3) metadata are stored in meta.xml
  
  Article URI is currently (a part of) the article's path on filesystem.
  
  See the ArticleSource class for general info on sources.
class_docstr_tok: ["Article","source","for","articles","in","DML","format","(","DML-CZ",",","Numdam",")",":","1",")","articles","=","directories","starting","with","'","#","'","2",")","content","is","stored","in","fulltext.txt","3",")","metadata","are","stored","in","meta.xml","Article","URI","is","currently","(","a","part","of",")","the","article","'s","path","on","filesystem",".","See","the","ArticleSource","class","for","general","info","on","sources","."]
docstr: Parse out all fields from meta.xml, return them as a dictionary.
code: def parseDmlMeta(cls, xmlfile):
      """
      Parse out all fields from meta.xml, return them as a dictionary.
      """
      result = {}
      xml = open(xmlfile)
      for line in xml:
          if (
              line.find("<article>") >= 0
          ):  # skip until the beginning of <article> tag
              break
      for line in xml:
          if (
              line.find("</article>") >= 0
          ):  # end of <article>, we're done
              break
          p = re.search(PAT_TAG, line)
          if p:
              name, cont = p.groups()
              name = name.split()[0]
              name, cont = name.strip(), cont.strip()
              if name == "msc":
                  if len(cont) != 5:
                      logger.warning(
                          "invalid MSC=%s in %s", cont, xmlfile
                      )
                  result.setdefault("msc", []).append(cont)
                  continue
              if name == "idMR":
                  cont = cont[2:]  # omit MR from MR123456
              if name and cont:
                  result[name] = cont
      xml.close()
      return result
  
imports: import logging
  import os
  import os.path
  import re
  import xml.sax
  from gensim import utils
  import sys
label_desc: Use image node_id 3 for calling the DmlSource obj's underlying member method code with example usage: obj.parseDmlMeta(cls, xmlfile) and returns: result