Lines Matching defs:_xmlParserCtxt
186 struct _xmlParserCtxt { struct
187 struct _xmlSAXHandler *sax; /* The SAX handler */
188 void *userData; /* For SAX interface only, used by DOM build */
189 xmlDocPtr myDoc; /* the document being built */
190 int wellFormed; /* is the document well formed */
191 int replaceEntities; /* shall we replace entities ? */
192 const xmlChar *version; /* the XML version string */
193 const xmlChar *encoding; /* the declared encoding, if any */
194 int standalone; /* standalone document */
195 int html; /* an HTML(1)/Docbook(2) document
201 xmlParserInputPtr input; /* Current input stream */
202 int inputNr; /* Number of current input streams */
203 int inputMax; /* Max number of input streams */
204 xmlParserInputPtr *inputTab; /* stack of inputs */
207 xmlNodePtr node; /* Current parsed Node */
208 int nodeNr; /* Depth of the parsing stack */
209 int nodeMax; /* Max depth of the parsing stack */
210 xmlNodePtr *nodeTab; /* array of nodes */
212 int record_info; /* Whether node info should be kept */
213 xmlParserNodeInfoSeq node_seq; /* info about each node parsed */
215 int errNo; /* error code */
217 int hasExternalSubset; /* reference and external subset */
218 int hasPErefs; /* the internal subset has PE refs */
219 int external; /* are we parsing an external entity */
221 int valid; /* is the document valid */
222 int validate; /* shall we try to validate ? */
223 xmlValidCtxt vctxt; /* The validity context */
225 xmlParserInputState instate; /* current type of input */
226 int token; /* next char look-ahead */
228 char *directory; /* the data directory */
231 const xmlChar *name; /* Current parsed Node */
232 int nameNr; /* Depth of the parsing stack */
233 int nameMax; /* Max depth of the parsing stack */
234 const xmlChar * *nameTab; /* array of nodes */
236 long nbChars; /* unused */
237 long checkIndex; /* used by progressive parsing lookup */
238 int keepBlanks; /* ugly but ... */
239 int disableSAX; /* SAX callbacks are disabled */
240 int inSubset; /* Parsing is in int 1/ext 2 subset */
241 const xmlChar * intSubName; /* name of subset */
242 xmlChar * extSubURI; /* URI of external subset */
243 xmlChar * extSubSystem; /* SYSTEM ID of external subset */
246 int * space; /* Should the parser preserve spaces */
247 int spaceNr; /* Depth of the parsing stack */
248 int spaceMax; /* Max depth of the parsing stack */
249 int * spaceTab; /* array of space infos */
251 int depth; /* to prevent entity substitution loops */
252 xmlParserInputPtr entity; /* used to check entities boundaries */
253 int charset; /* encoding of the in-memory content
255 int nodelen; /* Those two fields are there to */
256 int nodemem; /* Speed up large node parsing */
257 int pedantic; /* signal pedantic warnings */
258 void *_private; /* For user data, libxml won't touch it */
260 int loadsubset; /* should the external subset be loaded */
261 int linenumbers; /* set line number in element content */
262 void *catalogs; /* document's own catalog */
263 int recovery; /* run in recovery mode */
264 int progressive; /* is this a progressive parsing */
265 xmlDictPtr dict; /* dictionary for the parser */
266 const xmlChar * *atts; /* array for the attributes callbacks */
267 int maxatts; /* the size of the array */
268 int docdict; /* use strings from dict to build tree */
273 const xmlChar *str_xml;
274 const xmlChar *str_xmlns;
275 const xmlChar *str_xml_ns;
280 int sax2; /* operating in the new SAX mode */
281 int nsNr; /* the number of inherited namespaces */
282 int nsMax; /* the size of the arrays */
283 const xmlChar * *nsTab; /* the array of prefix/namespace name */
284 int *attallocs; /* which attribute were allocated */
285 xmlStartTag *pushTab; /* array of data for push */
286 xmlHashTablePtr attsDefault; /* defaulted attributes if any */
287 xmlHashTablePtr attsSpecial; /* non-CDATA attributes if any */
288 int nsWellFormed; /* is the document XML Namespace okay */
289 int options; /* Extra options */
294 int dictNames; /* Use dictionary names for the tree */
295 int freeElemsNr; /* number of freed element nodes */
296 xmlNodePtr freeElems; /* List of freed element nodes */
297 int freeAttrsNr; /* number of freed attributes nodes */
298 xmlAttrPtr freeAttrs; /* List of freed attributes nodes */
303 xmlError lastError;
304 xmlParserMode parseMode; /* the parser mode */
305 unsigned long nbentities; /* number of entities references */
306 unsigned long sizeentities; /* size of parsed entities */
309 xmlParserNodeInfo *nodeInfo; /* Current NodeInfo */
310 int nodeInfoNr; /* Depth of the parsing stack */
311 int nodeInfoMax; /* Max depth of the parsing stack */
312 xmlParserNodeInfo *nodeInfoTab; /* array of nodeInfos */
314 int input_id; /* we need to label inputs */
315 unsigned long sizeentcopy; /* volume of entity copy */