Starlink-AST
view release on metacpan or search on metacpan
ast/src/xml.h view on Meta::CPAN
int id; /* A unique id for this object. */
};
/* XmlAttribute structure. */
/* ----------------------- */
/* Describes an XML attribute */
struct AstXmlAttribute {
AstXmlObject obj; /* General information for this XmlObject */
char *name; /* The name of the attribute */
char *value; /* Attribute value */
char *prefix; /* Namespace prefix for this attribute */
};
/* XmlNamespace structure. */
/* ----------------------- */
/* Describes an XML namespace definition */
struct AstXmlNamespace {
AstXmlObject obj; /* General information for this XmlObject */
char *prefix; /* Namespace prefix */
char *uri; /* Namespace URI */
};
/* XmlElement structure. */
/* --------------------- */
/* Describes an XML element */
struct AstXmlElement {
AstXmlObject obj; /* General information for this XmlObject */
char *name; /* The type (name) of the element */
AstXmlAttribute **attrs; /* Ptr. to list of attributes of the element */
int nattr; /* Number of attributes in the above list */
AstXmlContentItem **items; /* Ptr. to list of items in the element's content */
int nitem; /* Number of items in above list */
char *defns; /* Default Namespace URI for element content */
char *prefix; /* Namespace prefix for this element */
AstXmlNamespace **nsprefs; /* Ptr. to list of new Namespaces defined by this element */
int nnspref; /* Number of Namespaces in above list */
int complete; /* Have the contents of the element been read? */
};
/* XmlBlack structure. */
/* ---------------------- */
/* Describes character data containing at least one non-blank character. */
struct AstXmlBlack {
AstXmlObject obj; /* General information for this XmlObject */
char *text; /* The character data */
};
/* XmlWhite structure. */
/* ------------------- */
/* Describes character data containing no one non-blank characters. */
struct AstXmlWhite {
AstXmlObject obj; /* General information for this XmlObject */
char *text; /* The white character data */
};
/* XmlCDataSection structure. */
/* ----------------------- */
/* Describes an XML CDATA section */
struct AstXmlCDataSection {
AstXmlObject obj; /* General information for this XmlObject */
char *text; /* The text of the cdata section */
};
/* XmlComment structure. */
/* --------------------- */
/* Describes an XML CDATA section */
struct AstXmlComment {
AstXmlObject obj; /* General information for this XmlObject */
char *text; /* The text of the comment */
};
/* XmlPI structure. */
/* ---------------- */
/* Describes an XML processing instruction */
struct AstXmlPI {
AstXmlObject obj; /* General information for this XmlObject */
char *target; /* The target of the processing instruction */
char *text; /* The text of the processing instruction */
};
/* XmlDocument structure. */
/* ---------------------- */
/* Describes an entire XML document */
struct AstXmlDocument {
AstXmlObject obj; /* General information for this XmlObject */
AstXmlPrologue *prolog; /* Pointer to document prologue */
AstXmlElement *root; /* Pointer to root element */
AstXmlMiscItem **epilog; /* List of XmlObjects forming the document epilogue */
int nepi; /* No of XmlObjects pointers in "epilogue" */
AstXmlElement *current; /* Pointer to element being read */
};
/* XmlPrologue structure. */
/* ---------------------- */
/* Describes an XML document prologue */
struct AstXmlPrologue {
AstXmlObject obj; /* General information for this XmlObject */
AstXmlDeclPI *xmldecl; /* Pointer to XML declaration PI */
AstXmlMiscItem **misc1; /* Group of of miscalleneous XmlObjects pointers */
int nmisc1; /* No of XmlObjects pointers in "misc1" */
AstXmlDTDec *dtdec; /* Pointer to Document Type Declaration */
AstXmlMiscItem **misc2; /* Group of of miscalleneous XmlObjects pointers */
int nmisc2; /* No of XmlObjects pointers in "misc2" */
};
/* XmlDecPI structure. */
/* ------------------- */
/* Describes an XML declaration PI */
struct AstXmlDeclPI {
AstXmlObject obj; /* General information for this XmlObject */
char *text; /* The text of the XML declaration */
};
/* XmlDTDec structure. */
/* ------------------- */
/* Describes a data type declaration */
struct AstXmlDTDec {
AstXmlObject obj; /* General information for this XmlObject */
char *name; /* Document type name */
char *external; /* External ID */
char *internal; /* Internal declarations */
( run in 0.967 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )