Enumerations



CFXMLDataTypeCode

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.

Constants

NameDescription
kCFXMLNodeTypeDocumentdata string is NULL; additional info pointer points to a CFXMLDocumentInfo.
kCFXMLNodeTypeElementdata string is the tag name; additional info pointer points to a CFXMLElementInfo.
kCFXMLNodeTypeAttributedata string is NULL; additionalData is NULL.
kCFXMLNodeTypeProcessingInstructiondata string is the name of the target; additional info pointer points to a CFXMLProcessingInstructionInfo.
kCFXMLNodeTypeCommentdata string is the text of the comment; additional info is NULL.
kCFXMLNodeTypeTextdata string is the text's contents; additional info NULL.
kCFXMLNodeTypeCDATASectiondata string is text of the CDATA; additional info NULL.
kCFXMLNodeTypeDocumentFragmentdata string is NULL; additional info is NULL.
kCFXMLNodeTypeEntitydata string the name of the entity; additional info pointer points to a CFXMLEntityInfo.
kCFXMLNodeTypeEntityReferencedata string is the name of the referenced entity; additional info pointer points to a CFXMLEntityReferenceInfo.
kCFXMLNodeTypeDocumentTypedata string is a name given as top-level element; additional info pointer points to a CFXMLDocumentTypeInfo.
kCFXMLNodeTypeWhitespacedata string is the text of the whitespace; additional info pointer is NULL.
kCFXMLNodeTypeNotationdata string is the notation name; additional info pointer points to a CFXMLNotationInfo.
kCFXMLNodeTypeElementTypeDeclarationdata string is the tag name; additional info pointer points to a CFXMLElementTypeDeclarationInfo.
kCFXMLNodeTypeAttributeListDeclarationdata string is the tag name; additional info pointer points to a CFXMLAttributeListDeclarationInfo.

CFXMLEntityTypeCode

typedef  enum  {
  kCFXMLEntityTypeParameter,  
  kCFXMLEntityTypeParsedInternal,
  kCFXMLEntityTypeParsedExternal,
  kCFXMLEntityTypeUnparsed,
  kCFXMLEntityTypeCharacter
}  CFXMLEntityTypeCode;

These codes are used with the CFXMLEntityInfo structure.

Constants

NameDescription
kCFXMLEntityTypeParameterImplies parsed, internal.

© 2000 Apple Computer, Inc. — (Last Updated 7/20/2000)