Banner showing base of Eiffel tower

Github

Download version 1.4.8: Windows or Linux

Text Library: Textual Data Formats

This library has 51 classes.

ECF: text-formats.ecf

Classes for handling various human-readable text formats. Supported formats are: XML, XHTML, HTML, JSON, CSV. (Note: Eiffel-Loop has other libraries for parsing XML)

Directory: library/text/formats

. /csv

. /doc-type

. /json

. /markup

. /markup/html

. /markup/xhtml

. /markup/xml

. /markup/xml/escape

. /markup/xml/model-1

. /markup/xml/model-2

. /markup/xml/shared

csv

CSV_CHAIN_IMPORT_EXPORT

Import/Export routines for ITERABLE [EL_REFLECTIVELY_SETTABLE]

CSV_IMPORTABLE_ARRAYED_LIST

Arrayed list of reflectively settable objects that can be imported from from a Comma Separated Value (CSV) file. The first line must contain field names that match the settable fields of type G.

Further Information

Click on class link to see tests and client examples.

CSV_LINE_PARSER

CSV parser for lines encoded as Latin-1

Further Information

Click on class link to see tests and client examples.

CSV_UTF_8_LINE_PARSER

CSV parser for lines encoded as UTF-8

doc-type

EL_DOC_TYPE

Document MIME type and encoding

EL_HTML_DOC_TYPE

Parses HTML document for MIME type and encoding

EL_SHARED_DOCUMENT_TYPES

Shared document types

json

JSON_CONSTANTS

JSON constants

JSON_FIELD_NAME_INTERVALS

List of JSON field name substring interval

Further Information

Click on class link to see notes and client examples.

JSON_INTERVALS_OBJECT

List of JSON parsed string value substring intervals indexed by cached field: EL_ENUMERATION [NATURAL_16]

Further Information

Click on class link to see client examples.

JSON_NAME_VALUE_LIST

Parses a non-recursive JSON list into name value pairs assuming each field ends with a new line character. Iterate using from start until after loop. Decoded name-value pairs accessible as: item, name_item or value_item.

Further Information

Click on class link to see notes and client examples.

JSON_SETTABLE_FROM_STRING

Used in conjunction with EL_REFLECTIVELY_SETTABLE to reflectively set fields from corresponding JSON name-value pairs.

Further Information

Click on class link to see tests, descendants and client examples.

JSON_UNESCAPER

JSON unescaper

JSON_ZNAME_VALUE_LIST

Iterable JSON_NAME_VALUE_LIST with name items of type ZSTRING

Further Information

Click on class link to see client examples.

JSON_ZNAME_VALUE_LIST_ITERATION_CURSOR

JSON name-value pair iteratation cursor

markup

EL_MARKUP_ENCODING

Parses encoding attribute in quotes for markup document.

<?xml version = "1.0" encoding = "ISO-8859-1"?>

OR

pyxis-doc:
   version = 1.0; encoding = "ISO-8859-1"

EL_MARKUP_ROUTINES

Markup routines

EL_MARKUP_TEMPLATES

Markup templates

markup/html

EL_HTML_CONSTANTS

Html constants

EL_HTML_META_VALUES

HTML meta values

Further Information

Click on class link to see client examples.

EL_HTML_META_VALUE_READER

Reads meta data fields from HTML document and set all fields in meta_value: M that have a corresponding field name. Assumes /html/meta/name/text() uses hyphenated names.

feature -- Access

   meta_value: M

Further Information

Click on class link to see client examples.

markup/xhtml

EL_HTML_ROUTINES

Html routines

EL_HYPERLINK

Hyper-link

EL_MODULE_HTML

Shared access to routines of class EL_HTML_ROUTINES

Further Information

Click on class link to see client examples.

EL_XHTML_STRING_LIST

XHTML string list

Further Information

Click on class link to see client examples.

EL_XHTML_UTF_8_SOURCE

XHTML UTF-8 encoded source

Further Information

Click on class link to see client examples.

markup/xml

EL_DEFAULT_SERIALIZEABLE_XML

Default serializeable XML

EL_MODULE_XML

Shared access to routines of class XML_ROUTINES

Further Information

Click on class link to see client examples.

EL_SERIALIZEABLE_AS_XML

Serializeable as xml

Further Information

Click on class link to see notes.

XML_ESCAPE_ROUTINES

Xml escape routines

XML_NAME_SPACE_TABLE

XML name space table

XML_ROUTINES

expanded form or XML_ROUTINES_IMP

Further Information

Click on class link to see client examples.

XML_ROUTINES_IMP

XML routines

XML_TAG

XML tag

markup/xml/escape

XML_ESCAPER

XML string escaper

Further Information

Click on class link to see client examples.

XML_ESCAPER_IMP

XML string escaper

XML_STRING_32_ESCAPER_IMP

STRING_32 implementation of XML_ESCAPER_IMP [STRING_GENERAL]

XML_STRING_8_ESCAPER_IMP

STRING_8 implementation of XML_ESCAPER_IMP [STRING_GENERAL]

XML_ZSTRING_ESCAPER_IMP

ZSTRING implementation of XML_ESCAPER_IMP [STRING_GENERAL]

markup/xml/model-1

XML_PARENT_TAG_LIST

XML tag that has child tags

Further Information

Click on class link to see client examples.

XML_TAG_LIST

Xml tag list

Further Information

Click on class link to see client examples.

XML_VALUE_TAG_PAIR

XML tag containing a single text node

markup/xml/model-2

XML_CONTENT_ELEMENT

Element containing either an element list or some text

XML_ELEMENT

Xml element

XML_ELEMENT_ATTRIBUTE

Xml element attribute

XML_EMPTY_ELEMENT

XML empty element

Further Information

Click on class link to see client examples.

XML_LIST_ELEMENT

XML element with list of nested elements

XML_TEXT_ELEMENT

A text XML element as for example:

<p>Some text</p>

Further Information

Click on class link to see client examples.

XML_TEXT_NODE

Xml text node

markup/xml/shared

XML_STRING_8_CONSTANTS

XML STRING_8 constants

XML_ZSTRING_CONSTANTS

XML ZSTRING constants

Further Information

Click on class link to see client examples.