typedef enum { kCFXMLNodeTypeDocument = 1, kCFXMLNodeTypeElement = 2, kCFXMLNodeTypeAttribute = 3, kCFXMLNodeTypeProcessingInstruction = 4, kCFXMLNodeTypeComment = 5, kCFXMLNodeTypeText = 6, kCFXMLNodeTypeCDATASection = 7, kCFXMLNodeTypeDocumentFragment = 8, kCFXMLNodeTypeEntity = 9, kCFXMLNodeTypeEntityReference = 10, kCFXMLNodeTypeDocumentType = 11, kCFXMLNodeTypeWhitespace = 12, kCFXMLNodeTypeNotation = 13, kCFXMLNodeTypeElementTypeDeclaration = 14, kCFXMLNodeTypeAttributeListDeclaration = 15 } CFXMLNodeTypeCode;
When the parser encounters a new XML structure, its data type and contents are placed in a CFXMLNode.
Name Description kCFXMLNodeTypeDocument data string is NULL; additional info pointer points to a CFXMLDocumentInfo. kCFXMLNodeTypeElement data string is the tag name; additional info pointer points to a CFXMLElementInfo. kCFXMLNodeTypeAttribute data string is NULL; additionalData is NULL. kCFXMLNodeTypeProcessingInstruction data string is the name of the target; additional info pointer points to a CFXMLProcessingInstructionInfo. kCFXMLNodeTypeComment data string is the text of the comment; additional info is NULL. kCFXMLNodeTypeText data string is the text's contents; additional info NULL. kCFXMLNodeTypeCDATASection data string is text of the CDATA; additional info NULL. kCFXMLNodeTypeDocumentFragment data string is NULL; additional info is NULL. kCFXMLNodeTypeEntity data string the name of the entity; additional info pointer points to a CFXMLEntityInfo. kCFXMLNodeTypeEntityReference data string is the name of the referenced entity; additional info pointer points to a CFXMLEntityReferenceInfo. kCFXMLNodeTypeDocumentType data string is a name given as top-level element; additional info pointer points to a CFXMLDocumentTypeInfo. kCFXMLNodeTypeWhitespace data string is the text of the whitespace; additional info pointer is NULL. kCFXMLNodeTypeNotation data string is the notation name; additional info pointer points to a CFXMLNotationInfo. kCFXMLNodeTypeElementTypeDeclaration data string is the tag name; additional info pointer points to a CFXMLElementTypeDeclarationInfo. kCFXMLNodeTypeAttributeListDeclaration data string is the tag name; additional info pointer points to a CFXMLAttributeListDeclarationInfo.
typedef enum { kCFXMLEntityTypeParameter, kCFXMLEntityTypeParsedInternal, kCFXMLEntityTypeParsedExternal, kCFXMLEntityTypeUnparsed, kCFXMLEntityTypeCharacter } CFXMLEntityTypeCode;
These codes are used with the CFXMLEntityInfo structure.
Name Description kCFXMLEntityTypeParameter Implies parsed, internal.
© 2000 Apple Computer, Inc. (Last Updated 7/20/2000)