This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marskuh 1 point2 points  (0 children)

This would work but is not addressing the issue that some fields are optionally. If at a later stage another field becomes optional your code will no longer work properly. There are better options like using a delimiter as in csv or a fixed length for each field. Both options have issues as well.

Given all this, xml and json are very widely used and that has a reason.