Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

NetBeans - using an XML as input instead of DB

  • 08-03-2011 06:32PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 8,012 ✭✭✭
    Something about sandwiches


    Hi,

    I'm new to using NetBeans. I am able to get a WebApplication up and running using a sample database and produce XML from it (RESTful web service).

    Now I'm looking to use an XML instead of the database. Is there a simple way of doing this? For the regular database I just right clicked
    -project name -> New -> RESTful web serice from Entity Class
    or
    -project name -> New -> Entity Class from database.

    Neither option allow for using an XML file.

    Any help appreciated.
    thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 378 ✭✭sicruise


    You probably want to look into JAX-B for marshalling and unmarshalling XML. You can create an XSD to describe your data and generate classes or you can annotate your entities yourself.


Advertisement