Kari wrote:
> I have to read a lot of data from databases
> and put them in a xml-file
>
> Has anyone som xml creator to recomend,
> which I can activate with my function?
I don't think you need a library to just write XML to a file - basically
fopen/fwrite/fclose should do the job... to get an idea, you could use a
function similar to this to create an XML "record":
FUNCTION GetXMLRec(lEncode, aFields)
LOCAL cRet, nI, nLen
DEFAULT lEncode TO .F.
DEFAULT aFields TO dbStruct()
nLen := LEN(aFields)
cRet := '<record id="' + ALLTRIM(FIELD->ID) + '">'
FOR nI := 1 TO nLen
cRet += XmlField(aFields[nI,DBS_NAME],,, lEncode)
NEXT
cRet += "</record>"
RETURN cRet
But of course the actual structure depends on your needs or how the XML is
defined.
Thomas