You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XML allows for comments and processing instructions to be present before the start and after the end of the root element. Currently, FactoryAdapter does not capture those nodes, and XMLLoader.loadXML does not provide access to anything other than the root element anyway.
This pull request addresses the issue.
Note: at least with the JDK's Xerces, whitespace in the prolog and epilogue gets lost in parsing: the parser does not fire any white-space related events.
@@ -51,28 +53,28 @@ abstract class FactoryAdapter extends DefaultHandler2 with factory.XMLLoader[Nod
51
53
*
52
54
* @since 2.0.0
53
55
*/
54
-
varattribStack=List.empty[MetaData]
56
+
varattribStack:List[MetaData] =List.empty
55
57
/** List of elements
56
58
*
57
59
* Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]].
58
60
*
59
61
* @since 2.0.0
60
62
*/
61
-
varhStack=List.empty[Node]// [ element ] contains siblings
63
+
varhStack:List[Node] =List.empty // [ element ] contains siblings
62
64
/** List of element names
63
65
*
64
66
* Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]].
65
67
*
66
68
* @since 2.0.0
67
69
*/
68
-
vartagStack=List.empty[String]
70
+
vartagStack:List[String] =List.empty
69
71
/** List of namespaces
70
72
*
71
73
* Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]].
72
74
*
73
75
* @since 2.0.0
74
76
*/
75
-
varscopeStack=List.empty[NamespaceBinding]
77
+
varscopeStack:List[NamespaceBinding] =List.empty
76
78
77
79
varcurTag:String= _
78
80
varcapture:Boolean=false
@@ -123,7 +125,7 @@ abstract class FactoryAdapter extends DefaultHandler2 with factory.XMLLoader[Nod
0 commit comments