Wednesday, December 22, 2010

jBase Infobaisc Function DYNTOXML

Convert the array to XML using the optimal xsl to transform. see also XMLTODYN

Command Syntax

DYNTOXML (array,xsl,result)

Syntax Elements

XML = (DYNTOXML(array,””,result)
Takes the contents of the dynamic array held in an array, and returns a generic XML representation of that array or an error.

Example

a = "Tom" : @AM : "Dick" : @AM : "Harry"
xml = DYNTOXML(a,"",result)
CRT xml

Output



Tom
Dick
Harry

If a style sheet is passed in the second parameter, it performs a transform to give a different format of XML.

Example

xml = DYNTOXML(a,xsl,result)
CRT xml

Output



Tom
Dick
Harry

XSL Code















1 comments:

Anonymous said...

Can you post more details. I didn't arrived to reproduce the example that works with XSL.

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems