Thursday, December 23, 2010

jBase Infobaisc Function XMLTODYN

Converts the XML to a dynamic array using the optional XSL to transform. see also DYNTOXML

Command Syntax

XMLTODYN(XML,XSL,result)

Syntax Elements

Array = XMLTODYN(XML,XSL,result)
If result = 0 Array will contain a dynamic array built from the xml / xsl
If result <> 0, Array will contain an error message.

There is no requirement for xsl if you are reconverting from generic xml to dynarray.

Example

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

Output

Tom Dick Harry
If passing a stylesheet in the second parameter, it performs a transform to give a different format of the array.

XML Contents



Tom
Dick
Harry

Example 2

a = XMLTODYN(xml,xsl,rc)
CRT CHANGE(a,@AM," ")

XSL Contents








1



1



0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems