code: def xml(
      self,
      path: str,
      rowTag: Optional[str] = None,
      schema: Optional[Union[StructType, str]] = None,
      excludeAttribute: Optional[Union[bool, str]] = None,
      attributePrefix: Optional[str] = None,
      valueTag: Optional[str] = None,
      ignoreSurroundingSpaces: Optional[Union[bool, str]] = None,
      rowValidationXSDPath: Optional[str] = None,
      ignoreNamespace: Optional[Union[bool, str]] = None,
      wildcardColName: Optional[str] = None,
      encoding: Optional[str] = None,
      inferSchema: Optional[Union[bool, str]] = None,
      nullValue: Optional[str] = None,
      dateFormat: Optional[str] = None,
      timestampFormat: Optional[str] = None,
      mode: Optional[str] = None,
      columnNameOfCorruptRecord: Optional[str] = None,
      multiLine: Optional[Union[bool, str]] = None,
      samplingRatio: Optional[Union[float, str]] = None,
      locale: Optional[str] = None,
  ) -> "DataFrame":
      self._set_opts(
          rowTag=rowTag,
          schema=schema,
          excludeAttribute=excludeAttribute,
          attributePrefix=attributePrefix,
          valueTag=valueTag,
          ignoreSurroundingSpaces=ignoreSurroundingSpaces,
          rowValidationXSDPath=rowValidationXSDPath,
          ignoreNamespace=ignoreNamespace,
          wildcardColName=wildcardColName,
          encoding=encoding,
          inferSchema=inferSchema,
          nullValue=nullValue,
          dateFormat=dateFormat,
          timestampFormat=timestampFormat,
          mode=mode,
          columnNameOfCorruptRecord=columnNameOfCorruptRecord,
          multiLine=multiLine,
          samplingRatio=samplingRatio,
          locale=locale,
      )
      if isinstance(path, str):
          return self.load(path=path, format="xml")
      else:
          raise PySparkTypeError(
              error_class="NOT_STR",
              message_parameters={
                  "arg_name": "path",
                  "arg_type": type(path).__name__,
              },
          )
  
imports: from pyspark.sql.connect.utils import check_dependencies
  import sys
  import pickle
  from typing import cast, overload, Callable, Dict, List, Optional, TYPE_CHECKING, Union
  from pyspark.serializers import CloudPickleSerializer
  from pyspark.sql.connect.plan import DataSource, LogicalPlan, Read, WriteStreamOperation
  import pyspark.sql.connect.proto
  from pyspark.sql.connect.readwriter import OptionUtils, to_str
  from pyspark.sql.connect.streaming.query import StreamingQuery
  from pyspark.sql.streaming.readwriter import DataStreamReader, DataStreamWriter
  from pyspark.sql.connect.utils import get_python_ver
  from pyspark.sql.types import Row, StructType
  from pyspark.errors import PySparkTypeError, PySparkValueError, PySparkPicklingError
label_desc: Use image node_id 13 for calling the DataStreamReader obj's underlying member method code with example usage: obj.xml(path, rowTag, schema, excludeAttribute, attributePrefix, valueTag, ignoreSurroundingSpaces, rowValidationXSDPath, ignoreNamespace, wildcardColName, encoding, inferSchema, nullValue, dateFormat, timestampFormat, mode, columnNameOfCorruptRecord, multiLine, samplingRatio, locale) and returns: self