I want to make dynamic xml output in the following way.
<process> <sequence> ... </sequence> <flow> ... </flow> <sequence> ... </sequence> <flow> ... </flow> </process>The question is How can I defined in the Schema using SimpleXMl?
Now, it looks in this way
@Root
public class Process {
@ElementList(inline=true, required = false)
private List<Sequences> sequence;
@ElementList(inline=true, required = false)
private List<Flows> flow;
}
According this schema it always generates XML in following format:<process> <sequence> ... </sequence> <sequence> ... </sequence> <flow> ... </flow> <flow> ... </flow> </process>What should I do? Thank you.


Sign In
Create Account

Back to top









