RDD

FieldXml()

Return a field value as XML Schema text

Syntax

Signature
FieldXml( cFieldName | nFieldPos ) --> cValue

Arguments

Field name or one-based field position.

Return value

Field value formatted as text suitable for XML Schema content.

Description

FieldXml() converts the selected field value to text. Character values are returned without trailing spaces; dates use ISO format.

Notes

The result is value text, not an XML element and is not XML-escaped.

Example

FieldXml.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "XML value: " + FieldXml( "NAME" ) )
   DbCloseArea()

RETURN

Output

See also