package yocaml_syndication

  1. Overview
  2. Docs
Yocaml plugin for dealing with RSS and Atom feed

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yocaml-2.4.0.tbz
sha256=5d230b9dd9e3d434ebb767ecc20732ed8fc03a8c100813ff29c7933a7ee4050d
sha512=b4f4b76bef7e4d65d2f7434c122592a02c5d80114bde58f2167509fc92e2666a6b798ca964b9ed07e526ef2b59c5db9c4a435c6c64721a745ea0da37b3eed97a

doc/yocaml_syndication/Yocaml_syndication/Xml/Attr/index.html

Module Xml.AttrSource

An attribute is an association between a key and a value (quoted). Please note that this library does not guarantee that the key or value is correctly formatted, and it is the user's responsibility to produce only correct values.

Types

Sourcetype t

Describes a key * value pair.

Sourcetype set

Describes a list of attributes. The set of attributes must be unique, and the type is backed up by a Map to ensure that an attribute (described by its key) is present only once.

API

Sourceval make : ('a -> string) -> ?ns:string -> key:string -> 'a -> t

make ?ns ~key f value Builds an arbitrary attribute value. The ns optional parameter allows to scope an attribute to a given namespace.

Sourceval string : ?ns:string -> key:string -> string -> t

string ?ns ~key value Builds a string attribute.

Sourceval int : ?ns:string -> key:string -> int -> t

int ?ns ~key value Builds an integer attribute.

Sourceval float : ?ns:string -> key:string -> float -> t

float ?ns ~key value Builds a float attribute.

Sourceval bool : ?ns:string -> key:string -> bool -> t

bool ?ns ~key value Builds a boolean attribute.

Sourceval char : ?ns:string -> key:string -> char -> t

char ?ns ~key value Builds a char attribute.

Sourceval escaped : ?ns:string -> key:string -> string -> t

escaped ?ns ~key value Build an attribute with special character replaced.

OCaml

Innovation. Community. Security.

On This Page
  1. Types
  2. API