scala - XML values gets shifted -


i'm constructing xml below format:

<mainentity a={object.value} b={object.value0.ornull} c={object.value1.ornull} d={object.value2.ornull}></mainentity> 

input before construction: 1) read data nosql db, 2) convert object , construct entity 3) write file.

question: in very rare scenario's, see mainentity has 4 attributes. get's populated of time correctly. in scenarios, value of "b" attribute spilled "c" attribute , "c" gets populated in "d" , on!!!!

if try reproduce same, doesn't happen.

eg:

expected:  <mainentity a="abc" b="def" c="123" d="abc"></mainentity>  in scenarios:  <mainentity a="abc" b="d" c="ef" d="123"></mainentity> 

has encountered this? can throw lights on this?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -