Results 1 to 5 of 5
  1. #1
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,319
    Points
    9,420
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,319
    Points
    9,420
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default Programming a live updated 7 day EPG

    Hey guys, I'm working on an EPG as part of an assignment, it's ruining me as we haven't been taught anything extra from the basics and part of the citeria is to make it use XMLTV files to load in the data, is there anyone that could hit me up to give a few pointers in the right direction?

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  2. #2
    Moderator chewtoys's Avatar
    Join Date
    Jun 2013
    Posts
    2,349
    Points
    3,395
         User Info     Contact     Gamer ID
    Join Date
    Jun 2013
    Posts
    2,349
    Points
    3,395

    Default

    Here you go bud, these sites should help you out in future for most thing as well.

    http://google.com/
    http://duckduckgo.com/
    http://yahoo.com/
    http://bing.com/

    0 Not allowed! Not allowed!

  3. #3

    Retired Prophet
    ToxicJew.'s Avatar
    Join Date
    Mar 2011
    Location
    S̢͎̳̞̲͈̪̳̻ͮͩt̟̳̏ͬ̔&#
    Posts
    7,805
    Points
    7,612
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    S̢͎̳̞̲͈̪̳̻ͮͩt̟̳̏ͬ̔&#
    Posts
    7,805
    Points
    7,612

    Contact info:

    Youtube Channel: http://www.youtube.com/kennethbgoodin

    Default

    What have you got so far?

    0 Not allowed! Not allowed!
    ส็็็็็็็็็็็็็็็็็็็็็็็็็༼ ຈل͜ຈ༽ส้้้้้้้้้้้้้้้้้้้้้้้ส็็็็็็็็็็็็็็็็็็็็ ็็็็็༼ ຈل͜ຈ༽ส้้้้้้้้้้้้้้้้้้้้้้้

  4. #4
    CL Original
    Since 2008
    Jimmy 9222's Avatar
    Join Date
    Nov 2008
    Posts
    308
    Points
    667
         User Info     Contact     Gamer ID
    Join Date
    Nov 2008
    Posts
    308
    Points
    667

    Default

    Well XML parsing in Java is shit to begin with. If we were reading in a buffer from an online source we'd probably use a filter. Since it sounds like you are loading from a file just open a file stream and create a tree structure from it.

    example:
    File fXmlFile = new File("/Users/mkyong/staff.xml");
    DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
    Document doc = dBuilder.parse(fXmlFile);

    and make sure to import:
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import java.io.File;

    Sources for this example: http://www.mkyong.com/java/how-to-re...va-dom-parser/

    Want to use something more modern?
    Use SAX, it'll handle the streaming and should be 'faster'

    Helpful link: https://www.tutorialspoint.com/java_...sax_parser.htm

    0 Not allowed! Not allowed!

  5. #5
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,319
    Points
    9,420
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,319
    Points
    9,420
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    Hey thanks, ill send you my progress so far just to see what i'm getting wrong with loading the files in.

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 08:41 AM.
Powered by vBulletin®
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.