> Expat4D Home > Documentation > Command Reference

xml_SetNotationDeclHandler ( parserID; handler )


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

Sets the handler for notation declarations. The handler method is passed the parserID, notation name, base, systemID and publicID.

`Method: handler_NotationDecl (parser; notationName; base; systemID; publicID)

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

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

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

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

C_LONGINT($parser)
$parser:=xml_ParserCreate("")
xml_SetNotationDeclHandler($parser;"handler_NotationDecl")

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