class_docstr: Class representing a VOC annotations file.
  
  Args:
      path (None): the path to the image
      folder (None): the name of the folder containing the image
      filename (None): the image filename
      segmented (None): whether the objects are segmented
      metadata (None): a :class:`fiftyone.core.metadata.ImageMetadata`
          instance
      objects (None): a list of :class:`VOCObject` instances
class_docstr_tok: ["Class","representing","a","VOC","annotations","file",".","Args",":","path","(","None",")",":","the","path","to","the","image","folder","(","None",")",":","the","name","of","the","folder","containing","the","image","filename","(","None",")",":","the","image","filename","segmented","(","None",")",":","whether","the","objects","are","segmented","metadata","(","None",")",":","a",":","class",":","`","fiftyone.core.metadata.ImageMetadata","`","instance","objects","(","None",")",":","a","list","of",":","class",":","`","VOCObject","`","instances"]
docstr: Creates a :class:`VOCAnnotation` instance from an XML annotations
  file.
  
  Args:
      xml_path: the path to the XML file
  
  Returns:
      a :class:`VOCAnnotation`
docstr_tok: ["Creates","a",":","class",":","`","VOCAnnotation","`","instance","from","an","XML","annotations","file",".","Args",":","xml_path",":","the","path","to","the","XML","file","Returns",":","a",":","class",":","`","VOCAnnotation","`"]
code: def from_xml(cls, xml_path):
      """Creates a :class:`VOCAnnotation` instance from an XML annotations
      file.
  
      Args:
          xml_path: the path to the XML file
  
      Returns:
          a :class:`VOCAnnotation`
      """
      d = fou.load_xml_as_json_dict(xml_path)
      return cls.from_dict(d)
  
imports: import logging
  import os
  import jinja2
  import eta.core.utils
  import fiftyone.constants
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.utils.data
label_desc: Use image node_id 4 for calling the VOCAnnotation obj's underlying member method code with example usage: obj.from_xml(cls, xml_path) and returns: cls