Class LibXML::XML::Parser::Context
In: ext/libxml/ruby_xml_parser.c
Parent: Object

call-seq:

   context.well_formed? -> (true|false)

Determine whether this context contains well-formed XML.

Methods

Public Instance methods

Obtain the data directory associated with this context.

[Source]

/*
 * call-seq:
 *    context.data_directory -> "dir"
 * 
 * Obtain the data directory associated with this context.
 */
VALUE
ruby_xml_parser_context_data_directory_get(VALUE self) {

Obtain the depth of this context.

[Source]

/*
 * call-seq:
 *    context.depth -> num
 * 
 * Obtain the depth of this context.
 */
VALUE
ruby_xml_parser_context_depth_get(VALUE self) {

Determine whether SAX-based processing is disabled in this context.

[Source]

/*
 * call-seq:
 *    context.disable_sax? -> (true|false)
 * 
 * Determine whether SAX-based processing is disabled
 * in this context.
 */
VALUE
ruby_xml_parser_context_disable_sax_q(VALUE self) {

Determine whether this is a docbook context.

[Source]

/*
 * call-seq:
 *    context.docbook? -> (true|false)
 * 
 * Determine whether this is a docbook context.
 */
VALUE
ruby_xml_parser_context_docbook_q(VALUE self) {

Obtain the character encoding identifier used in this context.

[Source]

/*
 * call-seq:
 *    context.encoding -> "encoding"
 * 
 * Obtain the character encoding identifier used in
 * this context.
 */
VALUE
ruby_xml_parser_context_encoding_get(VALUE self) {

Obtain the last-error number in this context.

[Source]

/*
 * call-seq:
 *    context.errno -> num
 * 
 * Obtain the last-error number in this context.
 */
VALUE
ruby_xml_parser_context_errno_get(VALUE self) {

Determine whether this is an html context.

[Source]

/*
 * call-seq:
 *    context.html? -> (true|false)
 * 
 * Determine whether this is an html context.
 */
VALUE
ruby_xml_parser_context_html_q(VALUE self) {

Obtain the limit on the number of IO streams opened in this context.

[Source]

/*
 * call-seq:
 *    context.max_num_streams -> num
 * 
 * Obtain the limit on the number of IO streams opened in
 * this context.
 */
VALUE
ruby_xml_parser_context_io_max_num_streams_get(VALUE self) {

Obtain the actual number of IO streams in this context.

[Source]

/*
 * call-seq:
 *    context.num_streams -> "dir"
 * 
 * Obtain the actual number of IO streams in this
 * context.
 */
VALUE
ruby_xml_parser_context_io_num_streams_get(VALUE self) {

Determine whether parsers in this context retain whitespace.

[Source]

/*
 * call-seq:
 *    context.keep_blanks? -> (true|false)
 * 
 * Determine whether parsers in this context retain 
 * whitespace.
 */
VALUE
ruby_xml_parser_context_keep_blanks_q(VALUE self) {

Obtain the name depth for this context.

[Source]

/*
 * call-seq:
 *    context.name_depth -> num
 * 
 * Obtain the name depth for this context.
 */
VALUE
ruby_xml_parser_context_name_depth_get(VALUE self) {

Obtain the maximum name depth for this context.

[Source]

/*
 * call-seq:
 *    context.name_depth_max -> num
 * 
 * Obtain the maximum name depth for this context.
 */
VALUE
ruby_xml_parser_context_name_depth_max_get(VALUE self) {

Obtain the name node for this context.

[Source]

/*
 * call-seq:
 *    context.name_node -> "name"
 * 
 * Obtain the name node for this context.
 */
VALUE
ruby_xml_parser_context_name_node_get(VALUE self) {

Obtain the name table for this context.

[Source]

/*
 * call-seq:
 *    context.name_tab -> ["name", ..., "name"]
 * 
 * Obtain the name table for this context.
 */
VALUE
ruby_xml_parser_context_name_tab_get(VALUE self) {

Obtain the root node of this context.

[Source]

/*
 * call-seq:
 *    context.node -> node
 * 
 * Obtain the root node of this context.
 */
VALUE
ruby_xml_parser_context_node_get(VALUE self) {

Obtain the node depth for this context.

[Source]

/*
 * call-seq:
 *    context.node_depth -> num
 * 
 * Obtain the node depth for this context.
 */
VALUE
ruby_xml_parser_context_node_depth_get(VALUE self) {

Obtain the maximum node depth for this context.

[Source]

/*
 * call-seq:
 *    context.node_depth_max -> num
 * 
 * Obtain the maximum node depth for this context.
 */
VALUE
ruby_xml_parser_context_node_depth_max_get(VALUE self) {

Obtain the number of characters in this context.

[Source]

/*
 * call-seq:
 *    context.num_chars -> num
 * 
 * Obtain the number of characters in this context.
 */
VALUE
ruby_xml_parser_context_num_chars_get(VALUE self) {

Control whether external entity replacement is enabled in this context.

[Source]

/*
 * call-seq:
 *    context.replace_entities = true|false
 * 
 * Control whether external entity replacement is enabled in this
 * context.
 */
VALUE
ruby_xml_parser_context_replace_entities_set(VALUE self, VALUE bool) {

Determine whether external entity replacement is enabled in this context.

[Source]

/*
 * call-seq:
 *    context.replace_entities? -> (true|false)
 * 
 * Determine whether external entity replacement is enabled in this 
 * context.
 */
VALUE
ruby_xml_parser_context_replace_entities_q(VALUE self) {

Obtain the space depth for this context.

[Source]

/*
 * call-seq:
 *    context.space_depth -> num
 * 
 * Obtain the space depth for this context.
 */
VALUE
ruby_xml_parser_context_space_depth_get(VALUE self) {

Obtain the maximum space depth for this context.

[Source]

/*
 * call-seq:
 *    context.space_depth -> num
 * 
 * Obtain the maximum space depth for this context.
 */
VALUE
ruby_xml_parser_context_space_depth_max_get(VALUE self) {

Determine whether this is a standalone context.

[Source]

/*
 * call-seq:
 *    context.standalone? -> (true|false)
 * 
 * Determine whether this is a standalone context.
 */
VALUE
ruby_xml_parser_context_standalone_q(VALUE self) {

Determine whether this context maintains statistics.

[Source]

/*
 * call-seq:
 *    context.stats? -> (true|false)
 * 
 * Determine whether this context maintains statistics.
 */
VALUE
ruby_xml_parser_context_stats_q(VALUE self) {

Determine whether this context is a subset of an external context.

[Source]

/*
 * call-seq:
 *    context.subset_external? -> (true|false)
 * 
 * Determine whether this context is a subset of an
 * external context.
 */
VALUE
ruby_xml_parser_context_subset_external_q(VALUE self) {

Obtain this context‘s external subset system identifier. (valid only if either of subset_external? or subset_internal? is true).

[Source]

/*
 * call-seq:
 *    context.subset_external_system_id -> "system_id"
 * 
 * Obtain this context's external subset system identifier. 
 * (valid only if either of subset_external? or subset_internal?
 * is true).
 */
VALUE
ruby_xml_parser_context_subset_external_system_id_get(VALUE self) {

Obtain this context‘s subset name (valid only if either of subset_external? or subset_internal? is true).

[Source]

/*
 * call-seq:
 *    context.subset_name -> "name"
 * 
 * Obtain this context's subset name (valid only if
 * either of subset_external? or subset_internal?
 * is true).
 */
VALUE
ruby_xml_parser_context_subset_name_get(VALUE self) {

Determine whether this context is a subset of an internal context.

[Source]

/*
 * call-seq:
 *    context.subset_internal? -> (true|false)
 * 
 * Determine whether this context is a subset of an
 * internal context.
 */
VALUE
ruby_xml_parser_context_subset_internal_q(VALUE self) {

Obtain this context‘s subset name (valid only if either of subset_external? or subset_internal? is true).

[Source]

/*
 * call-seq:
 *    context.subset_name -> "name"
 * 
 * Obtain this context's subset name (valid only if
 * either of subset_external? or subset_internal?
 * is true).
 */
VALUE
ruby_xml_parser_context_subset_name_get(VALUE self) {

Determine whether this context is valid.

[Source]

/*
 * call-seq:
 *    context.valid? -> (true|false)
 * 
 * Determine whether this context is valid.
 */
VALUE
ruby_xml_parser_context_valid_q(VALUE self) {

Determine whether validation is enabled in this context.

[Source]

/*
 * call-seq:
 *    context.validate? -> (true|false)
 * 
 * Determine whether validation is enabled in this context.
 */
VALUE
ruby_xml_parser_context_validate_q(VALUE self) {

Obtain this context‘s version identifier.

[Source]

/*
 * call-seq:
 *    context.version -> "version"
 * 
 * Obtain this context's version identifier.
 */
VALUE
ruby_xml_parser_context_version_get(VALUE self) {

Determine whether this context contains well-formed XML.

[Source]

/*
 * call-seq:
 *    context.well_formed? -> (true|false)
 * 
 * Determine whether this context contains well-formed XML.
 */
VALUE
ruby_xml_parser_context_well_formed_q(VALUE self) {

[Validate]