Roxen.git / server / etc / modules / RXML.pmod / PEnt.pike

version» Context lines:

Roxen.git/server/etc/modules/RXML.pmod/PEnt.pike:1:   //! Variant of PXml that parses only entities.   //!   //! This parser is the default for arguments.   //!   //! Created 2000-01-28 by Martin Stjernholm.   //! - //! $Id: PEnt.pike,v 1.19 2001/03/23 22:49:42 mast Exp $ + //! $Id: PEnt.pike,v 1.20 2001/04/18 04:51:39 mast Exp $      //#pragma strict_types // Disabled for now since it doesn't work well enough.      #include <config.h>      inherit RXML.PXml;      // Block these to avoid confusion.   constant add_tag = 0;   constant add_tags = 0;
Roxen.git/server/etc/modules/RXML.pmod/PEnt.pike:71:    RXML.Context ctx, RXML.Type type, RXML.TagSet tag_set, void|int cloned)   {   #ifdef OLD_RXML_COMPAT    not_compat = !(ctx && ctx->id && ctx->id->conf->old_rxml_compat);   #endif       initialize (ctx, type, tag_set);       if (cloned) return;    -  if (!type->free_text) { -  mixed_mode (1); -  _set_data_callback (.utils.return_empty_array); -  } +  if (!type->free_text && !type->handle_literals) +  _set_data_callback (.utils.free_text_error);    ignore_tags (1);    lazy_entity_end (1);    match_tag (0);       init_entities();   }      // These have no effect since we don't parse tags.   constant add_runtime_tag = 0;   constant remove_runtime_tag = 0;