Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

I'm using version 2.3.0 of the XML parser but there seems to be a difference between the Scala2 version and the Scala3 version. In particular, CDATA constructs in the XML do not appear to be converted ...
Phasmid's user avatar
  • 953
0 votes
1 answer
502 views

I am using the ScalaXB plugin to convert XSD files to Scala case classes and it is working fine but is there any way to add javax.xml.bind.annotation with it? The reason I need is to marshal/unmarshal ...
Prabhat Kashyap's user avatar
0 votes
1 answer
46 views

I am currently processing big XML files using Scala 3. I wish every node (XML element) to report automatically if not all their attributes and children were read. I have developed a solution, but feel ...
Marcus's user avatar
  • 2,251
0 votes
1 answer
106 views

I'm trying to implement some small quality-of-life improvements around an XML parser, basically trying to ape the way Circe looks like for Json parsing in Scala. The idea then would be to come up with ...
user941097's user avatar
0 votes
1 answer
129 views

I created a project with sbt new scala/scala3.g8 This is my modified build.sbt val scala3Version = "3.2.1" lazy val root = project .in(file(".")) .settings( name := "...
Rauññ's user avatar
  • 411
1 vote
0 answers
104 views

I want to use scala-xml to change the version number of one dependency in a bunch of pom.xml files. I know this is normally not the best way to approach such a task but in my use case I think it is. ...
avs's user avatar
  • 678
1 vote
1 answer
142 views

I am trying to load an xml file using scala-xml_2.12-1.0.6.jar but it gives me NullPointerEexception while loading Following is my line of code to load xml import scala.xml.XML val xml = XML.loadFile(&...
M.Ahsen Taqi's user avatar
0 votes
1 answer
881 views

I have the following problem: I'm using [xtract][1], a Scala library for parsing XMLs. The latest version, 2.0.0 I'm trying to parse an XML file like this <annotation> <folder>home</...
Alexander's user avatar
0 votes
1 answer
106 views

I have a class where I want a conditional Elem in xml to be added, but I am unable to do this. Please help. The ShortName block is supposed to be conditional. While debugging I see that get shortname ...
Koustav Ray's user avatar
  • 1,152
1 vote
1 answer
470 views

In order to make them fully JVM 11 compatible, I want to update several Scala scripts on Debian and Ubuntu systems from Scala 2.12.12 to Scala 2.13.3. The first problem I encountered is that the scala-...
Marcus's user avatar
  • 2,251
0 votes
1 answer
610 views

I have been using scala-xml successfully for a long time on Linux. I recently upgraded to Scala 2.13.0 and scala-xml 1.2.0. I am using sbt 1.2.8 with this line: libraryDependencies += "org.scala-lang....
Russ P.'s user avatar
  • 87
3 votes
1 answer
147 views

I am trying to get scala xml node tag with attribute. I would like to get just the tag name with attribute and not the child elements. I have this input: <substance-classes> <nucleic-...
nancy's user avatar
  • 55
2 votes
2 answers
363 views

Consider the following XML node: <Interval> <P v="1"/> <Q v="0.0"/> </Interval> What is the correct way to pattern match the top level element in Scala? I would ...
kostas's user avatar
  • 2,019
3 votes
3 answers
181 views

I have a sample code import org.apache.spark.sql.Row import scala.xml._ object reading_xml { def main(args: Array[String]): Unit = { //I have 42 Millions of records val records = List( ...
tree em's user avatar
  • 22k
-1 votes
1 answer
153 views

val rdd = df.rdd.map(line => Row.fromSeq(( scala.xml.XML.loadString("<?xml version='1.0' encoding='utf-8'?>" + line(1)).child .filter(elem => elem.label == "...
tree em's user avatar
  • 22k

15 30 50 per page
1
2 3 4 5