Activity Stream
48,167 MEMBERS
6988 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1.     
    #11
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    ****** i know that

    Code: 
    
                         /"\
                        |\./|
                        |   |
                        |   |
                        |>~<|
                        |   |
                     /'\|   |/'\..
                 /~\|   |   |   | \
                |   =[@]=   |   |  \
                |   |   |   |   |   \
                | P   W   N   D |`   )
                |                   /
                 \                 /
                  \               /
                   \    _____    /
                    |--//''`\--|
                    | (( +==)) | <=== Pwning Time xD
                    |--\_|_//--|
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  2.   Sponsored Links

  3.     
    #12
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    incase there are no "nodes" - it returns and empty string ("").

  4.     
    #13
    Respected Developer
    I'd just check that as soon as you declare list:
    Code: 
    if (list.Count == 0) return String.Empty;
    If the code runs after that you know there are nodes, thus no need for a try-catch. They are resource eaters .

  5.     
    #14
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    PHP Code: 
    public string getSetting(string settingNode)
            {
                
    xmldoc.Load(xmlFile);
                
    XmlNodeList list = xmldoc.GetElementsByTagName("Settings");
               
                if (list.
    Count == 0) return String.Empty;

                return 
    searchNode.SelectSingleNode(settingNode.Replace(" ""_")).InnerText;

            } 
    Like so Coderz Corner ftw. Who said it was a crap idea.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [PHP] Twitter Feed Reader + Caching
    By Whoo in forum Web Development Area
    Replies: 0
    Last Post: 10th Feb 2012, 06:54 PM
  2. RSS Reader
    By TheLorenalex in forum Technical Help Desk Support
    Replies: 1
    Last Post: 30th Oct 2011, 03:07 AM
  3. [Buying] RL with Newsgroup reader
    By only1_PO in forum Completed Transactions
    Replies: 0
    Last Post: 22nd Oct 2011, 07:00 PM
  4. Ebook reader and writer
    By CatchItBaby in forum Technical Help Desk Support
    Replies: 0
    Last Post: 25th Mar 2011, 03:02 PM
  5. [TUT] Creating a RSS Reader in WPF in 15 minutes
    By Hyperz in forum Web Development Area
    Replies: 11
    Last Post: 27th Jul 2010, 08:10 PM

Tags for this Thread

BE SOCIAL