> Expat4D Home > Documentation > Command Reference

xml_SetUnparsedEntityDeclHandler ( parserID; handler )


  • --> parserID : longint
  • --> handler : string[31]

Sets the handler method for Unparsed Entity Declarations. The handler method is passed the parserID, entity name, base, systemID, publicID and notation name.

`Method: xml_SetUnparsedEntityDeclHandler ( parser; entityName; base; systemID; publicID; notationName )

C_LONGINT($1;$parser)
C_TEXT($2;$entityName)
C_TEXT($3;$base)
C_TEXT($4;$systemID)
C_TEXT($5;$publicID)
C_TEXT($6;$notationName)

$parser:=$1
$entityName:=$2
$base:=$3
$systemID:=$4
$publicID:=$5
$notationName:=$6

`do something with data if necessary
`...
   
`Method: parseXML (text)

C_TEXT($1;$xmlText)
$xmlText:=$1

C_LONGINT($parser)
$parser:=xml_ParserCreate("")
XML_SetUnparsedEntityDeclHandler($parser;"handler_UnparsedEntityDecl")

C_LONGINT($errorCode)
$errorCode:=xml_Parse($parser;$xmlText;1)
xml_ParserFree($parser)
   
  Expat4D Logo

Developer Documentation

Creating Parsers, Destroying Parsers, Parsing Text

Configuring Handler Methods

Position and Error Reporting Functions

Miscellaneous Functions

Output Buffer Functions

Error Codes


> Expat4D Home > Documentation > Command Reference

Last Modified: 27th April 2001 at 9:00 PM