0

I need to store a user created folder structure to an xml file . I think allowing that using a tree strucure is a best option .Iwill be using java and jsTree for this . When user saves data I will be passing all options to a jsp file as json and save that as xml file .

Any one can suggest me if there is any better approach ?

I hope that I am posting this question in right place .

Pit Digger
  • 9,618
  • 23
  • 78
  • 122

1 Answers1

1

Depending on how jsTree works (I haven't looked at it much), it may be just as easy to serialize everything straight to XML instead of to JSON. That way you avoid the hassle of converting from JSON to XML in the Java code. If you go this route, you may even be able to avoid the server-side processing at all, and instead generate the file directly from the javascript. Check out this question for options on accomplishing this.

Other than that, seems like a good plan to me.

Community
  • 1
  • 1
Joe K
  • 18,204
  • 2
  • 36
  • 58