Scala: code to find worksheet name in an excel workbook saved in microsoft xml 2003 format:
def matchName(n: scala.xml.NodeSeq, s_attributeValue: String): Boolean = { n match { case xml.Elem(_, "Worksheet", xml.PrefixedAttribute("ss", "Name", v, _), _, _*) => if(v.text==s_attributeValue) true else false case _ => false } }
Aucun commentaire:
Enregistrer un commentaire