fs2.data.xml

package fs2.data.xml

Members list

Packages

Type members

Classlikes

case class Attr(name: QName, value: List[XmlTexty])

Attributes

Source
Attr.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object NSCAttributesUnique extends NSError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class NSError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
case object NSCNoPrefixUndeclaring extends NSError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class NSError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
case object NSCPrefixDeclared extends NSError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class NSError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class NSError(name: String) extends XmlError

Represents a namespace constraint as defined in the XML namespaces recommendation.

Represents a namespace constraint as defined in the XML namespaces recommendation.

Attributes

Source
errors.scala
Supertypes
class XmlError
class Object
trait Matchable
class Any
Known subtypes
object NSCAttributesUnique.type
object NSCPrefixDeclared.type
case class QName(prefix: Option[String], local: String)

Attributes

Companion
object
Source
QName.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object QName

Attributes

Companion
class
Source
QName.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
QName.type
case object WFCElementTypeMatch extends WFError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class WFError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
case object WFCEntityDeclared extends WFError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class WFError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
case object WFCNoRecursion extends WFError

Attributes

Source
errors.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class WFError
class XmlError
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class WFError(name: String) extends XmlError

Represents a Well-formedness constraint as defined in the XML specification.

Represents a Well-formedness constraint as defined in the XML specification.

Attributes

Source
errors.scala
Supertypes
class XmlError
class Object
trait Matchable
class Any
Known subtypes
object WFCElementTypeMatch.type
object WFCEntityDeclared.type
object WFCNoRecursion.type
abstract class XmlError(val name: String)

All errors encountered in processing an Xml documents have a kind.

All errors encountered in processing an Xml documents have a kind. These errors are unique code defined in the various normative documents and recommendations.

Attributes

Source
errors.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class NSError
object NSCAttributesUnique.type
object NSCPrefixDeclared.type
class WFError
object WFCElementTypeMatch.type
object WFCEntityDeclared.type
object WFCNoRecursion.type
class XmlSyntax
Show all
sealed trait XmlEvent

Attributes

Companion
object
Source
XmlEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Comment
object EndDocument.type
class EndTag
object StartDocument.type
class StartTag
class XmlDecl
class XmlDoctype
class XmlPI
trait XmlTexty
class XmlCharRef
class XmlEntityRef
class XmlString
Show all
object XmlEvent

Attributes

Companion
trait
Source
XmlEvent.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
XmlEvent.type
case class XmlException(error: XmlError, msg: String) extends Exception

Attributes

Source
XmlException.scala
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final implicit class XmlInterpolators(val sc: StringContext) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
case class XmlSyntax(id: String) extends XmlError

Represents a syntax error according to an XML production rule.

Represents a syntax error according to an XML production rule.

Attributes

Source
errors.scala
Supertypes
trait Serializable
trait Product
trait Equals
class XmlError
class Object
trait Matchable
class Any
Show all
object collector

XML event stream collectors.

XML event stream collectors.

Attributes

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

Value members

Concrete methods

def events[F[_], T](includeComments: Boolean)(implicit F: RaiseThrowable[F], T: CharLikeChunks[F, T]): (F, T) => XmlEvent

Transforms a stream of characters into a stream of XML events.

Transforms a stream of characters into a stream of XML events. Emitted tokens are guaranteed to be valid up to that point. If the streams ends without failure, the sequence of tokens is ensured to represent a (potentially empty) sequence of valid XML documents.

if includeComments is true, then comment events will be emitted together with the comment content.

Attributes

Source
package.scala
def isNCNameChar(c: Char): Boolean

Attributes

Source
package.scala
def isNCNameStart(c: Char): Boolean

Attributes

Source
package.scala
def isXmlWhitespace(c: Char): Boolean

Attributes

Source
package.scala
def namespaceResolver[F[_]](implicit F: MonadError[F, Throwable]): (F, XmlEvent) => XmlEvent

Resolves all prefixes in QNames.

Resolves all prefixes in QNames. Assumes that entity and character references have been resolved already. Make stream go through referenceResolver first if you need it (not needed if you xml doesn't contain any such reference).

Attributes

Source
package.scala
def normalize[F[_]]: (F, XmlEvent) => XmlEvent

Performs some event normalizations: - group consecutive non CDATA XmlEvent.XmlStrings This can be useful to merge texts once references have been resolved.

Performs some event normalizations: - group consecutive non CDATA XmlEvent.XmlStrings This can be useful to merge texts once references have been resolved. Attribute values are also normalized, so that they will end up being one single string after normalization if references have been replaced.

Attributes

Source
package.scala
def referenceResolver[F[_]](entities: Map[String, String])(implicit F: MonadError[F, Throwable]): (F, XmlEvent) => XmlEvent

Resolves the character and entity references in the XML stream.

Resolves the character and entity references in the XML stream. Entities are already defined and validated (especially no recursion), hence the entities map contains the resolved text to replace the entity by.

Attributes

Source
package.scala
def render[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. Preserves chunking, each String in the output will correspond to one event in the input.

Attributes

Source
package.scala

Deprecated methods

def events[F[_], T](implicit F: RaiseThrowable[F], T: CharLikeChunks[F, T]): (F, T) => XmlEvent

Transforms a stream of characters into a stream of XML events.

Transforms a stream of characters into a stream of XML events. Emitted tokens are guaranteed to be valid up to that point. If the streams ends without failure, the sequence of tokens is ensured to represent a (potentially empty) sequence of valid XML documents.

Attributes

Deprecated
[Since version fs2-data 1.4.0] Use `fs2.data.xml.events()` instead.
Source
package.scala

Concrete fields

Attributes

Source
package.scala

Attributes

Source
package.scala
val xmlEntities: Map[String, String]

The predefined XML character entities

The predefined XML character entities

Attributes

Source
package.scala

Implicits

Implicits

final implicit def XmlInterpolators(sc: StringContext): XmlInterpolators

Attributes

Source
package.scala