jsonx

Need help in writing common xsl

佐手、 提交于 2019-12-14 03:35:31
问题 I have to generate XMl output. It should display arrays as shown later. I am unable to render the arrays in the proper way. Input XML: <accounts> <displayOrdinal>0</displayOrdinal> <name>String</name> <account> <accountNumber>String</accountNumber> <name>String</name> <balance> <balanceAmount>0.0</balanceAmount> </balance> <balance> <balanceAmount>0.0</balanceAmount> </balance> <properties> <displayOrdinal>0</displayOrdinal> </properties> <properties> <displayOrdinal>0</displayOrdinal> <

Need General xslt for XML to JSONX [duplicate]

柔情痞子 提交于 2019-12-11 11:19:36
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: convert xml to jsonx using xslt Can anyone help me out in getting the below with an array..I have to generate the generalised xsl.. Input XML: <accounts> <displayOrdinal>0</displayOrdinal> <name>String</name> <account> <accountNumber>String</accountNumber> <name>String</name> <balance> <balanceAmount>0.0</balanceAmount> </balance> <balance> <balanceAmount>0.0</balanceAmount> </balance> <properties>

convert xml to jsonx using xslt

大兔子大兔子 提交于 2019-11-29 12:04:28
Can anyone help me out in getting the below with an array..I have to generate the generalised xsl.. Input XML: <Login> <Groups> <Group> <Name>john</Name> <Password/> </Group> <Group> <Name>john</Name> <Password/> </Group> </Groups> </Login> Output: <json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <json:object name="Login"> <json:object name="Groups"> <json:array name="Group"> <json:object> <json:string name="Name">john</json:string> <json:string name="Password"/> </json:object> <json:object> <json:string name="Name">john<

convert xml to jsonx using xslt

馋奶兔 提交于 2019-11-28 05:39:59
问题 Can anyone help me out in getting the below with an array..I have to generate the generalised xsl.. Input XML: <Login> <Groups> <Group> <Name>john</Name> <Password/> </Group> <Group> <Name>john</Name> <Password/> </Group> </Groups> </Login> Output: <json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <json:object name="Login"> <json:object name="Groups"> <json:array name="Group"> <json:object> <json:string name="Name">john<