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.15 2000/07/05 23:08:59 mast Exp $ + //! $Id: PEnt.pike,v 1.16 2000/08/15 01:20:05 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;   constant add_container = 0;   constant add_containers = 0;      static void init_entities()   { -  if (type->quoting_scheme != "xml") { +  if (type->encoding_type != "xml") {    // Don't decode entities if we're outputting xml-like stuff.   #ifdef OLD_RXML_COMPAT    clear_entities();    if (not_compat) {   #endif    add_entities (tag_set->get_string_entities());   #ifdef OLD_RXML_COMPAT    }   #endif    }