• Home
  • Raw
  • Download

Lines Matching defs:_xmlParserCtxt

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