package xml
- Alphabetic
- By Inheritance
- xml
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class KeywordConfig(attributesKeyName: slamdata.Predef.String, textKeyName: slamdata.Predef.String) extends Product with Serializable
Value Members
- def elements(nodes: Seq[Node]): Seq[Elem]
- def qualifiedName(elem: Elem): slamdata.Predef.String
-
def
toData(elem: Elem, config: KeywordConfig): Data
Example
Example
<foo type="baz" id="1"> <bar> <baz>37</baz> <bat>one</bat> <bat>two</bat> </bar> <quux>lorem ipsum</quux> </foo>
{ "foo": { "_attributes": { "type": "baz", "id": "1" }, "bar": { "baz": "37", "bat": ["one", "two"] }, "quux": "lorem ipsum" } }
-
def
toEJsonData(elem: Elem): Data
Converts the given element to
Data
using EJson-compliant synthetic keys. -
object
Children
Extract the child sequence from a node.
- object KeywordConfig extends Serializable
-
object
Leaf
Matches a sequence devoid of
Elem
nodes. -
object
LeafText
Extracts all of the text from a leaf sequence.
-
object
SecureXML
Provides methods for securely parsing XML documents, avoiding known DoS attacks.
Provides methods for securely parsing XML documents, avoiding known DoS attacks.
- See also
https://github.com/akka/akka/pull/17660/files#diff-3f57ed15f4aa764e53d971ec647b544fR47
https://github.com/scala/scala-xml/issues/17
- object namespaces