XmltoStruct with multi occurrences
Hallo,
I want to transform a xml to a json structure using xmlToStruct and structToJson. The xml contains multiple occurrences of an entity. But I didn't use a /schema swith so all attributes are elements. Converting to json gives an invalid result because de struct doesn't have tags as 'array' and 'object'. With a /schema and a schemaList parameter xmlToStruct is probably able to add the required tags. Has anyone a working example of a schemaList parameter?
See my example in the appendix.
Or is the solution different?
Greets, Johan Aalenhuis
------------------------------
Johan Aalenhuis
Crv B.V.
Arnhem NL
------------------------------
I want to transform a xml to a json structure using xmlToStruct and structToJson. The xml contains multiple occurrences of an entity. But I didn't use a /schema swith so all attributes are elements. Converting to json gives an invalid result because de struct doesn't have tags as 'array' and 'object'. With a /schema and a schemaList parameter xmlToStruct is probably able to add the required tags. Has anyone a working example of a schemaList parameter?
See my example in the appendix.
Or is the solution different?
Greets, Johan Aalenhuis
------------------------------
Johan Aalenhuis
Crv B.V.
Arnhem NL
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.




