I am getting XML in some other format using java web serivces.How could a customize code so that the format in which the grid support automaticaely get parseable in , format.is It any way to achieve throughJSON
dhtmlx.com/docs/products/dhtmlxG … tloadtypes
The link you send me is not fulfilling the requirement.My requirement is ata will be available in XML in any format through web services.Lets say below mention format:
"<recipe name=“bread” prep_time=“5 mins” cook_time=“3 hours”> Basic bread <ingredient amount=“8” unit=“dL”>Flour <ingredient amount=“10” unit=“grams”>Yeast <ingredient amount=“4” unit=“dL” state=“warm”>Water <ingredient amount=“1” unit=“teaspoon”>Salt Mix all ingredients together. Knead thoroughly. Cover with a cloth, and leave for one hour in warm room. Knead again. Place in a bread baking tin. Cover with a cloth, and leave for one hour in warm room. Bake in the oven at 180(degrees)C for 30 minutes. ";
Now I have to change into data grid support format.i.e rows-cell style…so I need to make customize code not only for the above mention XML.I should right some generic code which should support all forms of XML data whether Tree Structure …simple data.Please let me know.Its possible to right generic function which can support all forms of XML formats.
You can use three-steps loading process
a) use dhtmlxAjax to fetch xml in your custom format to the client side
b) transform it to the necessary format ( xslt transformation through the same dhtmlxAjax object is possible )
c) load grid from result of conversion ( grid.parse )
Can you please give me sample code.
xml_string = loader.doXSLTransToString(xslDoc,loader.xmlDoc)
I have tried sample code but getting error:
xml_string = loader.doXSLTransToString(”<xsl:stylesheet version=“1.0” xmlns:xsl="http://www.w3.org/1999/XSL/Transform"></xsl:stylesheet>",loader.xmlDoc)
Please let me know where I m doing a mistake
Ajax loads data from server and get() method requires path to xml file (or to server-side page that genarates xml stream): dhtmlxAjax(“some.xml”,handler);
You’ve tried to use get method with xml string instead of file. You can create xmlObject from the xml string and then using xsl tranformation to load data to the grid.
A ready solution for transformation can be done only by additional fee. If you are insterested in it, please contact us at firstname.lastname@example.org
Cisco is using licensed version only.So It will be helpful,if you send me the proper solution at this mail id: email@example.com.