Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > unq_parse_with_dtd

API Function: unq_parse_with_dtd

Summary:
parse UNQ data to a structured format

Defined In LPC Object:
/usr/common/obj/basic_unq_parser.c

Prototype:
mixed *unq_parse_with_dtd(string block, object dtd, varargs string filename)

Can Be Called By:
Anybody

Description:

The block is parsed into UNQ and then further parsed with the supplied UNQ DTD. The filename, if supplied, will be used in error reporting. See parse_to_dtd for specifics of the DTD-parsed format.

Return Value:

The DTD-parsed data described above, or nil if parsing fails.

Errors:
Errors will be caught and logged if parsing fails. More errors will be caused in that case to be caught by the calling function.

See Also:
basic_unq_parse , parse_to_dtd , get_parse_error_stack