loads and parse the dtd file; a validating context is created */
| 1537 | |
| 1538 | /* loads and parse the dtd file; a validating context is created */ |
| 1539 | int init_CPL_parser( char* DTD_filename ) |
| 1540 | { |
| 1541 | dtd = xmlParseDTD( NULL, (unsigned char*)DTD_filename); |
| 1542 | if (!dtd) { |
| 1543 | LM_ERR("DTD not parsed successfully\n"); |
| 1544 | return -1; |
| 1545 | } |
| 1546 | cvp.userData = (void *) stderr; |
| 1547 | cvp.error = (xmlValidityErrorFunc) /*err_print*/ fprintf; |
| 1548 | cvp.warning = (xmlValidityWarningFunc) /*err_print*/ fprintf; |
| 1549 | |
| 1550 | return 1; |
| 1551 | } |
| 1552 |