render

fs2.data.xml.`package`.render
object render

XML Event stream pipes to render XML values.

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
render.type

Members list

Value members

Concrete methods

def prettyPrint[F[_]](width: Int, indent: Int)(implicit renderable: Renderable[XmlEvent]): (F, XmlEvent) => String

Render the incoming xml events intot a prettified string representation.

Render the incoming xml events intot a prettified string representation. _Prettified_ means that nested tags will be indented as per indent parameter and text data (except for CDATA, which remains untouched) is indented to the current indentation level after each new line.

This pipe can be used when whitespace characters are not relevant to the application and to make it more readable to human beings.

Attributes

Source
package.scala
def raw[F[_]](collapseEmpty: Boolean): (F, XmlEvent) => String

Render the incoming xml events to their string representation.

Render the incoming xml events to their string representation. The output will be concise, without additional (or original) whitespace and with empty tags being collapsed to the short self-closed form <x/> if collapseEmpty is true.

Attributes

Source
package.scala