ajxml.c

Datatypes:
AjPXml Xml data
none Miscellaneous functions


Datatype: AjPXml

Function is for manipulating xml data objects

Sections:
constructorsConstructors
Xml data destructorsDestructors
CastsCasts
xml data modifiersModifiers


AjPXml: constructors

Constructors

Functions:
ajXmlNewXml data constructor


Function ajXmlNew

Xml data constructor

Prototype

AjPXml ajXmlNew (
      void
);

TypeNameRead/WriteDescription
AjPXml RETURNNew object

In release 6.5.0


AjPXml: Xml data destructors

Destruction destroys all internal data structures and frees the memory allocated for the xml data object.

Functions:
ajXmlDelXml data destructor


Function ajXmlDel

Xml data destructor

Prototype

void ajXmlDel (
      AjPXml* Pxml
);

TypeNameRead/WriteDescription
AjPXml*PxmlDeleteXml data object to delete
void RETURN

In release 6.5.0


AjPXml: Casts

Return values from a xml data object

Functions:
ajXmlGetDbReturn the database name
ajXmlGetEntryReturn the full text
ajXmlGetIdReturn the identifier
ajXmlGetQryCReturns the query string of a xml data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.
ajXmlGetQrySReturns the query string of a xml data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.


Function ajXmlGetDb

Return the database name

Prototype

const AjPStr ajXmlGetDb (
      const AjPXml xml
);

TypeNameRead/WriteDescription
const AjPXmlxmlInputXml
const AjPStr RETURNDatabase name

In release 6.5.0


Function ajXmlGetEntry

Return the full text

Prototype

const AjPStr ajXmlGetEntry (
      const AjPXml xml
);

TypeNameRead/WriteDescription
const AjPXmlxmlInputXML entry
const AjPStr RETURNReturned full text

From EMBOSS 6.6.0


Function ajXmlGetId

Return the identifier

Prototype

const AjPStr ajXmlGetId (
      const AjPXml xml
);

TypeNameRead/WriteDescription
const AjPXmlxmlInputXml
const AjPStr RETURNReturned id

In release 6.5.0


Function ajXmlGetQryC

Returns the query string of a xml data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const char* ajXmlGetQryC (
      const AjPXml xml
);

TypeNameRead/WriteDescription
const AjPXmlxmlInputXml data object.
const char* RETURNQuery as a character string.

In release 6.5.0


Function ajXmlGetQryS

Returns the query string of a xml data object. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const AjPStr ajXmlGetQryS (
      const AjPXml xml
);

TypeNameRead/WriteDescription
const AjPXmlxmlInputXml data object.
const AjPStr RETURNQuery as a string.

In release 6.5.0


AjPXml: xml data modifiers

Xml data modifiers

Functions:
ajXmlClearResets all data for a xml data object so that it can be reused.


Function ajXmlClear

Resets all data for a xml data object so that it can be reused.

Prototype

void ajXmlClear (
      AjPXml xml
);

TypeNameRead/WriteDescription
AjPXmlxmlModifyXml data object
void RETURN

In release 6.5.0


Datatype: none

Functions to initialise and clean up internals

Sections:
exitMiscellaneous


Section: exit

Functions called on exit from the program by ajExit to do any necessary cleanup and to report internal statistics to the debug file

Functions:
ajXmlExitCleans up xml processing internal memory


Function ajXmlExit

Cleans up xml processing internal memory

Prototype

void ajXmlExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

In release 6.5.0