* xmlXIncludeNewContext: * @doc: an XML Document * * Creates a new XInclude context * * Returns the new set */
| 241 | * Returns the new set |
| 242 | */ |
| 243 | xmlXIncludeCtxtPtr |
| 244 | xmlXIncludeNewContext(xmlDocPtr doc) { |
| 245 | xmlXIncludeCtxtPtr ret; |
| 246 | |
| 247 | if (doc == NULL) |
| 248 | return(NULL); |
| 249 | ret = (xmlXIncludeCtxtPtr) xmlMalloc(sizeof(xmlXIncludeCtxt)); |
| 250 | if (ret == NULL) |
| 251 | return(NULL); |
| 252 | memset(ret, 0, sizeof(xmlXIncludeCtxt)); |
| 253 | ret->doc = doc; |
| 254 | ret->incNr = 0; |
| 255 | ret->incMax = 0; |
| 256 | ret->incTab = NULL; |
| 257 | ret->nbErrors = 0; |
| 258 | return(ret); |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * xmlXIncludeFreeContext: |
no outgoing calls