XMLStatus()

Syntax

Result = XMLStatus(#XML)
Description
Returns the status of the last parsing operation done on this XML tree (using LoadXML() or CatchXML()). This function should be called after every LoadXML() or CatchXML() call to ensure that the parsing succeeded. A string representation of the parsing status (ie a readable error-message) is returned by the XMLError() function.

Parameters

#XML The XML to use.

Return value

A value of zero (#PB_XML_Success) indicates a successful parsing, all other values indicate various error conditions.

The following returnvalues are possible:
  #PB_XML_Success             : no error
  #PB_XML_NoMemory            : out of memory
  #PB_XML_Syntax              : syntax error
  #PB_XML_NoElements          : no element found
  #PB_XML_InvalidToken        : not well-formed (invalid token)
  #PB_XML_UnclosedToken       : unclosed token
  #PB_XML_PartialCharacter    : partial character
  #PB_XML_TagMismatch         : mismatched tag
  #PB_XML_DublicateAttribute  : duplicate attribute
  #PB_XML_JunkAfterDocElement : junk after document element
  #PB_XML_ParamEntityRef      : illegal parameter entity reference
  #PB_XML_UndefinedEntity     : undefined entity
  #PB_XML_RecursiveEntityRef  : recursive entity reference
  #PB_XML_AsyncEntity         : asynchronous entity
  #PB_XML_BadCharacterRef     : reference to invalid character number
  #PB_XML_BinaryEntityRef     : reference to binary entity
  #PB_XML_AttributeExternalEntityRef: reference to external entity in attribute
  #PB_XML_MisplacedXML        : XML or text declaration not at start of entity
  #PB_XML_UnknownEncoding     : unknown encoding
  #PB_XML_IncorrectEncoding   : encoding specified in XML declaration is incorrect
  #PB_XML_UnclosedCDataSection: unclosed CDATA section
  #PB_XML_ExternalEntityHandling: error in processing external entity reference
  #PB_XML_NotStandalone       : document is not standalone
  #PB_XML_UnexpectedState     : unexpected parser state
  #PB_XML_EntityDeclaredInPE  : entity declared in parameter entity
  #PB_XML_FeatureRequiresDTD  : requested feature requires XML_DTD support in Expat
  #PB_XML_CantChangeFeatures  : cannot change setting once parsing has begun
  #PB_XML_UnboundPrefix       : unbound prefix
  #PB_XML_UndeclaringPrefix   : must not undeclare prefix
  #PB_XML_IncompletePE        : incomplete markup in parameter entity
  #PB_XML_XMLDeclaration      : XML declaration not well-formed
  #PB_XML_TextDeclaration     : text declaration not well-formed
  #PB_XML_PublicID            : illegal character(s) in public id
  #PB_XML_Suspended           : parser suspended
  #PB_XML_NotSuspended        : parser not suspended
  #PB_XML_Aborted             : parsing aborted
  #PB_XML_Finished            : parsing finished
  #PB_XML_SuspendedPE         : cannot suspend in external parameter entity
  #PB_XML_ReservedPrefixXML   : reserved prefix (xml) must not be undeclared or bound to another namespace name
  #PB_XML_ReservedPrefixXMLNS : reserved prefix (xmlns) must not be declared or undeclared
  #PB_XML_ReservedNamespaceURI: prefix must not be bound to one of the reserved namespace names

Supported OS

All

<- XMLNodeType() - XML Index