typedef struct { /* This is expected to change in future versions */ CFStringRef attributeName; CFStringRef typeString; CFStringRef defaultString; } CFXMLAttributeDeclarationInfo;
This structure is part of the definition of the CFXMLAttributeListDeclarationInfo structure.
Name Description attributeName The name of the attribute. typeString Describes the declaration of a single attribute. defaultString The attribute's default value.
typedef struct { CFIndex numberOfAttributes; CFXMLAttributeDeclarationInfo *attributes; } CFXMLAttributeListDeclarationInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters an attribute declaration in the DTD. Use the function CFXMLNodeGetInfoPtr to obtain the pointer to this structure.
Name Description numberOfAttributes The number of attributes in the array. attributes An array of attributes.
typedef struct { CFURLRef sourceURL; CFStringEncoding encoding; } CFXMLDocumentInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters the XML declaration. Use the function CFXMLNodeGetInfoPtr to obtain the pointer.
Name Description sourceURL The source URL of the XML document. encoding The text encoding of the XML document.
typedef struct { CFXMLExternalID externalID; } CFXMLDocumentTypeInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters the the beginning of the DTD. Use the function CFXMLNodeGetInfoPtr to obtain a pointer to this structure.
Name Description externalID The external ID of the DTD.
typedef struct { CFDictionaryRef attributes; CFArrayRef attributeOrder; Boolean isEmpty; } CFXMLElementInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters an element containing attributes. Use the function CFXMLNodeGetInfoPtr to obtain the pointer.
Name Description attributes The dictionary of attribute values. attributeOrder An array specifying the order in which the attributes appeared in the XML document. isEmpty A flag indicating whether the element was expressed in closed form.
typedef struct { /* This is expected to change in future versions */ CFStringRef contentDescription; } CFXMLElementTypeDeclarationInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters and element type declaration. Use the function CFXMLNodeGetInfoPtr to obtain a pointer to this structure.
Name Description contentDescription A textual description of the element type.
typedef struct { CFXMLEntityTypeCode entityType; CFStringRef replacementText; CFXMLExternalID entityID; CFStringRef notationName; } CFXMLEntityInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters an entity declaration. Use the function CFXMLNodeGetInfoPtr to obtain a pointer to this structure.
Name Description entityType The entity type code. replacementText NULL if entityType is external or unparsed, otherwise the text that the entity should be replaced with. entityID entityID.systemID will be NULL if entityType is internal. notationName NULL if entityType is parsed.
typedef struct { CFXMLEntityTypeCode entityType; } CFXMLEntityReferenceInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters an entity reference. Use the function CFXMLNodeGetInfoPtr to obtain the pointer.
Name Description entityType The entity type code.
typedef struct { CFURLRef systemID; CFStringRef publicID; } CFXMLExternalID;
This structure is part of the definition of the CFXMLDocumentTypeInfo, CFXMLNotationInfo, and CFXMLEntityInfo structures.
Name Description systemID The systemID URL. publicID The publicID string.
typedef const struct __CFXMLNode * CFXMLNodeRef;
typedef struct { CFXMLExternalID externalID; } CFXMLNotationInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters . Use the function CFXMLNodeGetInfoPtr to obtain a pointer to this structure.
Name Description externalID The external ID of the notation.
typedef struct { CFStringRef dataString; } CFXMLProcessingInstructionInfo;
A pointer to this structure is included in the CFXMLNode passed to your application when the parser encounters a processing instruction. Use the function CFXMLNodeGetInfoPtr to obtain the pointer.
Name Description dataString The text of the processing instruction.
typedef CFTreeRef CFXMLTreeRef;
When using the high-level parser API, XML data is parsed to a special CFTree which is simply a CFXMLTree with known contexts and callbacks. The nodes of a CFXMLTree may be queried using the basic CFTree interface (to report on the structure of the tree itself), or via the functions here (to report on the XML contents of the nodes).
© 2000 Apple Computer, Inc. (Last Updated 7/20/2000)