Lines Matching refs:doc_props

156 	dom_doc_propsptr doc_props;  in dom_get_doc_props()  local
158 if (document && document->doc_props) { in dom_get_doc_props()
159 return document->doc_props; in dom_get_doc_props()
161 doc_props = emalloc(sizeof(libxml_doc_props)); in dom_get_doc_props()
162 doc_props->formatoutput = 0; in dom_get_doc_props()
163 doc_props->validateonparse = 0; in dom_get_doc_props()
164 doc_props->resolveexternals = 0; in dom_get_doc_props()
165 doc_props->preservewhitespace = 1; in dom_get_doc_props()
166 doc_props->substituteentities = 0; in dom_get_doc_props()
167 doc_props->stricterror = 1; in dom_get_doc_props()
168 doc_props->recover = 0; in dom_get_doc_props()
169 doc_props->classmap = NULL; in dom_get_doc_props()
171 document->doc_props = doc_props; in dom_get_doc_props()
173 return doc_props; in dom_get_doc_props()
204 dom_doc_propsptr doc_props; in dom_set_doc_classmap() local
207 doc_props = dom_get_doc_props(document); in dom_set_doc_classmap()
208 if (doc_props->classmap == NULL) { in dom_set_doc_classmap()
212 ALLOC_HASHTABLE(doc_props->classmap); in dom_set_doc_classmap()
213 zend_hash_init(doc_props->classmap, 0, NULL, NULL, 0); in dom_set_doc_classmap()
216 …return zend_hash_update(doc_props->classmap, basece->name, basece->name_length + 1, &ce, sizeof(ze… in dom_set_doc_classmap()
218 zend_hash_del(doc_props->classmap, basece->name, basece->name_length + 1); in dom_set_doc_classmap()
226 dom_doc_propsptr doc_props; in dom_get_doc_classmap() local
230 doc_props = dom_get_doc_props(document); in dom_get_doc_classmap()
231 if (doc_props->classmap) { in dom_get_doc_classmap()
232 …if (zend_hash_find(doc_props->classmap, basece->name, basece->name_length + 1, (void**) &ce) == S… in dom_get_doc_classmap()
245 dom_doc_propsptr doc_props; in dom_get_strict_error() local
247 doc_props = dom_get_doc_props(document); in dom_get_strict_error()
248 stricterror = doc_props->stricterror; in dom_get_strict_error()
250 efree(doc_props); in dom_get_strict_error()