×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    21

    Accessing Different XML files

    Hi All,

    I am designing a mobile application and I have different xml files that I want users to work with. The scenarios is that the application present the user with the option to select and depending on the choice that a user select I want to display the xml file that corresponds to the option that a user selects. I actually have the code that will implementing the display of a xml file but how to load each xml based on the selcected option is the problem.

    Can someone explain to me how to go about doing this? Thank you.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Accessing Different XML files

    Quote Originally Posted by olasamuel View Post
    Hi All,

    I am designing a mobile application and I have different xml files that I want users to work with. The scenarios is that the application present the user with the option to select and depending on the choice that a user select I want to display the xml file that corresponds to the option that a user selects. I actually have the code that will implementing the display of a xml file but how to load each xml based on the selcected option is the problem.

    Can someone explain to me how to go about doing this? Thank you.
    Hi,
    You can put the all files on server and then accessing from there.This is the common practice..
    You can access the same and then can use in your application.

    is this make sense?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    21

    Re: Accessing Different XML files

    Thanks a lot for your response. However, I thought of that as well but the problem I am having is that I don't want this to cost money and I don't have a base station. Is n't there anyway to do this? Thanks again

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Accessing Different XML files

    Hi olasamuel,
    1. show two choice lists For example I am assuming those labels of the choices are
    ReadXML1
    ReadXML2
    with command readXML

    If the user selected the ReadXML1 and click the resadXML it will come to command action in that command action
    //get the label of the choice
    String label = get sleeted option label;
    if("ReadXML1".equals(label)){
    //Read the XML1 And show to the user
    InputStream in = this.getClass().getResourceAsStream(XML1)
    }else if("ReadXML2".equals(label)){
    //Read the XML2 and show
    InputStream in = this.getClass().getResourceAsStream(XML2)
    }

Similar Threads

  1. Accessing XML
    By nick_santa83 in forum Python
    Replies: 2
    Last Post: 2007-12-15, 08:33
  2. InConsistency in Uploading video files
    By kumar_sai123 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-11-08, 10:14
  3. Replies: 5
    Last Post: 2007-09-25, 08:12
  4. Show warning when accessing to files API.
    By ramis55 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-08-09, 11:01
  5. Accessing files
    By salmira in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-29, 15:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •