Magic User Group

Magic Wiki-Wakka : GenerateUTFXMLFile

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register

How to Generate an UTF-8 XML-file


minimum version : Magic 9.4 SP1

However there is a Form-property "XML Output" when doing a HTML-Merge, it doesn't always replace the special characters in an XML-file.
The following program does it.

Task properties: Batch
EndTask: Yes/After


The record main will look like this:
Select Parameter i-XML Filename  "A"  Alpha 160      

Select Virtual   v-Blob          "B"  Blob               


The record suffix will look like this:
Update B   Expr: File2Blb (Translate (A))
Update B   Expr: UTF8FromAnsi (B)
Evaluate   Expr: Blb2File (B,A)


Remarks: The XML-file must be closed before executing this program!

regards
Frank Van Herreweghe


Category
CategoryHowTo

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.0447 seconds