XmlNode

cats.xml.XmlNode$
See theXmlNode companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
XmlNode.type

Members list

Concise view

Type members

Classlikes

final class Group extends XmlNode

Class that represent a group of nodes without a container node.

Class that represent a group of nodes without a container node.

You can convert a Group into Node using XmlNodeGroup.toNode method.

<Foo a="1">
<Foo a="2">
<Foo a="3">

Attributes

Graph
Supertypes
trait XmlNode
trait Xml
class Object
trait Matchable
class Any
final class Node extends XmlNode

Represent a simple single XML node.

Represent a simple single XML node.

<Bar>
 <Foo a="1">
 <Foo a="2">
 <Foo a="3">
</Bar>

Attributes

Graph
Supertypes
trait XmlNode
trait Xml
class Object
trait Matchable
class Any

Inherited classlikes

implicit class GenericXmlNodeReadOps[K <: XmlNode](genericNode: K)

Attributes

Inherited from:
XmlNodeSyntax
Graph
Supertypes
class Object
trait Matchable
class Any
implicit class GenericXmlNodeWriteOps[K <: XmlNode](val genericNode: K)

Attributes

Inherited from:
XmlNodeSyntax
Graph
Supertypes
class Object
trait Matchable
class Any
implicit class XmlNodeCursorOps(node: XmlNode)

Attributes

Inherited from:
XmlNodeSyntax
Graph
Supertypes
class Object
trait Matchable
class Any
implicit class XmlNodeNodeWriteOps(node: Node)

Attributes

Inherited from:
XmlNodeSyntax
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(label: String, attributes: List[XmlAttribute], content: NodeContent): Node

Unsafe create a new XmlNode.Node

Unsafe create a new XmlNode.Node

Throws IllegalArgumentException If label is not a valid xml name or attributes and content are null.

Attributes

attributes

Not attributes, could be empty.

content

Node content.

label

Node label value. Must be valid and non-empty. See Xml.isValidXmlName

Returns:

A new XmlNode.Node instance with the specified values

def fromSeq(elements: Seq[XmlNode]): XmlNode
def group(node: XmlNode, nodeN: XmlNode*): Group

Create a new XmlNode.Group instance with the specified XmlNodes

Create a new XmlNode.Group instance with the specified XmlNodes

Attributes

node

element

nodeN

other elements

Returns:

A new XmlNode.Group instance with the specified XmlNodes

def group(elements: Seq[XmlNode]): Group

Create a new XmlNode.Group instance with the specified XmlNodes

Create a new XmlNode.Group instance with the specified XmlNodes

Attributes

elements

Group elements

Returns:

A new XmlNode.Group instance with the specified XmlNodes

def safeApply(label: String, attributes: List[XmlAttribute], content: NodeContent): Either[Throwable, Node]

Safely create a new XmlNode.Node

Safely create a new XmlNode.Node

Attributes

attributes

Not attributes, could be empty.

content

Node content.

label

Node label value. Must be valid and non-empty

Returns:

A new XmlNode.Node instance with the specified values

Concrete fields

lazy val emptyGroup: Group

Implicits

Inherited implicits

final implicit def GenericXmlNodeReadOps[K <: XmlNode](genericNode: K): GenericXmlNodeReadOps[K]

Attributes

Inherited from:
XmlNodeSyntax
final implicit def GenericXmlNodeWriteOps[K <: XmlNode](genericNode: K): GenericXmlNodeWriteOps[K]

Attributes

Inherited from:
XmlNodeSyntax
final implicit def XmlNodeCursorOps(node: XmlNode): XmlNodeCursorOps

Attributes

Inherited from:
XmlNodeSyntax
final implicit def XmlNodeNodeWriteOps(node: Node): XmlNodeNodeWriteOps

Attributes

Inherited from:
XmlNodeSyntax
implicit val eqXmlNode: Eq[XmlNode]

Attributes

Inherited from:
XmlNodeInstances
implicit val monoidXmlNodeGroup: Monoid[XmlNode]

Attributes

Inherited from:
XmlNodeInstances
implicit def showXmlNode[T <: XmlNode](implicit printer: XmlPrinter, config: Config): Show[T]

Attributes

Inherited from:
XmlNodeInstances