Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

xmlcpg.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "constraints.h"
#include "fileoutputstream.h"
#include "referenceTables.h"
#include "xmlcpg.h"

Compounds

struct  xmlcpgMAPENTRY

Functions

xmlcpgMapEntryxmlcpgnewMapEntry (xmlcpgObject *key, xmlcpgObject *value)
char * xmlcpgisQuoted (const char *str)
xmlcpgPairxmlcpgnewPair (xmlcpgObject *hea, xmlcpgObject *tai)
 Generates a new Pair.

xmlcpgObjectxmlcpggetPairHead (xmlcpgPair *obj)
 Gets the head part of the object pair.

void xmlcpgsetPairHead (xmlcpgPair *op, xmlcpgObject *obj)
 Sets the head part of the object pair.

xmlcpgObjectxmlcpggetPairTail (xmlcpgPair *obj)
 Gets the tail part of the object pair.

void xmlcpgsetPairTail (xmlcpgPair *op, xmlcpgObject *obj)
 Sets the tail part of the object pair.

xmlcpgIteratorxmlcpgnewListIterator (xmlcpgPair *p)
xmlcpgIteratorxmlcpgnewMapIterator (xmlcpgPair *p)
int xmlcpghasNext (xmlcpgIterator *iterator)
 Test whether the iterator will return an element at the next "next" call.

xmlcpgObjectxmlcpgnext (xmlcpgIterator *iterator)
 Gets the next element in the object list and advances the iterator.

int xmlcpghasnextElementType (xmlcpgIterator *iterator, char *name)
 Test wether the list contain other element of the type "name".

xmlcpgObjectxmlcpgnextElementType (xmlcpgIterator *iterator, char *name)
 Gets the next element in the object list of the type "name" and advances the iterator .

void xmlcpgremove (xmlcpgIterator *iterator)
 Removes from the structure the element last returned from the iterator.

xmlcpgListxmlcpgnewList ()
 Generates a new ObjectList.

void xmlcpgadd (xmlcpgList *list, xmlcpgObject *obj)
 Inserts an object at the ObjectList front.

void xmlcpgaddLast (xmlcpgList *list, xmlcpgObject *obj)
 Inserts an object at the ObjectList end.

xmlcpgObjectxmlcpggetListLast (xmlcpgList *list)
 Gets the last object of the list.

xmlcpgIteratorxmlcpgnewIterator (xmlcpgObject *coll)
 Gets a new iterator for a collection.

xmlcpgDocumentxmlcpgnewDocument (xmlcpgObject *pro, xmlcpgObject *ele, xmlcpgList *mis)
 Generates a new Document.

xmlcpgObjectxmlcpggetDocumentProlog (xmlcpgDocument *doc)
 Gets the prolog structure from a document.

void xmlcpgsetDocumentProlog (xmlcpgDocument *doc, xmlcpgObject *obj)
 Sets the prolog structure in a document.

xmlcpgObjectxmlcpggetDocumentElement (xmlcpgDocument *doc)
 Gets the element structure from the document.

void xmlcpgsetDocumentElement (xmlcpgDocument *doc, xmlcpgObject *ele)
 Sets the element structure in a document.

xmlcpgListxmlcpggetDocumentMisc (xmlcpgDocument *doc)
 Gets the misc structure from the document.

void xmlcpgsetDocumentMisc (xmlcpgDocument *doc, xmlcpgList *list)
 Sets the misc structure in a document.

xmlcpgCharDataxmlcpgnewCharData (xmlcpgString *s)
 Generates a new CharData.

xmlcpgStringxmlcpggetCharDataString (xmlcpgCharData *cd)
 Gets the character string from the chardata.

void xmlcpgsetCharDataString (xmlcpgCharData *cd, xmlcpgString *s)
 Sets the character string in a chardata.

xmlcpgCommentxmlcpgnewComment (xmlcpgString *s)
 Generates a new Comment.

xmlcpgStringxmlcpggetCommentString (xmlcpgComment *obj)
 Gets the character string from the comment.

void xmlcpgsetCommentString (xmlcpgComment *obj, xmlcpgString *s)
 Sets the character string in a comment.

xmlcpgPIxmlcpgnewPI (xmlcpgString *pit, xmlcpgString *pip)
 Generates a new PI.

xmlcpgStringxmlcpggetPITarget (xmlcpgPI *obj)
 Gets the processing instruction target from the pi.

void xmlcpgsetPITarget (xmlcpgPI *obj, xmlcpgString *s)
 Sets the processing instruction target in a pi.

xmlcpgStringxmlcpggetPIParameters (xmlcpgPI *obj)
 Gets the processing instruction parameters from the pi.

void xmlcpgsetPIParameters (xmlcpgPI *obj, xmlcpgString *s)
 Sets the processing instruction parameters in a pi.

xmlcpgCDataxmlcpgnewCData (xmlcpgString *dat)
 Geneates a new CData.

xmlcpgStringxmlcpggetCDataString (xmlcpgCData *obj)
 Gets the cdata string from the cdata.

void xmlcpgsetCDataString (xmlcpgCData *obj, xmlcpgString *s)
 Sets the cdata string in a cdata.

xmlcpgPrologxmlcpgnewProlog (xmlcpgObject *xml, xmlcpgList *m, xmlcpgObject *dtd)
 Generates a new Prolog.

xmlcpgObjectxmlcpggetPrologXmlDecl (xmlcpgProlog *obj)
 Gets the xml declaration from a prolog.

void xmlcpgsetPrologXmlDecl (xmlcpgProlog *obj, xmlcpgObject *val)
 Sets the xml declaration in a prolog.

xmlcpgListxmlcpggetPrologMisc1 (xmlcpgProlog *obj)
 Gets the first misc from a prolog.

void xmlcpgsetPrologMisc1 (xmlcpgProlog *obj, xmlcpgList *val)
 Sets the first misc in a prolog.

xmlcpgObjectxmlcpggetPrologDtdDecl (xmlcpgProlog *obj)
 Gets the dtd declaration from a prolog.

void xmlcpgsetPrologDtdDecl (xmlcpgProlog *obj, xmlcpgObject *val)
 Sets the dtd declaration in a prolog.

xmlcpgListxmlcpggetPrologMisc2 (xmlcpgProlog *obj)
 Gets the second misc from a prolog.

void xmlcpgsetPrologMisc2 (xmlcpgProlog *obj, xmlcpgList *val)
 Sets the second misc in a prolog.

xmlcpgXMLDeclxmlcpgnewXMLDecl (xmlcpgString *v, xmlcpgString *e, int s)
 Generates a new XMLDecl.

xmlcpgXMLDeclxmlcpgbuildXMLDecl ()
 Generates a new XMLDecl with XML version 1.0, no encoding and undefined standalone declaration.

xmlcpgStringxmlcpggetXMLDeclVersion (xmlcpgXMLDecl *obj)
 Gets the version string from the xmldecl.

void xmlcpgsetXMLDeclVersion (xmlcpgXMLDecl *obj, xmlcpgString *v)
 Sets the version string in a xmldecl.

xmlcpgStringxmlcpggetXMLDeclEncoding (xmlcpgXMLDecl *obj)
 Gets the encoding string from the xmldecl.

void xmlcpgsetXMLDeclEncoding (xmlcpgXMLDecl *obj, xmlcpgString *e)
 Sets the encoding string in a xmldecl.

int xmlcpggetXMLDeclStandalone (xmlcpgXMLDecl *obj)
 Gets the standalone value from the xmldecl.

void xmlcpgsetXMLDeclStandalone (xmlcpgXMLDecl *obj, int s)
 Sets the standalone value in a xmldecl.

xmlcpgDocTypeDeclxmlcpgnewDocTypeDecl (xmlcpgString *n, xmlcpgObject *e, xmlcpgList *m)
 Generates a new DocTypeDecl.

xmlcpgStringxmlcpggetDocTypeDeclName (xmlcpgDocTypeDecl *obj)
 Gets the dtd name from the doctypedecl.

void xmlcpgsetDocTypeDeclName (xmlcpgDocTypeDecl *obj, xmlcpgString *s)
 Sets the dtd name in a doctypedecl.

xmlcpgObjectxmlcpggetDocTypeDeclExternalID (xmlcpgDocTypeDecl *obj)
 Gets the dtd external id from the doctypedecl.

void xmlcpgsetDocTypeDeclExternalID (xmlcpgDocTypeDecl *obj, xmlcpgObject *e)
 Sets the dtd external id in a doctypedecl.

xmlcpgListxmlcpggetDocTypeDeclMarkupDecl (xmlcpgDocTypeDecl *obj)
 Gets the markup declarations from a doctypedecl.

void xmlcpgsetDocTypeDeclMarkupDecl (xmlcpgDocTypeDecl *obj, xmlcpgList *val)
 Sets the markup declarations in a doctypedecl.

xmlcpgPEReferencexmlcpgnewPEReference (xmlcpgString *s)
 Generates a new PEReference.

xmlcpgStringxmlcpggetPEReferenceName (xmlcpgPEReference *obj)
 Gets the peref name from the pereference.

void xmlcpgsetPEReferenceName (xmlcpgPEReference *obj, xmlcpgString *s)
 Sets the peref name in a pereference.

xmlcpgElementxmlcpgnewElement (xmlcpgString *n, xmlcpgList *a, xmlcpgObject *c)
 Generates a new Element.

xmlcpgElementxmlcpgnewElementWithName (const char *name)
 Generates a new Element with a specified name.

xmlcpgStringxmlcpggetElementName (xmlcpgElement *obj)
 Gets the element name from the element.

void xmlcpgsetElementName (xmlcpgElement *obj, xmlcpgString *s)
 Sets the element name in a element.

xmlcpgListxmlcpggetElementAttributes (xmlcpgElement *obj)
 Gets the attributes from an element.

void xmlcpgsetElementAttributes (xmlcpgElement *obj, xmlcpgList *val)
 Sets the attributes in an element.

xmlcpgStringxmlcpggetElementAttributeByName (xmlcpgElement *obj, xmlcpgString *s)
 Gets the Element's attribute value.

void xmlcpgaddAttribute (xmlcpgElement *ele, const char *nameAtt, const char *valueAtt, int idType)
 Add attribute to the element.

xmlcpgObjectxmlcpggetElementContent (xmlcpgElement *obj)
 Gets the content from an element.

xmlcpgIteratorxmlcpggetSpecificContent (xmlcpgElement *rnaml, char *content)
 Gets the content from the element.

void xmlcpgsetElementContent (xmlcpgElement *obj, xmlcpgObject *val)
 Sets the content in an element.

void xmlcpgaddContentElement (xmlcpgElement *ele, xmlcpgObject *cont)
 Add an element to the content of the element ele.

void xmlcpgaddContentPCData (xmlcpgElement *ele, const char *cont)
 Add text to the content of the element ele.

xmlcpgAttributexmlcpgnewAttribute (xmlcpgString *n, xmlcpgString *v)
 Generates a new Attribute.

xmlcpgStringxmlcpggetAttributeName (xmlcpgAttribute *obj)
 Gets the name from the attribute.

void xmlcpgsetAttributeName (xmlcpgAttribute *obj, xmlcpgString *s)
 Sets the name in an attribute.

xmlcpgStringxmlcpggetAttributeValue (xmlcpgAttribute *obj)
 Gets the value from the attribute.

void xmlcpgsetAttributeValue (xmlcpgAttribute *obj, xmlcpgString *s)
 Sets the value in an attribute.

xmlcpgContentxmlcpgnewContent (xmlcpgList *l)
 Generates a new Content.

xmlcpgListxmlcpggetContentList (xmlcpgContent *obj)
 Gets the content list from a content.

void xmlcpgsetContentList (xmlcpgContent *obj, xmlcpgList *val)
 Sets the content list in a content.

xmlcpgElementDeclxmlcpgnewElementDecl (xmlcpgString *n, xmlcpgObject *c, int ext)
 Generates a new ElementDecl.

xmlcpgStringxmlcpggetElementDeclName (xmlcpgElementDecl *obj)
 Gets the name from the elementdecl.

void xmlcpgsetElementDeclName (xmlcpgElementDecl *obj, xmlcpgString *s)
 Sets the name in an elementdecl.

xmlcpgObjectxmlcpggetElementDeclContentSpec (xmlcpgElementDecl *obj)
 Gets the content specification from an elementdecl.

void xmlcpgsetElementDeclContentSpec (xmlcpgElementDecl *obj, xmlcpgObject *val)
 Sets the content specification in an elementdecl.

int xmlcpggetElementDeclisExtern (xmlcpgElementDecl *obj)
void xmlcpgsetElementDeclisExtern (xmlcpgElementDecl *obj, int val)
xmlcpgEmptyxmlcpgnewEmpty ()
 Generates a new Empty.

xmlcpgAnyxmlcpgnewAny ()
 Generates a new Any.

xmlcpgChildrenOptxmlcpgnewChildrenOpt (xmlcpgObject *c)
 Generates a new ChildrenOpt.

xmlcpgObjectxmlcpggetChildrenOptChild (xmlcpgChildrenOpt *obj)
 Gets the child from a childrenopt.

void xmlcpgsetChildrenOptChild (xmlcpgChildrenOpt *obj, xmlcpgObject *val)
 Sets the child in a childrenopt.

xmlcpgChildrenStarxmlcpgnewChildrenStar (xmlcpgObject *c)
 Generates a new ChildrenStar.

xmlcpgObjectxmlcpggetChildrenStarChild (xmlcpgChildrenStar *obj)
 Gets the child from a childrenstar.

void xmlcpgsetChildrenStarChild (xmlcpgChildrenStar *obj, xmlcpgObject *val)
 Sets the child in a childrenstar.

xmlcpgChildrenPlusxmlcpgnewChildrenPlus (xmlcpgObject *c)
 Generates a new ChildrenPlus.

xmlcpgObjectxmlcpggetChildrenPlusChild (xmlcpgChildrenPlus *obj)
 Gets the child from a childrenplus.

void xmlcpgsetChildrenPlusChild (xmlcpgChildrenPlus *obj, xmlcpgObject *val)
 Sets the child in a childrenplus.

xmlcpgChildrenAltxmlcpgnewChildrenAlt (xmlcpgList *c)
 Generates a new ChildrenAlt.

xmlcpgListxmlcpggetChildrenAltChildList (xmlcpgChildrenAlt *obj)
 Gets the child list from a childrenalt.

void xmlcpgsetChildrenAltChildList (xmlcpgChildrenAlt *obj, xmlcpgList *val)
 Sets the child list in a childrenalt.

xmlcpgChildrenSeqxmlcpgnewChildrenSeq (xmlcpgList *c)
 Generates a new ChildrenSeq.

xmlcpgListxmlcpggetChildrenSeqChildList (xmlcpgChildrenSeq *obj)
 Gets the child list from a childrenseq.

void xmlcpgsetChildrenSeqChildList (xmlcpgChildrenSeq *obj, xmlcpgList *val)
 Sets the child list in a childrenseq.

xmlcpgPCDataxmlcpgnewPCData ()
 Generates a new PCData.

xmlcpgStringxmlcpgnewString (char *s)
 Generates a new String.

char * xmlcpggetStringStr (xmlcpgString *obj)
 Gets the str from a string.

void xmlcpgsetStringStr (xmlcpgString *obj, char *val)
 Sets the str in a string.

xmlcpgStringxmlcpgconcatString (xmlcpgString *obj, const char *str)
 Concatenates the character array at the end of the string.

xmlcpgStringxmlcpgconcatChar (xmlcpgString *obj, char c)
 Concatenates a character at the end of the string.

xmlcpgStringxmlcpgtrimString (xmlcpgString *obj)
 Returns a copy of the string, with leading and trailing whitespace omitted.

xmlcpgAttlistDeclxmlcpgnewAttlistDecl (xmlcpgString *n, xmlcpgList *defs, int ext)
 Generates a new AttlistDecl.

xmlcpgStringxmlcpggetAttlistDeclName (xmlcpgAttlistDecl *obj)
 Gets the name from a attlistdecl.

void xmlcpgsetAttlistDeclName (xmlcpgAttlistDecl *obj, xmlcpgString *val)
 Sets the name in a attlistdecl.

xmlcpgListxmlcpggetAttlistDeclAttdefs (xmlcpgAttlistDecl *obj)
 Gets the attdefs from a attlistdecl.

int xmlcpggetAttlistDeclIsExtern (xmlcpgAttlistDecl *obj)
 Gets the attdefs from a attlistdecl.

void xmlcpgsetAttlistDeclIsExtern (xmlcpgAttlistDecl *obj, int ext)
 Sets the attdefs in a attlistdecl.

void xmlcpgsetAttlistDeclAttdefs (xmlcpgAttlistDecl *obj, xmlcpgList *val)
 Sets the attdefs in a attlistdecl.

xmlcpgAttDefxmlcpgnewAttDef (xmlcpgString *n, xmlcpgObject *type, xmlcpgObject *decl)
 Generates a new AttDef.

xmlcpgStringxmlcpggetAttDefName (xmlcpgAttDef *obj)
 Gets the name from a attdef.

void xmlcpgsetAttDefName (xmlcpgAttDef *obj, xmlcpgString *val)
 Sets the name in a attdef.

xmlcpgObjectxmlcpggetAttDefAttType (xmlcpgAttDef *obj)
 Gets the attType from a attdef.

void xmlcpgsetAttDefAttType (xmlcpgAttDef *obj, xmlcpgObject *val)
 Sets the attType in a attdef.

xmlcpgObjectxmlcpggetAttDefDefaultDecl (xmlcpgAttDef *obj)
 Gets the defaultDecl from a attdef.

void xmlcpgsetAttDefDefaultDecl (xmlcpgAttDef *obj, xmlcpgObject *val)
 Sets the defaultDecl in a attdef.

xmlcpgIdxmlcpgnewId ()
 Generates a new Id.

xmlcpgIdRefxmlcpgnewIdRef ()
 Generates a new IdRef.

xmlcpgIdRefsxmlcpgnewIdRefs ()
 Generates a new IdRefs.

xmlcpgEntityxmlcpgnewEntity ()
 Generates a new Entity.

xmlcpgEntitiesxmlcpgnewEntities ()
 Generates a new Entities.

xmlcpgNmTokenxmlcpgnewNmToken ()
 Generates a new NmToken.

xmlcpgNmTokensxmlcpgnewNmTokens ()
 Generates a new NmTokens.

xmlcpgNotationTypexmlcpgnewNotationType (xmlcpgList *n)
 Generates a new NotationType.

xmlcpgListxmlcpggetNotationTypeNames (xmlcpgNotationType *obj)
 Gets the names from a notationtype.

void xmlcpgsetNotationTypeNames (xmlcpgNotationType *obj, xmlcpgList *val)
 Sets the names in a notationtype.

xmlcpgEnumerationxmlcpgnewEnumeration (xmlcpgList *n)
 Generates a new Enumeration.

xmlcpgListxmlcpggetEnumerationNmTokens (xmlcpgEnumeration *obj)
 Gets the nmTokens from a enumeration.

void xmlcpgsetEnumerationNmTokens (xmlcpgEnumeration *obj, xmlcpgList *val)
 Sets the nmTokens in a enumeration.

xmlcpgRequiredxmlcpgnewRequired ()
 Generates a new Required.

xmlcpgImpliedxmlcpgnewImplied ()
 Generates a new Implied.

xmlcpgFixedxmlcpgnewFixed (xmlcpgString *att)
 Generates a new Fixed.

xmlcpgStringxmlcpggetFixedAttribute (xmlcpgFixed *obj)
 Gets the attribute from a fixed.

void xmlcpgsetFixedAttribute (xmlcpgFixed *obj, xmlcpgString *val)
 Sets the attribute in a fixed.

xmlcpgAttValuexmlcpgnewAttValue (xmlcpgString *att)
 Generates a new AttValue.

xmlcpgStringxmlcpggetAttValueAttribute (xmlcpgAttValue *obj)
 Gets the attribute from a attvalue.

void xmlcpgsetAttValueAttribute (xmlcpgAttValue *obj, xmlcpgString *val)
 Sets the attribute in a attvalue.

xmlcpgCharxmlcpgnewChar (char c)
 Generates a new Char.

char xmlcpggetCharCr (xmlcpgChar *obj)
 Gets the cr from a charref.

void xmlcpgsetCharCr (xmlcpgChar *obj, char val)
 Sets the cr in a charref.

xmlcpgEntityRefxmlcpgnewEntityRef (xmlcpgString *n)
 Generates a new EntityRef.

xmlcpgStringxmlcpggetEntityRefName (xmlcpgEntityRef *obj)
 Gets the name from a entityref.

void xmlcpgsetEntityRefName (xmlcpgEntityRef *obj, xmlcpgString *val)
 Sets the name in a entityref.

xmlcpgGEDeclxmlcpgnewGEDecl (xmlcpgString *n, xmlcpgObject *def, int ext)
 Generates a new GEDecl.

xmlcpgStringxmlcpggetGEDeclName (xmlcpgGEDecl *obj)
 Gets the name from a gedecl.

void xmlcpgsetGEDeclName (xmlcpgGEDecl *obj, xmlcpgString *val)
 Sets the name in a gedecl.

xmlcpgObjectxmlcpggetGEDeclEntityDef (xmlcpgGEDecl *obj)
 Gets the entityDef from a gedecl.

void xmlcpgsetGEDeclEntityDef (xmlcpgGEDecl *obj, xmlcpgObject *val)
 Sets the entityDef in a gedecl.

int xmlcpggetGEDeclIsExtern (xmlcpgGEDecl *obj)
void xmlcpgsetGEDeclIsExtern (xmlcpgGEDecl *obj, int ext)
xmlcpgPEDeclxmlcpgnewPEDecl (xmlcpgString *n, xmlcpgObject *def, int ext)
 Generates a new PEDecl.

xmlcpgStringxmlcpggetPEDeclName (xmlcpgPEDecl *obj)
 Gets the name from a pedecl.

void xmlcpgsetPEDeclName (xmlcpgPEDecl *obj, xmlcpgString *val)
 Sets the name in a pedecl.

xmlcpgObjectxmlcpggetPEDeclPeDef (xmlcpgPEDecl *obj)
 Gets the peDef from a pedecl.

void xmlcpgsetPEDeclPeDef (xmlcpgPEDecl *obj, xmlcpgObject *val)
 Sets the peDef in a pedecl.

int xmlcpggetPEDeclIsExtern (xmlcpgPEDecl *obj)
 Gets the peDef from a pedecl.

void xmlcpgsetPEDeclIsExtern (xmlcpgPEDecl *obj, int ext)
 Sets the peDef in a pedecl.

xmlcpgEntityValuexmlcpgnewEntityValue (xmlcpgString *v)
 Generates a new EntityValue.

xmlcpgStringxmlcpggetEntityValueValue (xmlcpgEntityValue *obj)
 Gets the value from a entityvalue.

void xmlcpgsetEntityValueValue (xmlcpgEntityValue *obj, xmlcpgString *val)
 Sets the value in a entityvalue.

xmlcpgExternalIDxmlcpgnewExternalID (xmlcpgObject *i, xmlcpgObject *data)
 Generates a new ExternalID.

xmlcpgObjectxmlcpggetExternalIDId (xmlcpgExternalID *obj)
 Gets the id from a externalid.

void xmlcpgsetExternalIDId (xmlcpgExternalID *obj, xmlcpgObject *val)
 Sets the id in a externalid.

xmlcpgObjectxmlcpggetExternalIDNdata (xmlcpgExternalID *obj)
 Gets the ndata from a externalid.

void xmlcpgsetExternalIDNdata (xmlcpgExternalID *obj, xmlcpgObject *val)
 Sets the ndata in a externalid.

xmlcpgSystemExternalIDxmlcpgnewSystemExternalID (xmlcpgString *n)
 Generates a new SystemExternalID.

xmlcpgStringxmlcpggetSystemExternalIDName (xmlcpgSystemExternalID *obj)
 Gets the name from a systemexternalid.

void xmlcpgsetSystemExternalIDName (xmlcpgSystemExternalID *obj, xmlcpgString *val)
 Sets the name in a systemexternalid.

xmlcpgPublicExternalIDxmlcpgnewPublicExternalID (xmlcpgString *p, xmlcpgString *s)
 Generates a new PublicExternalID.

xmlcpgStringxmlcpggetPublicExternalIDPublic (xmlcpgPublicExternalID *obj)
 Gets the public from a nonoexternalid.

void xmlcpgsetPublicExternalIDPublic (xmlcpgPublicExternalID *obj, xmlcpgString *val)
 Sets the public in a nonoexternalid.

xmlcpgStringxmlcpggetPublicExternalIDSystem (xmlcpgPublicExternalID *obj)
 Gets the system from a nonoexternalid.

void xmlcpgsetPublicExternalIDSystem (xmlcpgPublicExternalID *obj, xmlcpgString *val)
 Sets the system in a nonoexternalid.

xmlcpgNDataDeclxmlcpgnewNDataDecl (xmlcpgString *n)
 Generates a new NDataDecl.

xmlcpgStringxmlcpggetNDataDeclName (xmlcpgNDataDecl *obj)
 Gets the name from a ndatadecl.

void xmlcpgsetNDataDeclName (xmlcpgNDataDecl *obj, xmlcpgString *val)
 Sets the name in a ndatadecl.

xmlcpgNotationDeclxmlcpgnewNotationDecl (xmlcpgString *n, xmlcpgObject *i, int ext)
 Generates a new NotationDecl.

xmlcpgStringxmlcpggetNotationDeclName (xmlcpgNotationDecl *obj)
 Gets the name from a notationdecl.

void xmlcpgsetNotationDeclName (xmlcpgNotationDecl *obj, xmlcpgString *val)
 Sets the name in a notationdecl.

xmlcpgObjectxmlcpggetNotationDeclId (xmlcpgNotationDecl *obj)
 Gets the id from a notationdecl.

void xmlcpgsetNotationDeclId (xmlcpgNotationDecl *obj, xmlcpgObject *val)
 Sets the id in a notationdecl.

int xmlcpggetNotationDeclIsExtern (xmlcpgNotationDecl *obj)
 Gets the id from a notationdecl.

void xmlcpgsetNotationDeclIsExtern (xmlcpgNotationDecl *obj, int ext)
 Sets the id in a notationdecl.

xmlcpgPublicIDxmlcpgnewPublicID (xmlcpgString *n)
 Generates a new PublicID.

xmlcpgStringxmlcpggetPublicIDName (xmlcpgPublicID *obj)
 Gets the name from a publicid.

void xmlcpgsetPublicIDName (xmlcpgPublicID *obj, xmlcpgString *val)
 Sets the name in a publicid.

xmlcpgMapxmlcpgnewMap ()
 Generates a new Map.

xmlcpgObjectxmlcpgget (xmlcpgMap *map, const xmlcpgObject *key)
 Returns the value to which this map maps the specified key.

xmlcpgObjectxmlcpgput (xmlcpgMap *map, xmlcpgObject *key, xmlcpgObject *value)
 Associates the specified value with the specified key in this map (optional operation).

xmlcpgObjectxmlcpggetKey (const xmlcpgMapEntry *me)
 Gets the key of a map entry.

xmlcpgObjectxmlcpggetValue (const xmlcpgMapEntry *me)
 Gets the value of a map entry.

xmlcpgObjectxmlcpgsetValue (xmlcpgMapEntry *me, xmlcpgObject *obj)
 Sets the value of a map entry.

xmlcpgObjectxmlcpgclone (const xmlcpgObject *obj)
 Creates and returns a deep copy of this object.

int xmlcpgcontains (xmlcpgObject *container, xmlcpgObject *obj)
 Returns the true if this container contains the specified element.

int xmlcpgcontainsKey (xmlcpgObject *container, xmlcpgObject *key)
 Returns true if this container contains a mapping for the specified key.

void xmlcpgdelete (xmlcpgObject *obj)
 Destroys the object and its subsobjects.

void xmlcpgdeletelight (xmlcpgObject *obj, int light)
 Destroys the object.

void xmlcpgclear (xmlcpgObject *obj)
 Removes all of the elements from this collection.

void xmlcpgclearlight (xmlcpgObject *obj, int light)
 Clears the collection, if light is true then only the collection structure will be deleted.

int xmlcpgequals (const xmlcpgObject *obj1, const xmlcpgObject *obj2)
 Tells whether the 2 objects are equal.

int xmlcpgisEmpty (xmlcpgObject *obj)
 Returns 1 if the obj is a container and if it contains no elements.

unsigned int xmlcpgsize (const xmlcpgObject *obj)
 Gets the size of the collection.

void xmlcpgprintEscapedString (xmlcpgPrintStream *ps, const char *str)
void xmlcpgprint (FILE *f, const xmlcpgObject *obj)
 Prints to filedescriptor f the contents of the objet.

void xmlcpgprintObject (xmlcpgPrintStream *ps, const xmlcpgObject *obj)
 Prints to the print stream the contents of the objet.

void xmlcpgindentPrint (xmlcpgPrintStream *ps, int indent)
int xmlcpgprettyPrintAux (xmlcpgPrintStream *ps, const xmlcpgObject *obj, int indent)
 Pretty print switch.

void xmlcpgprettyPrint (FILE *f, const xmlcpgObject *obj)
 Pretty print to filedescriptor f the contents of the objet.

void xmlcpgprettyPrintObject (xmlcpgPrintStream *ps, const xmlcpgObject *obj)
 Pretty print to the print stream the contents of the objet.

xmlcpgObjectxmlcpgRemove (xmlcpgObject *container, xmlcpgObject *obj)
 Removes the first occurrence in this container of the specified element (optional operation).

void xmlcpgfatalError (const char *message)
 Signals a fatal error.

void xmlcpginternalError (const char *message, const char *file, int line)
 Signals an internal error but not fatal.

char * xmlcpgEOLNormalisation (const char *str)
 XML parsed entities are often stored in computer files which, for editing convenience, are organized into lines.

char * xmlcpgattributeQuoteReplacement (const char *str)
 Transforms the " and ' into their reference.

ReferenceTablexmlcpgnewReferenceTable ()
 Generates a new ReferenceTable.

const char * xmlcpggetReferenceTable (ReferenceTable *table, const char *key)
 Returns the value to which this map maps the specified key.

void xmlcpgputReferenceTable (ReferenceTable *table, const char *key, xmlcpgObject *value)
 Associates the specified value with the specified key in this map.

void xmlcpgremoveReferenceTable (ReferenceTable *table, const char *key)
 Removes the entry from the table associated with key.

void xmlcpgclearReferenceTable (ReferenceTable *table)
 Empties the specified reference table.

void xmlcpginit ()
 Initializes the xmlcpg library.

void xmlcpgdestroy ()
 Destroys the xmlcpg static variables.


Variables

FILE * xmlcpgin
int xmlcpgLineNo = 1
int xmlcpgUserOptions = 0
 User option variable which is set by the program parameters.

xmlcpgObjectxmlcpgast
 The abstract syntax tree.


Function Documentation

void xmlcpgadd xmlcpgList   list,
xmlcpgObject   obj
 

Inserts an object at the ObjectList front.

If list is not an ObjectList, the InternalError function is called.

Parameters:
list  the object list to modify.
obj  the object to insert.

void xmlcpgaddAttribute xmlcpgElement   ele,
const char *    nameAtt,
const char *    valAtt,
int    idType
 

Add attribute to the element.

Parameters:
ele  the element.
nameAtt  the name of the attribute.
valAtt  the value of the attribute.
idType  indicates whether the attribute to add is an ID token type.

void xmlcpgaddContentElement xmlcpgElement   ele,
xmlcpgObject   cont
 

Add an element to the content of the element ele.

Parameters:
ele, that  the content will be modify
cont, the  element to be added

void xmlcpgaddContentPCData xmlcpgElement   ele,
const char *    cont
 

Add text to the content of the element ele.

TO TEST If the attribute is already defined for this element, the cont is the new value for this attribute. Otherwise, the attribute is added to the attributes of the element.

Parameters:
ele, that  the content will be modify
cont, the  text to be added

void xmlcpgaddLast xmlcpgList   list,
xmlcpgObject   obj
 

Inserts an object at the ObjectList end.

If list is not an ObjectList, the InternalError function is called.

Parameters:
list  the object list to modify.
obj  the object to insert.

char* xmlcpgattributeQuoteReplacement const char *    str
 

Transforms the " and ' into their reference.

Parameters:
str  the string to convert.
Returns:
the new transformed string.

xmlcpgXMLDecl* xmlcpgbuildXMLDecl  
 

Generates a new XMLDecl with XML version 1.0, no encoding and undefined standalone declaration.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new XMLDecl or NULL is something went wrong.

void xmlcpgclear xmlcpgObject   obj
 

Removes all of the elements from this collection.

Parameters:
obj  the object to clear.

void xmlcpgclearlight xmlcpgObject   obj,
int    light
 

Clears the collection, if light is true then only the collection structure will be deleted.

Parameters:
obj  the object to clear.
light  0 indicates that the contents is to be deleted, 1 the content is preserved.

void xmlcpgclearReferenceTable ReferenceTable   table
 

Empties the specified reference table.

All it's content is deleted via xmlcpgdelete.

Parameters:
table  the table to clear.

xmlcpgObject* xmlcpgclone const xmlcpgObject   obj
 

Creates and returns a deep copy of this object.

Parameters:
obj  the object to copy.
Returns:
the new object.

xmlcpgString* xmlcpgconcatChar xmlcpgString   obj,
char    c
 

Concatenates a character at the end of the string.

Parameters:
obj  the string object.
c  the character to concat.
Returns:
obj or NULL if obj is not a string.

xmlcpgString* xmlcpgconcatString xmlcpgString   obj,
const char *    str
 

Concatenates the character array at the end of the string.

Parameters:
obj  the string object.
str  the character array to concat.
Returns:
obj or null if obj is not a string or str is NULL.

int xmlcpgcontains xmlcpgObject   container,
xmlcpgObject   obj
 

Returns the true if this container contains the specified element.

Parameters:
container  the container.
obj  element whose presence in this container is to be tested.
Returns:
1 if this container contains the specified element.

int xmlcpgcontainsKey xmlcpgObject   container,
xmlcpgObject   key
 

Returns true if this container contains a mapping for the specified key.

Parameters:
container  container to be tested.
key  key whose presence in this container is to be tested.
Returns:
true if this container contains a mapping for the specified key.

void xmlcpgdelete xmlcpgObject   obj
 

Destroys the object and its subsobjects.

Parameters:
obj  the object to destroy.

void xmlcpgdeletelight xmlcpgObject   obj,
int    light
 

Destroys the object.

Parameters:
obj  the object to destroy.
light  0 indicates that the contents is to be deleted, 1 the content is preserved.

void xmlcpgdestroy  
 

Destroys the xmlcpg static variables.

It may be done once at the end of the application.

char* xmlcpgEOLNormalisation const char *    str
 

XML parsed entities are often stored in computer files which, for editing convenience, are organized into lines.

These lines are typically separated by some combination of the characters carriage-return (xD) and line-feed (xA).

To simplify the tasks of applications, the characters passed to an application by the XML processor must be as if the XML processor normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence xD xA and any xD that is not followed by xA to a single xA character.

Parameters:
str  the string to normalize.
Returns:
a new allocated string.

int xmlcpgequals const xmlcpgObject   obj1,
const xmlcpgObject   obj2
 

Tells whether the 2 objects are equal.

Parameters:
obj1  the first object.
obj2  the second object.
Returns:
0 if the objects differs, 1 if they are the same.

void xmlcpgfatalError const char *    message
 

Signals a fatal error.

Parameters:
message  the error message string.

xmlcpgObject* xmlcpgget xmlcpgMap   map,
const xmlcpgObject   key
 

Returns the value to which this map maps the specified key.

Returns NULL if the map contains no mapping for this key. A return value of NULL does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to NULL. The containsKey operation may be used to distinguish these two cases.

Parameters:
map  the considered map.
key  key whose associated value is to be returned.
Returns:
the value to which this map maps the specified key, or NULL if the map contains no mapping for this key.

xmlcpgObject* xmlcpggetAttDefAttType xmlcpgAttDef   obj
 

Gets the attType from a attdef.

If obj is not a attdef, the InternalError function is called.

Parameters:
obj  the attdef.
Returns:
the attType or NULL if the object is not a attdef.

xmlcpgObject* xmlcpggetAttDefDefaultDecl xmlcpgAttDef   obj
 

Gets the defaultDecl from a attdef.

If obj is not a attdef, the InternalError function is called.

Parameters:
obj  the attdef.
Returns:
the defaultDecl or NULL if the object is not a attdef.

xmlcpgString* xmlcpggetAttDefName xmlcpgAttDef   obj
 

Gets the name from a attdef.

If obj is not a attdef, the InternalError function is called.

Parameters:
obj  the attdef.
Returns:
the name or NULL if the object is not a attdef.

xmlcpgList* xmlcpggetAttlistDeclAttdefs xmlcpgAttlistDecl   obj
 

Gets the attdefs from a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called.

Parameters:
obj  the attlistdecl.
Returns:
the attdefs or NULL if the object is not a attlistdecl.

int xmlcpggetAttlistDeclIsExtern xmlcpgAttlistDecl   obj
 

Gets the attdefs from a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called.

Parameters:
obj  the attlistdecl.
Returns:
the attdefs or NULL if the object is not a attlistdecl.

xmlcpgString* xmlcpggetAttlistDeclName xmlcpgAttlistDecl   obj
 

Gets the name from a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called.

Parameters:
obj  the attlistdecl.
Returns:
the name or NULL if the object is not a attlistdecl.

xmlcpgString* xmlcpggetAttributeName xmlcpgAttribute   obj
 

Gets the name from the attribute.

If obj is not an attribute, the InternalError function is called.

Parameters:
obj  the attribute.
Returns:
the name string or NULL if the object is not an attribute.

xmlcpgString* xmlcpggetAttributeValue xmlcpgAttribute   obj
 

Gets the value from the attribute.

If obj is not an attribute, the InternalError function is called.

Parameters:
obj  the attribute.
Returns:
the value string or NULL if the object is not an attribute.

xmlcpgString* xmlcpggetAttValueAttribute xmlcpgAttValue   obj
 

Gets the attribute from a attvalue.

If obj is not a attvalue, the InternalError function is called.

Parameters:
obj  the attvalue.
Returns:
the attribute or NULL if the object is not a attvalue.

xmlcpgString* xmlcpggetCDataString xmlcpgCData   obj
 

Gets the cdata string from the cdata.

If obj is not a cdata, the InternalError function is called.

Parameters:
obj  the cdata.
Returns:
the cdata string or NULL if the object is not a cdata.

char xmlcpggetCharCr xmlcpgChar   obj
 

Gets the cr from a charref.

If obj is not a charref, the InternalError function is called.

Parameters:
obj  the charref.
Returns:
the cr or EOF if the object is not a charref.

xmlcpgString* xmlcpggetCharDataString xmlcpgCharData   cd
 

Gets the character string from the chardata.

If cd is not a chardata, the InternalError function is called.

Parameters:
cd  the chardata.
Returns:
the character string or NULL if the object is not a chardata.

xmlcpgList* xmlcpggetChildrenAltChildList xmlcpgChildrenAlt   obj
 

Gets the child list from a childrenalt.

If obj is not a childrenalt, the InternalError function is called.

Parameters:
obj  the childrenalt.
Returns:
the child list or NULL if the object is not a childrenalt.

xmlcpgObject* xmlcpggetChildrenOptChild xmlcpgChildrenOpt   obj
 

Gets the child from a childrenopt.

If obj is not a childrenopt, the InternalError function is called.

Parameters:
obj  the childrenopt.
Returns:
the child or NULL if the object is not a childrenopt.

xmlcpgObject* xmlcpggetChildrenPlusChild xmlcpgChildrenPlus   obj
 

Gets the child from a childrenplus.

If obj is not a childrenplus, the InternalError function is called.

Parameters:
obj  the childrenplus.
Returns:
the child or NULL if the object is not a childrenplus.

xmlcpgList* xmlcpggetChildrenSeqChildList xmlcpgChildrenSeq   obj
 

Gets the child list from a childrenseq.

If obj is not a childrenseq, the InternalError function is called.

Parameters:
obj  the childrenseq.
Returns:
the child list or NULL if the object is not a childrenseq.

xmlcpgObject* xmlcpggetChildrenStarChild xmlcpgChildrenStar   obj
 

Gets the child from a childrenstar.

If obj is not a childrenstar, the InternalError function is called.

Parameters:
obj  the childrenstar.
Returns:
the child or NULL if the object is not a childrenstar.

xmlcpgString* xmlcpggetCommentString xmlcpgComment   obj
 

Gets the character string from the comment.

If obj is not a comment, the InternalError function is called.

Parameters:
obj  the comment.
Returns:
the character string or NULL if the object is not a comment.

xmlcpgList* xmlcpggetContentList xmlcpgContent   obj
 

Gets the content list from a content.

If obj is not a content, the InternalError function is called.

Parameters:
obj  the content.
Returns:
the content list or NULL if the object is not a content.

xmlcpgObject* xmlcpggetDocTypeDeclExternalID xmlcpgDocTypeDecl   obj
 

Gets the dtd external id from the doctypedecl.

If obj is not a doctypedecl, the InternalError function is called.

Parameters:
obj  the doctypedecl.
Returns:
the external id object or NULL if the object is not a doctypedecl.

xmlcpgList* xmlcpggetDocTypeDeclMarkupDecl xmlcpgDocTypeDecl   obj
 

Gets the markup declarations from a doctypedecl.

If obj is not a doctypedecl, the InternalError function is called.

Parameters:
obj  the doctypedecl.
Returns:
the markup declarations or NULL if the object is not a doctypedecl.

xmlcpgString* xmlcpggetDocTypeDeclName xmlcpgDocTypeDecl   obj
 

Gets the dtd name from the doctypedecl.

If obj is not a doctypedecl, the InternalError function is called.

Parameters:
obj  the doctypedecl.
Returns:
the name string or NULL if the object is not a doctypedecl.

xmlcpgObject* xmlcpggetDocumentElement xmlcpgDocument   doc
 

Gets the element structure from the document.

If doc is not a document, the InternalError function is called.

Parameters:
doc  the document.
Returns:
the element structure or NULL if the object is not a document.

xmlcpgList* xmlcpggetDocumentMisc xmlcpgDocument   doc
 

Gets the misc structure from the document.

If doc is not a document, the InternalError function is called.

Parameters:
doc  the document.
Returns:
the misc structure or NULL if the object is not a document.

xmlcpgObject* xmlcpggetDocumentProlog xmlcpgDocument   doc
 

Gets the prolog structure from a document.

If doc is not a document, the InternalError function is called.

Parameters:
doc  the document.
Returns:
the prolog structure or NULL if the object is not a document.

xmlcpgString* xmlcpggetElementAttributeByName xmlcpgElement   obj,
xmlcpgString   s
 

Gets the Element's attribute value.

Parameters:
obj  the element to search.
s  the attribute name to get.
Returns:
the attribute value corresponding to the attribute name.

xmlcpgList* xmlcpggetElementAttributes xmlcpgElement   obj
 

Gets the attributes from an element.

If obj is not an element, the InternalError function is called.

Parameters:
obj  the element.
Returns:
the attributes or NULL if the object is not an element.

xmlcpgObject* xmlcpggetElementContent xmlcpgElement   obj
 

Gets the content from an element.

If obj is not an element, the InternalError function is called.

Parameters:
obj  the element.
Returns:
the content structure or NULL if the object is not an element.

xmlcpgObject* xmlcpggetElementDeclContentSpec xmlcpgElementDecl   obj
 

Gets the content specification from an elementdecl.

If obj is not an elementdecl, the InternalError function is called.

Parameters:
obj  the elementdecl.
Returns:
the content specification or NULL if the object is not an elementdecl.

int xmlcpggetElementDeclisExtern xmlcpgElementDecl   obj
 

xmlcpgString* xmlcpggetElementDeclName xmlcpgElementDecl   obj
 

Gets the name from the elementdecl.

If obj is not an elementdecl, the InternalError function is called.

Parameters:
obj  the elementdecl.
Returns:
the name string or NULL if the object is not an elementdecl.

xmlcpgString* xmlcpggetElementName xmlcpgElement   obj
 

Gets the element name from the element.

If obj is not an element, the InternalError function is called.

Parameters:
obj  the element.
Returns:
the name string or NULL if the object is not an element.

xmlcpgString* xmlcpggetEntityRefName xmlcpgEntityRef   obj
 

Gets the name from a entityref.

If obj is not a entityref, the InternalError function is called.

Parameters:
obj  the entityref.
Returns:
the name or NULL if the object is not a entityref.

xmlcpgString* xmlcpggetEntityValueValue xmlcpgEntityValue   obj
 

Gets the value from a entityvalue.

If obj is not a entityvalue, the InternalError function is called.

Parameters:
obj  the entityvalue.
Returns:
the value or NULL if the object is not a entityvalue.

xmlcpgList* xmlcpggetEnumerationNmTokens xmlcpgEnumeration   obj
 

Gets the nmTokens from a enumeration.

If obj is not a enumeration, the InternalError function is called.

Parameters:
obj  the enumeration.
Returns:
the nmTokens or NULL if the object is not a enumeration.

xmlcpgObject* xmlcpggetExternalIDId xmlcpgExternalID   obj
 

Gets the id from a externalid.

If obj is not a externalid, the InternalError function is called.

Parameters:
obj  the externalid.
Returns:
the id or NULL if the object is not a externalid.

xmlcpgObject* xmlcpggetExternalIDNdata xmlcpgExternalID   obj
 

Gets the ndata from a externalid.

If obj is not a externalid, the InternalError function is called.

Parameters:
obj  the externalid.
Returns:
the ndata or NULL if the object is not a externalid.

xmlcpgString* xmlcpggetFixedAttribute xmlcpgFixed   obj
 

Gets the attribute from a fixed.

If obj is not a fixed, the InternalError function is called.

Parameters:
obj  the fixed.
Returns:
the attribute or NULL if the object is not a fixed.

xmlcpgObject* xmlcpggetGEDeclEntityDef xmlcpgGEDecl   obj
 

Gets the entityDef from a gedecl.

If obj is not a gedecl, the InternalError function is called.

Parameters:
obj  the gedecl.
Returns:
the entityDef or NULL if the object is not a gedecl.

int xmlcpggetGEDeclIsExtern xmlcpgGEDecl   obj
 

xmlcpgString* xmlcpggetGEDeclName xmlcpgGEDecl   obj
 

Gets the name from a gedecl.

If obj is not a gedecl, the InternalError function is called.

Parameters:
obj  the gedecl.
Returns:
the name or NULL if the object is not a gedecl.

xmlcpgObject* xmlcpggetKey const xmlcpgMapEntry   me
 

Gets the key of a map entry.

Parameters:
me  the map entry.
Returns:
the key value.

xmlcpgObject* xmlcpggetListLast xmlcpgList   list
 

Gets the last object of the list.

Parameters:
list  the list object.
Returns:
the last object of the list or NULL if list is not a list or list is empty.

xmlcpgString* xmlcpggetNDataDeclName xmlcpgNDataDecl   obj
 

Gets the name from a ndatadecl.

If obj is not a ndatadecl, the InternalError function is called.

Parameters:
obj  the ndatadecl.
Returns:
the name or NULL if the object is not a ndatadecl.

xmlcpgObject* xmlcpggetNotationDeclId xmlcpgNotationDecl   obj
 

Gets the id from a notationdecl.

If obj is not a notationdecl, the InternalError function is called.

Parameters:
obj  the notationdecl.
Returns:
the id or NULL if the object is not a notationdecl.

int xmlcpggetNotationDeclIsExtern xmlcpgNotationDecl   obj
 

Gets the id from a notationdecl.

If obj is not a notationdecl, the InternalError function is called.

Parameters:
obj  the notationdecl.
Returns:
the id or NULL if the object is not a notationdecl.

xmlcpgString* xmlcpggetNotationDeclName xmlcpgNotationDecl   obj
 

Gets the name from a notationdecl.

If obj is not a notationdecl, the InternalError function is called.

Parameters:
obj  the notationdecl.
Returns:
the name or NULL if the object is not a notationdecl.

xmlcpgList* xmlcpggetNotationTypeNames xmlcpgNotationType   obj
 

Gets the names from a notationtype.

If obj is not a notationtype, the InternalError function is called.

Parameters:
obj  the notationtype.
Returns:
the names or NULL if the object is not a notationtype.

xmlcpgObject* xmlcpggetPairHead xmlcpgPair   obj
 

Gets the head part of the object pair.

Parameters:
obj  the Pair where to extract the head.
Returns:
the head part of the object. If obj is not a pair NULL is returned.

xmlcpgObject* xmlcpggetPairTail xmlcpgPair   obj
 

Gets the tail part of the object pair.

Parameters:
obj  the Pair where to extract the tail.
Returns:
the tail part of the object. If obj is not a pair, NULL is returned.

int xmlcpggetPEDeclIsExtern xmlcpgPEDecl   obj
 

Gets the peDef from a pedecl.

If obj is not a pedecl, the InternalError function is called.

Parameters:
obj  the pedecl.
Returns:
the peDef or NULL if the object is not a pedecl.

xmlcpgString* xmlcpggetPEDeclName xmlcpgPEDecl   obj
 

Gets the name from a pedecl.

If obj is not a pedecl, the InternalError function is called.

Parameters:
obj  the pedecl.
Returns:
the name or NULL if the object is not a pedecl.

xmlcpgObject* xmlcpggetPEDeclPeDef xmlcpgPEDecl   obj
 

Gets the peDef from a pedecl.

If obj is not a pedecl, the InternalError function is called.

Parameters:
obj  the pedecl.
Returns:
the peDef or NULL if the object is not a pedecl.

xmlcpgString* xmlcpggetPEReferenceName xmlcpgPEReference   obj
 

Gets the peref name from the pereference.

If obj is not a pereference, the InternalError function is called.

Parameters:
obj  the pereference.
Returns:
the name string or NULL if the object is not a pereference.

xmlcpgString* xmlcpggetPIParameters xmlcpgPI   obj
 

Gets the processing instruction parameters from the pi.

If obj is not a pi, the InternalError function is called.

Parameters:
obj  the pi.
Returns:
the processing instruction parameters or NULL if the object is not a pi.

xmlcpgString* xmlcpggetPITarget xmlcpgPI   obj
 

Gets the processing instruction target from the pi.

If obj is not a pi, the InternalError function is called.

Parameters:
obj  the pi.
Returns:
the processing instruction target or NULL if the object is not a pi.

xmlcpgObject* xmlcpggetPrologDtdDecl xmlcpgProlog   obj
 

Gets the dtd declaration from a prolog.

If obj is not a prolog, the InternalError function is called.

Parameters:
obj  the prolog.
Returns:
the dtd declaration structure or NULL if the object is not a prolog.

xmlcpgList* xmlcpggetPrologMisc1 xmlcpgProlog   obj
 

Gets the first misc from a prolog.

If obj is not a prolog, the InternalError function is called.

Parameters:
obj  the prolog.
Returns:
the first misc or NULL if the object is not a prolog.

xmlcpgList* xmlcpggetPrologMisc2 xmlcpgProlog   obj
 

Gets the second misc from a prolog.

If obj is not a prolog, the InternalError function is called.

Parameters:
obj  the prolog.
Returns:
the second misc or NULL if the object is not a prolog.

xmlcpgObject* xmlcpggetPrologXmlDecl xmlcpgProlog   obj
 

Gets the xml declaration from a prolog.

If obj is not a prolog, the InternalError function is called.

Parameters:
obj  the prolog.
Returns:
the xml declaration structure or NULL if the object is not a prolog.

xmlcpgString* xmlcpggetPublicExternalIDPublic xmlcpgPublicExternalID   obj
 

Gets the public from a nonoexternalid.

If obj is not a nonoexternalid, the InternalError function is called.

Parameters:
obj  the nonoexternalid.
Returns:
the public or NULL if the object is not a nonoexternalid.

xmlcpgString* xmlcpggetPublicExternalIDSystem xmlcpgPublicExternalID   obj
 

Gets the system from a nonoexternalid.

If obj is not a nonoexternalid, the InternalError function is called.

Parameters:
obj  the nonoexternalid.
Returns:
the system or NULL if the object is not a nonoexternalid.

xmlcpgString* xmlcpggetPublicIDName xmlcpgPublicID   obj
 

Gets the name from a publicid.

If obj is not a publicid, the InternalError function is called.

Parameters:
obj  the publicid.
Returns:
the name or NULL if the object is not a publicid.

const char* xmlcpggetReferenceTable ReferenceTable   table,
const char *    key
 

Returns the value to which this map maps the specified key.

Returns NULL if the map contains no mapping for this key.

Parameters:
key  key whose associated value is to be returned.
Returns:
the value to which this map maps the specified key, or null if the map contains no mapping for this key.

xmlcpgIterator* xmlcpggetSpecificContent xmlcpgElement   rnaml,
char *    content
 

Gets the content from the element.

Parameters:
rnaml  the element
content  the type of the element to access in the content of the element rnaml
Returns:
an iterator on the content list of the element or null if the element does not content the type of the parameter content.

char* xmlcpggetStringStr xmlcpgString   obj
 

Gets the str from a string.

If obj is not a string, the InternalError function is called.

Parameters:
obj  the string.
Returns:
the str or NULL if the object is not a string.

xmlcpgString* xmlcpggetSystemExternalIDName xmlcpgSystemExternalID   obj
 

Gets the name from a systemexternalid.

If obj is not a systemexternalid, the InternalError function is called.

Parameters:
obj  the systemexternalid.
Returns:
the name or NULL if the object is not a systemexternalid.

xmlcpgObject* xmlcpggetValue const xmlcpgMapEntry   me
 

Gets the value of a map entry.

Parameters:
me  the map entry.
Returns:
the value of them map entry.

xmlcpgString* xmlcpggetXMLDeclEncoding xmlcpgXMLDecl   obj
 

Gets the encoding string from the xmldecl.

If obj is not a xmldecl, the InternalError function is called.

Parameters:
obj  the xmldecl.
Returns:
the encoding string or NULL if the object is not a xmldecl.

int xmlcpggetXMLDeclStandalone xmlcpgXMLDecl   obj
 

Gets the standalone value from the xmldecl.

If obj is not a xmldecl, the InternalError function is called.

Parameters:
obj  the xmldecl.
Returns:
the standalone value or -1 if the object is not a xmldecl.

xmlcpgString* xmlcpggetXMLDeclVersion xmlcpgXMLDecl   obj
 

Gets the version string from the xmldecl.

If obj is not a xmldecl, the InternalError function is called.

Parameters:
obj  the xmldecl.
Returns:
the version string or NULL if the object is not a xmldecl.

int xmlcpghasNext xmlcpgIterator   iterator
 

Test whether the iterator will return an element at the next "next" call.

Parameters:
iterator  the iterator structure to test.
Returns:
whether the iterator contains a other object.

int xmlcpghasnextElementType xmlcpgIterator   iterator,
char *    name
 

Test wether the list contain other element of the type "name".

Parameters:
iterator  the iterator structure to test.
name, the  type of the element that we search
Returns:
whether the iterator contains a other object of the type name.

void xmlcpgindentPrint xmlcpgPrintStream   ps,
int    indent
[static]
 

void xmlcpginit  
 

Initializes the xmlcpg library.

It must be done once at the beginning of the application.

void xmlcpginternalError const char *    message,
const char *    file,
int    line
 

Signals an internal error but not fatal.

Parameters:
message  the message to print.
file  the file where occured the error.
line  the line where occured the error.

int xmlcpgisEmpty xmlcpgObject   obj
 

Returns 1 if the obj is a container and if it contains no elements.

If the object is not a container or the object is a container and contains at least one elements, 0 is returned.

Parameters:
container  the object to test.
Returns:
1 if this container contains no elements.

char* xmlcpgisQuoted const char *    str [static]
 

xmlcpgAny* xmlcpgnewAny  
 

Generates a new Any.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Any or NULL is something went wrong.

xmlcpgAttDef* xmlcpgnewAttDef xmlcpgString   n,
xmlcpgObject   type,
xmlcpgObject   decl
 

Generates a new AttDef.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
type  the attType.
decl  the defaultDecl.
Returns:
a new AttDef or NULL is something went wrong.

xmlcpgAttlistDecl* xmlcpgnewAttlistDecl xmlcpgString   n,
xmlcpgList   defs,
int    ext
 

Generates a new AttlistDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
defs  the attdefs.
Returns:
a new AttlistDecl or NULL is something went wrong.

xmlcpgAttribute* xmlcpgnewAttribute xmlcpgString   n,
xmlcpgString   v
 

Generates a new Attribute.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name of the attribute.
v  the value of the attribute.
Returns:
a new Attribute or NULL is something went wrong.

xmlcpgAttValue* xmlcpgnewAttValue xmlcpgString   att
 

Generates a new AttValue.

If the object cannot be allocated, the InternalError function is called.

Parameters:
att  the attribute.
Returns:
a new AttValue or NULL is something went wrong.

xmlcpgCData* xmlcpgnewCData xmlcpgString   dat
 

Geneates a new CData.

If the object cannot be allocated, the InternalError function is called.

Parameters:
dat  the cdata string.
Returns:
a new CData or NULL is something is wrong.

xmlcpgChar* xmlcpgnewChar char    c
 

Generates a new Char.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the cr.
Returns:
a new Char or NULL is something went wrong.

xmlcpgCharData* xmlcpgnewCharData xmlcpgString   s
 

Generates a new CharData.

If the object cannot be allocated, the InternalError function is called.

Parameters:
s  the character string.
Returns:
a new CharData or NULL is something is wrong.

xmlcpgChildrenAlt* xmlcpgnewChildrenAlt xmlcpgList   c
 

Generates a new ChildrenAlt.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the alternate children list.
Returns:
a new ChildrenAlt or NULL is something went wrong.

xmlcpgChildrenOpt* xmlcpgnewChildrenOpt xmlcpgObject   c
 

Generates a new ChildrenOpt.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the child.
Returns:
a new ChildrenOpt or NULL is something went wrong.

xmlcpgChildrenPlus* xmlcpgnewChildrenPlus xmlcpgObject   c
 

Generates a new ChildrenPlus.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the child.
Returns:
a new ChildrenPlus or NULL is something went wrong.

xmlcpgChildrenSeq* xmlcpgnewChildrenSeq xmlcpgList   c
 

Generates a new ChildrenSeq.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the child list.
Returns:
a new ChildrenSeq or NULL is something went wrong.

xmlcpgChildrenStar* xmlcpgnewChildrenStar xmlcpgObject   c
 

Generates a new ChildrenStar.

If the object cannot be allocated, the InternalError function is called.

Parameters:
c  the child.
Returns:
a new ChildrenStar or NULL is something went wrong.

xmlcpgComment* xmlcpgnewComment xmlcpgString   s
 

Generates a new Comment.

If the object cannot be allocated, the InternalError function is called.

Parameters:
s  the character string.
Returns:
a new Comment or NULL is something is wrong.

xmlcpgContent* xmlcpgnewContent xmlcpgList   l
 

Generates a new Content.

If the object cannot be allocated, the InternalError function is called.

Parameters:
l  the content list.
Returns:
a new Content or NULL is something went wrong.

xmlcpgDocTypeDecl* xmlcpgnewDocTypeDecl xmlcpgString   n,
xmlcpgObject   e,
xmlcpgList   m
 

Generates a new DocTypeDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name of the dtd.
e  the external Id.
m  the markup declarations.
Returns:
a new DocTypeDecl or NULL is something went wrong.

xmlcpgDocument* xmlcpgnewDocument xmlcpgObject   pro,
xmlcpgObject   ele,
xmlcpgList   mis
 

Generates a new Document.

If the object cannot be allocated, the InternalError function is called.

Parameters:
pro  the prolog structure.
ele  the element structure.
mis  the miscellaneous structure.
Returns:
a new Document or NULL is something is wrong.

xmlcpgElement* xmlcpgnewElement xmlcpgString   n,
xmlcpgList   a,
xmlcpgObject   c
 

Generates a new Element.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name of the element.
a  the attributes of the element.
cont  the content of the element.
Returns:
a new Element or NULL is something went wrong.

xmlcpgElementDecl* xmlcpgnewElementDecl xmlcpgString   n,
xmlcpgObject   c,
int    ext
 

Generates a new ElementDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name of the elementdecl.
c  the content specification.
Returns:
a new ElementDecl or NULL is something went wrong.

xmlcpgElement* xmlcpgnewElementWithName const char *    name
 

Generates a new Element with a specified name.

The other parts of the element are generated but empty.

Parameters:
name, the  type of the element that we want to create
Returns:
an element with an empty content, and empty attribute list

xmlcpgEmpty* xmlcpgnewEmpty  
 

Generates a new Empty.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Empty or NULL is something went wrong.

xmlcpgEntities* xmlcpgnewEntities  
 

Generates a new Entities.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Entities or NULL is something went wrong.

xmlcpgEntity* xmlcpgnewEntity  
 

Generates a new Entity.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Entity or NULL is something went wrong.

xmlcpgEntityRef* xmlcpgnewEntityRef xmlcpgString   n
 

Generates a new EntityRef.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
Returns:
a new EntityRef or NULL is something went wrong.

xmlcpgEntityValue* xmlcpgnewEntityValue xmlcpgString   v
 

Generates a new EntityValue.

If the object cannot be allocated, the InternalError function is called.

Parameters:
v  the value.
Returns:
a new EntityValue or NULL is something went wrong.

xmlcpgEnumeration* xmlcpgnewEnumeration xmlcpgList   n
 

Generates a new Enumeration.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the nmTokens.
Returns:
a new Enumeration or NULL is something went wrong.

xmlcpgExternalID* xmlcpgnewExternalID xmlcpgObject   i,
xmlcpgObject   data
 

Generates a new ExternalID.

If the object cannot be allocated, the InternalError function is called.

Parameters:
i  the id.
data  the ndata.
Returns:
a new ExternalID or NULL is something went wrong.

xmlcpgFixed* xmlcpgnewFixed xmlcpgString   att
 

Generates a new Fixed.

If the object cannot be allocated, the InternalError function is called.

Parameters:
att  the attribute.
Returns:
a new Fixed or NULL is something went wrong.

xmlcpgGEDecl* xmlcpgnewGEDecl xmlcpgString   n,
xmlcpgObject   def,
int    ext
 

Generates a new GEDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
def  the entityDef.
Returns:
a new GEDecl or NULL is something went wrong.

xmlcpgId* xmlcpgnewId  
 

Generates a new Id.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Id or NULL is something went wrong.

xmlcpgIdRef* xmlcpgnewIdRef  
 

Generates a new IdRef.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new IdRef or NULL is something went wrong.

xmlcpgIdRefs* xmlcpgnewIdRefs  
 

Generates a new IdRefs.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new IdRefs or NULL is something went wrong.

xmlcpgImplied* xmlcpgnewImplied  
 

Generates a new Implied.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Implied or NULL is something went wrong.

xmlcpgIterator* xmlcpgnewIterator xmlcpgObject   coll
 

Gets a new iterator for a collection.

If coll is not a collection Object, the InternalError function is called.

Parameters:
coll  the collection Object.
Returns:
the new Iterator or NULL if something is wrong.

xmlcpgList* xmlcpgnewList  
 

Generates a new ObjectList.

If the object cannot be allocated, the InternalError function is called.

Returns:
the new ObjectList pointer.

xmlcpgIterator* xmlcpgnewListIterator xmlcpgPair   p [static]
 

xmlcpgMap* xmlcpgnewMap  
 

Generates a new Map.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Map or NULL is something went wrong.

xmlcpgMapEntry* xmlcpgnewMapEntry xmlcpgObject   key,
xmlcpgObject   value
 

xmlcpgIterator* xmlcpgnewMapIterator xmlcpgPair   p [static]
 

xmlcpgNDataDecl* xmlcpgnewNDataDecl xmlcpgString   n
 

Generates a new NDataDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
Returns:
a new NDataDecl or NULL is something went wrong.

xmlcpgNmToken* xmlcpgnewNmToken  
 

Generates a new NmToken.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new NmToken or NULL is something went wrong.

xmlcpgNmTokens* xmlcpgnewNmTokens  
 

Generates a new NmTokens.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new NmTokens or NULL is something went wrong.

xmlcpgNotationDecl* xmlcpgnewNotationDecl xmlcpgString   n,
xmlcpgObject   i,
int    isExt
 

Generates a new NotationDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
i  the id.
Returns:
a new NotationDecl or NULL is something went wrong.

xmlcpgNotationType* xmlcpgnewNotationType xmlcpgList   n
 

Generates a new NotationType.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the names.
Returns:
a new NotationType or NULL is something went wrong.

xmlcpgPair* xmlcpgnewPair xmlcpgObject   hea,
xmlcpgObject   tai
 

Generates a new Pair.

If the object cannot be allocated, the InternalError function is called.

Parameters:
hea  the head of the new pair.
tai  the tail of the new pair.
Returns:
the new generated pair.

xmlcpgPCData* xmlcpgnewPCData  
 

Generates a new PCData.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new PCData or NULL is something went wrong.

xmlcpgPEDecl* xmlcpgnewPEDecl xmlcpgString   n,
xmlcpgObject   def,
int    ext
 

Generates a new PEDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
def  the peDef.
Returns:
a new PEDecl or NULL is something went wrong.

xmlcpgPEReference* xmlcpgnewPEReference xmlcpgString   p
 

Generates a new PEReference.

If the object cannot be allocated, the InternalError function is called.

Parameters:
p  the name of the peref.
Returns:
a new PEReference or NULL is something went wrong.

xmlcpgPI* xmlcpgnewPI xmlcpgString   pit,
xmlcpgString   pip
 

Generates a new PI.

If the object cannot be allocated, the InternalError function is called.

Parameters:
pit  the processing instruction target.
pip  the processing instruction parameters.
Returns:
a new PI or NULL is something is wrong.

xmlcpgProlog* xmlcpgnewProlog xmlcpgObject   xml,
xmlcpgList   m,
xmlcpgObject   dtd
 

Generates a new Prolog.

If the object cannot be allocated, the InternalError function is called.

Parameters:
xml  the xml declaration.
m  the misc structures.
dtd  the DTD structure.
Returns:
a new Prolog or NULL is something went wrong.

xmlcpgPublicExternalID* xmlcpgnewPublicExternalID xmlcpgString   p,
xmlcpgString   s
 

Generates a new PublicExternalID.

If the object cannot be allocated, the InternalError function is called.

Parameters:
p  the public.
s  the system.
Returns:
a new PublicExternalID or NULL is something went wrong.

xmlcpgPublicID* xmlcpgnewPublicID xmlcpgString   n
 

Generates a new PublicID.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
Returns:
a new PublicID or NULL is something went wrong.

ReferenceTable* xmlcpgnewReferenceTable  
 

Generates a new ReferenceTable.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new ReferenceTable or NULL is something went wrong.

xmlcpgRequired* xmlcpgnewRequired  
 

Generates a new Required.

If the object cannot be allocated, the InternalError function is called.

Returns:
a new Required or NULL is something went wrong.

xmlcpgString* xmlcpgnewString char *    s
 

Generates a new String.

If the object cannot be allocated, the InternalError function is called.

Parameters:
s  the str.
Returns:
a new String or NULL is something went wrong.

xmlcpgSystemExternalID* xmlcpgnewSystemExternalID xmlcpgString   n
 

Generates a new SystemExternalID.

If the object cannot be allocated, the InternalError function is called.

Parameters:
n  the name.
Returns:
a new SystemExternalID or NULL is something went wrong.

xmlcpgXMLDecl* xmlcpgnewXMLDecl xmlcpgString   v,
xmlcpgString   e,
int    s
 

Generates a new XMLDecl.

If the object cannot be allocated, the InternalError function is called.

Parameters:
v  the xml version string.
e  the encoding string.
s  the standalone value.
Returns:
a new XMLDecl or NULL is something went wrong.

xmlcpgObject* xmlcpgnext xmlcpgIterator   iterator
 

Gets the next element in the object list and advances the iterator.

Parameters:
iterator  the iterator structure where the object is extracted from.
Returns:
the object contained in the object list pointed by the iterator. If there are no next element NULL is returned.

xmlcpgObject* xmlcpgnextElementType xmlcpgIterator   iterator,
char *    name
 

Gets the next element in the object list of the type "name" and advances the iterator .

Parameters:
iterator  the iterator structure where the object is extracted from.
name, the  type of the elements we search.
Returns:
the object of the type name contained in the object list pointed by the iterator. If there are no next element NULL is returned.

void xmlcpgprettyPrint FILE *    f,
const xmlcpgObject   obj
 

Pretty print to filedescriptor f the contents of the objet.

Parameters:
f  the file descriptor.
obj  the object to pretty print.
Deprecated:
Since:
0.1 Use xmlcpgprettyPrintObject instead.

int xmlcpgprettyPrintAux xmlcpgPrintStream   ps,
const xmlcpgObject   obj,
int    indent
[static]
 

Pretty print switch.

Parameters:
ps  the print stream.
obj  the object to pretty print.
indent  the indentation level requested by the last printed markup.
Returns:
wheter or not a newline is requested by the last printed markup.

void xmlcpgprettyPrintObject xmlcpgPrintStream   ps,
const xmlcpgObject   obj
 

Pretty print to the print stream the contents of the objet.

Parameters:
ps  the print stream.
obj  the object to print.

void xmlcpgprint FILE *    f,
const xmlcpgObject   obj
 

Prints to filedescriptor f the contents of the objet.

Parameters:
f  the file descriptor.
obj  the object to print.
Deprecated:
Since:
0.1 Use xmlcpgprintObject instead.

void xmlcpgprintEscapedString xmlcpgPrintStream   ps,
const char *    str
[static]
 

void xmlcpgprintObject xmlcpgPrintStream   ps,
const xmlcpgObject   obj
 

Prints to the print stream the contents of the objet.

Parameters:
ps  the print stream.
obj  the object to print.

xmlcpgObject* xmlcpgput xmlcpgMap   map,
xmlcpgObject   key,
xmlcpgObject   value
 

Associates the specified value with the specified key in this map (optional operation).

If the map previously contained a mapping for this key, the old value is replaced.

Parameters:
map  the considered map.
key  key with which the specified value is to be associated.
value  value to be associated with the specified key.
Returns:
previous value associated with specified key, or NULL if there was no mapping for key. A NULL return can also indicate that the map previously associated NULL with the specified key.

void xmlcpgputReferenceTable ReferenceTable   table,
const char *    key,
xmlcpgObject   value
 

Associates the specified value with the specified key in this map.

If the map previously contained a mapping for this key, the old value is replaced.

Parameters:
key  key with which the specified value is to be associated.
value  value to be associated with the specified key.

xmlcpgObject* xmlcpgRemove xmlcpgObject   container,
xmlcpgObject   obj
 

Removes the first occurrence in this container of the specified element (optional operation).

If this container does not contain the element, it is unchanged. The element is not deleted, only it's presence is removed from the container.

Parameters:
container  the container where to remove the element.
obj  element to be removed from this container, if present.
Returns:
the removed element if this container contained the specified element or NULL otherwise.

void xmlcpgremove xmlcpgIterator   iterator
 

Removes from the structure the element last returned from the iterator.

The object itself is not deleted.

Parameters:
iterator  the iterator where to remove the object.

void xmlcpgremoveReferenceTable ReferenceTable   table,
const char *    key
 

Removes the entry from the table associated with key.

Parameters:
table  the reference table where to remove the entry.
key  the key to remove.

void xmlcpgsetAttDefAttType xmlcpgAttDef   obj,
xmlcpgObject   val
 

Sets the attType in a attdef.

If obj is not a attdef, the InternalError function is called. The old attType is not deleted.

Parameters:
obj  the attdef to alter.
val  the new attType.

void xmlcpgsetAttDefDefaultDecl xmlcpgAttDef   obj,
xmlcpgObject   val
 

Sets the defaultDecl in a attdef.

If obj is not a attdef, the InternalError function is called. The old defaultDecl is not deleted.

Parameters:
obj  the attdef to alter.
val  the new defaultDecl.

void xmlcpgsetAttDefName xmlcpgAttDef   obj,
xmlcpgString   val
 

Sets the name in a attdef.

If obj is not a attdef, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the attdef to alter.
val  the new name.

void xmlcpgsetAttlistDeclAttdefs xmlcpgAttlistDecl   obj,
xmlcpgList   val
 

Sets the attdefs in a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called. The old attdefs is not deleted.

Parameters:
obj  the attlistdecl to alter.
val  the new attdefs.

void xmlcpgsetAttlistDeclIsExtern xmlcpgAttlistDecl   obj,
int    ext
 

Sets the attdefs in a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called. The old attdefs is not deleted.

Parameters:
obj  the attlistdecl to alter.
val  the new attdefs.

void xmlcpgsetAttlistDeclName xmlcpgAttlistDecl   obj,
xmlcpgString   val
 

Sets the name in a attlistdecl.

If obj is not a attlistdecl, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the attlistdecl to alter.
val  the new name.

void xmlcpgsetAttributeName xmlcpgAttribute   obj,
xmlcpgString   s
 

Sets the name in an attribute.

If obj is not an attribute, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the attribute to alter.
s  the new name string.

void xmlcpgsetAttributeValue xmlcpgAttribute   obj,
xmlcpgString   s
 

Sets the value in an attribute.

If obj is not an attribute, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the attribute to alter.
s  the new value string.

void xmlcpgsetAttValueAttribute xmlcpgAttValue   obj,
xmlcpgString   val
 

Sets the attribute in a attvalue.

If obj is not a attvalue, the InternalError function is called. The old attribute is not deleted.

Parameters:
obj  the attvalue to alter.
val  the new attribute.

void xmlcpgsetCDataString xmlcpgCData   obj,
xmlcpgString   s
 

Sets the cdata string in a cdata.

If obj is not a cdata, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the cdata to alter.
s  the new cdata string.

void xmlcpgsetCharCr xmlcpgChar   obj,
char    val
 

Sets the cr in a charref.

If obj is not a charref, the InternalError function is called.

Parameters:
obj  the charref to alter.
val  the new cr.

void xmlcpgsetCharDataString xmlcpgCharData   cd,
xmlcpgString   s
 

Sets the character string in a chardata.

If cd is not a chardata, the InternalError function is called. The old character string is not deleted.

Parameters:
cd  the chardata to alter.
s  the new character string.

void xmlcpgsetChildrenAltChildList xmlcpgChildrenAlt   obj,
xmlcpgList   val
 

Sets the child list in a childrenalt.

If obj is not a childrenalt, the InternalError function is called. The old child list is not deleted.

Parameters:
obj  the childrenalt to alter.
val  the new child list.

void xmlcpgsetChildrenOptChild xmlcpgChildrenOpt   obj,
xmlcpgObject   val
 

Sets the child in a childrenopt.

If obj is not a childrenopt, the InternalError function is called. The old child is not deleted.

Parameters:
obj  the childrenopt to alter.
val  the new child.

void xmlcpgsetChildrenPlusChild xmlcpgChildrenPlus   obj,
xmlcpgObject   val
 

Sets the child in a childrenplus.

If obj is not a childrenplus, the InternalError function is called. The old child is not deleted.

Parameters:
obj  the childrenplus to alter.
val  the new child.

void xmlcpgsetChildrenSeqChildList xmlcpgChildrenSeq   obj,
xmlcpgList   val
 

Sets the child list in a childrenseq.

If obj is not a childrenseq, the InternalError function is called. The old child list is not deleted.

Parameters:
obj  the childrenseq to alter.
val  the new child list.

void xmlcpgsetChildrenStarChild xmlcpgChildrenStar   obj,
xmlcpgObject   val
 

Sets the child in a childrenstar.

If obj is not a childrenstar, the InternalError function is called. The old child is not deleted.

Parameters:
obj  the childrenstar to alter.
val  the new child.

void xmlcpgsetCommentString xmlcpgComment   obj,
xmlcpgString   s
 

Sets the character string in a comment.

If obj is not a comment, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the comment to alter.
s  the new character string.

void xmlcpgsetContentList xmlcpgContent   obj,
xmlcpgList   val
 

Sets the content list in a content.

If obj is not a content, the InternalError function is called. The old content list is not deleted.

Parameters:
obj  the content to alter.
val  the new content list.

void xmlcpgsetDocTypeDeclExternalID xmlcpgDocTypeDecl   obj,
xmlcpgObject   e
 

Sets the dtd external id in a doctypedecl.

If obj is not a doctypedecl, the InternalError function is called. The old object is not deleted.

Parameters:
obj  the doctypedecl to alter.
e  the new external id object.

void xmlcpgsetDocTypeDeclMarkupDecl xmlcpgDocTypeDecl   obj,
xmlcpgList   val
 

Sets the markup declarations in a doctypedecl.

If obj is not a doctypedecl, the InternalError function is called. The old markup declarations are not deleted.

Parameters:
obj  the doctypedecl to alter.
val  the new markup declarations.

void xmlcpgsetDocTypeDeclName xmlcpgDocTypeDecl   obj,
xmlcpgString   s
 

Sets the dtd name in a doctypedecl.

If obj is not a doctypedecl, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the doctypedecl to alter.
s  the new name string.

void xmlcpgsetDocumentElement xmlcpgDocument   doc,
xmlcpgObject   obj
 

Sets the element structure in a document.

If doc is not a document, the InternalError function is called. The old element structure is not deleted.

Parameters:
doc  the document to alter.
obj  the new element.

void xmlcpgsetDocumentMisc xmlcpgDocument   doc,
xmlcpgList   list
 

Sets the misc structure in a document.

If doc is not a document, the InternalError function is called. The old misc structure is not deleted.

Parameters:
doc  the document to alter.
list  the new misc.

void xmlcpgsetDocumentProlog xmlcpgDocument   doc,
xmlcpgObject   obj
 

Sets the prolog structure in a document.

If doc is not a document, the InternalError function is called. The old prolog structure is not deleted.

Parameters:
doc  the document to alter.
obj  the new prolog.

void xmlcpgsetElementAttributes xmlcpgElement   obj,
xmlcpgList   val
 

Sets the attributes in an element.

If obj is not an element, the InternalError function is called. The old attributes are not deleted.

Parameters:
obj  the element to alter.
val  the new attributes.

void xmlcpgsetElementContent xmlcpgElement   obj,
xmlcpgObject   val
 

Sets the content in an element.

If obj is not an element, the InternalError function is called. The old content is not deleted.

Parameters:
obj  the element to alter.
val  the new content.

void xmlcpgsetElementDeclContentSpec xmlcpgElementDecl   obj,
xmlcpgObject   val
 

Sets the content specification in an elementdecl.

If obj is not an elementdecl, the InternalError function is called. The old content specification is not deleted.

Parameters:
obj  the elementdecl to alter.
val  the new content specification.

void xmlcpgsetElementDeclisExtern xmlcpgElementDecl   obj,
int    val
 

void xmlcpgsetElementDeclName xmlcpgElementDecl   obj,
xmlcpgString   s
 

Sets the name in an elementdecl.

If obj is not an elementdecl, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the elementdecl to alter.
s  the new name string.

void xmlcpgsetElementName xmlcpgElement   obj,
xmlcpgString   s
 

Sets the element name in a element.

If obj is not an element, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the element to alter.
s  the new name string.

void xmlcpgsetEntityRefName xmlcpgEntityRef   obj,
xmlcpgString   val
 

Sets the name in a entityref.

If obj is not a entityref, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the entityref to alter.
val  the new name.

void xmlcpgsetEntityValueValue xmlcpgEntityValue   obj,
xmlcpgString   val
 

Sets the value in a entityvalue.

If obj is not a entityvalue, the InternalError function is called. The old value is not deleted.

Parameters:
obj  the entityvalue to alter.
val  the new value.

void xmlcpgsetEnumerationNmTokens xmlcpgEnumeration   obj,
xmlcpgList   val
 

Sets the nmTokens in a enumeration.

If obj is not a enumeration, the InternalError function is called. The old nmTokens is not deleted.

Parameters:
obj  the enumeration to alter.
val  the new nmTokens.

void xmlcpgsetExternalIDId xmlcpgExternalID   obj,
xmlcpgObject   val
 

Sets the id in a externalid.

If obj is not a externalid, the InternalError function is called. The old id is not deleted.

Parameters:
obj  the externalid to alter.
val  the new id.

void xmlcpgsetExternalIDNdata xmlcpgExternalID   obj,
xmlcpgObject   val
 

Sets the ndata in a externalid.

If obj is not a externalid, the InternalError function is called. The old ndata is not deleted.

Parameters:
obj  the externalid to alter.
val  the new ndata.

void xmlcpgsetFixedAttribute xmlcpgFixed   obj,
xmlcpgString   val
 

Sets the attribute in a fixed.

If obj is not a fixed, the InternalError function is called. The old attribute is not deleted.

Parameters:
obj  the fixed to alter.
val  the new attribute.

void xmlcpgsetGEDeclEntityDef xmlcpgGEDecl   obj,
xmlcpgObject   val
 

Sets the entityDef in a gedecl.

If obj is not a gedecl, the InternalError function is called. The old entityDef is not deleted.

Parameters:
obj  the gedecl to alter.
val  the new entityDef.

void xmlcpgsetGEDeclIsExtern xmlcpgGEDecl   obj,
int    ext
 

void xmlcpgsetGEDeclName xmlcpgGEDecl   obj,
xmlcpgString   val
 

Sets the name in a gedecl.

If obj is not a gedecl, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the gedecl to alter.
val  the new name.

void xmlcpgsetNDataDeclName xmlcpgNDataDecl   obj,
xmlcpgString   val
 

Sets the name in a ndatadecl.

If obj is not a ndatadecl, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the ndatadecl to alter.
val  the new name.

void xmlcpgsetNotationDeclId xmlcpgNotationDecl   obj,
xmlcpgObject   val
 

Sets the id in a notationdecl.

If obj is not a notationdecl, the InternalError function is called. The old id is not deleted.

Parameters:
obj  the notationdecl to alter.
val  the new id.

void xmlcpgsetNotationDeclIsExtern xmlcpgNotationDecl   obj,
int    ext
 

Sets the id in a notationdecl.

If obj is not a notationdecl, the InternalError function is called. The old id is not deleted.

Parameters:
obj  the notationdecl to alter.
val  the new id.

void xmlcpgsetNotationDeclName xmlcpgNotationDecl   obj,
xmlcpgString   val
 

Sets the name in a notationdecl.

If obj is not a notationdecl, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the notationdecl to alter.
val  the new name.

void xmlcpgsetNotationTypeNames xmlcpgNotationType   obj,
xmlcpgList   val
 

Sets the names in a notationtype.

If obj is not a notationtype, the InternalError function is called. The old names is not deleted.

Parameters:
obj  the notationtype to alter.
val  the new names.

void xmlcpgsetPairHead xmlcpgPair   op,
xmlcpgObject   obj
 

Sets the head part of the object pair.

The old part is not deleted.

Parameters:
op  the object pair to modify.
obj  the object to put in op's head.

void xmlcpgsetPairTail xmlcpgPair   op,
xmlcpgObject   obj
 

Sets the tail part of the object pair.

The old part is not deleted.

Parameters:
op  the object pair to modify.
obj  the object to put in op's tail.

void xmlcpgsetPEDeclIsExtern xmlcpgPEDecl   obj,
int    ext
 

Sets the peDef in a pedecl.

If obj is not a pedecl, the InternalError function is called. The old peDef is not deleted.

Parameters:
obj  the pedecl to alter.
val  the new peDef.

void xmlcpgsetPEDeclName xmlcpgPEDecl   obj,
xmlcpgString   val
 

Sets the name in a pedecl.

If obj is not a pedecl, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the pedecl to alter.
val  the new name.

void xmlcpgsetPEDeclPeDef xmlcpgPEDecl   obj,
xmlcpgObject   val
 

Sets the peDef in a pedecl.

If obj is not a pedecl, the InternalError function is called. The old peDef is not deleted.

Parameters:
obj  the pedecl to alter.
val  the new peDef.

void xmlcpgsetPEReferenceName xmlcpgPEReference   obj,
xmlcpgString   s
 

Sets the peref name in a pereference.

If obj is not a pereference, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the pereference to alter.
s  the new name string.

void xmlcpgsetPIParameters xmlcpgPI   obj,
xmlcpgString   s
 

Sets the processing instruction parameters in a pi.

If obj is not a pi, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the pi to alter.
s  the new processing instruction parameters.

void xmlcpgsetPITarget xmlcpgPI   obj,
xmlcpgString   s
 

Sets the processing instruction target in a pi.

If obj is not a pi, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the pi to alter.
s  the new processing instruction target.

void xmlcpgsetPrologDtdDecl xmlcpgProlog   obj,
xmlcpgObject   val
 

Sets the dtd declaration in a prolog.

If obj is not a prolog, the InternalError function is called. The old dtd declaration is not deleted.

Parameters:
obj  the prolog to alter.
val  the new dtd declaration.

void xmlcpgsetPrologMisc1 xmlcpgProlog   obj,
xmlcpgList   val
 

Sets the first misc in a prolog.

If obj is not a prolog, the InternalError function is called. The old first misc is not deleted.

Parameters:
obj  the prolog to alter.
val  the new misc.

void xmlcpgsetPrologMisc2 xmlcpgProlog   obj,
xmlcpgList   val
 

Sets the second misc in a prolog.

If obj is not a prolog, the InternalError function is called. The old second misc is not deleted.

Parameters:
obj  the prolog to alter.
val  the new misc.

void xmlcpgsetPrologXmlDecl xmlcpgProlog   obj,
xmlcpgObject   val
 

Sets the xml declaration in a prolog.

If obj is not a prolog, the InternalError function is called. The old xml declaration is not deleted.

Parameters:
obj  the prolog to alter.
val  the new xml declaration.

void xmlcpgsetPublicExternalIDPublic xmlcpgPublicExternalID   obj,
xmlcpgString   val
 

Sets the public in a nonoexternalid.

If obj is not a nonoexternalid, the InternalError function is called. The old public is not deleted.

Parameters:
obj  the nonoexternalid to alter.
val  the new public.

void xmlcpgsetPublicExternalIDSystem xmlcpgPublicExternalID   obj,
xmlcpgString   val
 

Sets the system in a nonoexternalid.

If obj is not a nonoexternalid, the InternalError function is called. The old system is not deleted.

Parameters:
obj  the nonoexternalid to alter.
val  the new system.

void xmlcpgsetPublicIDName xmlcpgPublicID   obj,
xmlcpgString   val
 

Sets the name in a publicid.

If obj is not a publicid, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the publicid to alter.
val  the new name.

void xmlcpgsetStringStr xmlcpgString   obj,
char *    val
 

Sets the str in a string.

If obj is not a string, the InternalError function is called. The old str is not deleted.

Parameters:
obj  the string to alter.
val  the new str.

void xmlcpgsetSystemExternalIDName xmlcpgSystemExternalID   obj,
xmlcpgString   val
 

Sets the name in a systemexternalid.

If obj is not a systemexternalid, the InternalError function is called. The old name is not deleted.

Parameters:
obj  the systemexternalid to alter.
val  the new name.

xmlcpgObject* xmlcpgsetValue xmlcpgMapEntry   me,
xmlcpgObject   obj
 

Sets the value of a map entry.

The value is also changed in the map.

Parameters:
me  the map entry.
obj  the new map entry value.

void xmlcpgsetXMLDeclEncoding xmlcpgXMLDecl   obj,
xmlcpgString   s
 

Sets the encoding string in a xmldecl.

If obj is not a xmldecl, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the xmldecl to alter.
s  the new encoding string.

void xmlcpgsetXMLDeclStandalone xmlcpgXMLDecl   obj,
int    s
 

Sets the standalone value in a xmldecl.

If obj is not a xmldecl, the InternalError function is called.

Parameters:
obj  the xmldecl to alter.
s  the new standalone value.

void xmlcpgsetXMLDeclVersion xmlcpgXMLDecl   obj,
xmlcpgString   s
 

Sets the version string in a xmldecl.

If obj is not a xmldecl, the InternalError function is called. The old character string is not deleted.

Parameters:
obj  the xmldecl to alter.
s  the new version string.

unsigned int xmlcpgsize const xmlcpgObject   obj
 

Gets the size of the collection.

Parameters:
obj  the collection object
Returns:
the size of the collection or 0 if not applicable.

xmlcpgString* xmlcpgtrimString xmlcpgString   obj
 

Returns a copy of the string, with leading and trailing whitespace omitted.

Whitespace is defined as a (x20) character, carriage return, line feed, or tab.

Parameters:
obj  the string object.
Returns:
the new trimmed string.


Variable Documentation

xmlcpgObject* xmlcpgast
 

The abstract syntax tree.

FILE* xmlcpgin
 

int xmlcpgLineNo = 1
 

int xmlcpgUserOptions = 0
 

User option variable which is set by the program parameters.


Generated on Tue Nov 11 14:59:53 2003 for xmlcpg by doxygen1.2.18