databricks / spark-xml

XML data source for Spark SQL and DataFrames
Apache License 2.0
505 stars 227 forks source link

Add option to ignore namespace on elements #501

Closed srowen closed 3 years ago

srowen commented 3 years ago

This adds a new ignoreNamespace parameter that will disregard namespace prefixes on elements (besides the root tag) Closes #168

codecov-io commented 3 years ago

Codecov Report

Merging #501 (1111d8c) into master (e3d7bd8) will increase coverage by 0.04%. The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #501      +/-   ##
==========================================
+ Coverage   86.70%   86.75%   +0.04%     
==========================================
  Files          18       18              
  Lines         933      944      +11     
  Branches       83       95      +12     
==========================================
+ Hits          809      819      +10     
- Misses        124      125       +1     
Impacted Files Coverage Δ
...m/databricks/spark/xml/parsers/StaxXmlParser.scala 96.57% <88.88%> (-0.55%) :arrow_down:
...in/scala/com/databricks/spark/xml/XmlOptions.scala 100.00% <100.00%> (ø)
...la/com/databricks/spark/xml/util/InferSchema.scala 89.93% <100.00%> (+0.20%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e3d7bd8...1111d8c. Read the comment docs.