Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default Using XPath with an XHTML web site

    Hi everyone,
    I've been trying to use XPath with an XHTML web site but I can't get it working...

    Here's the start of the web page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    id="template">
    <head>
    ....

    The error I'm getting is:
    java.net.MalformedURLException: no protocol: (and then it lists the entire web document string)

    The error happens on line: Document doc = builder.parse(string);

    I'm guessing because of the DOCTYPE tag which makes the document non-XML because it doesn't have an ending DOCTYPE tag. How do I download an XHTML web page and then use XPath on it?

    Java Code:
    import org.apache.commons.httpclient.*; 
    import org.apache.commons.httpclient.methods.*; 
    import javax.xml.xpath.*; 
    import org.w3c.dom.*; 
    import javax.xml.parsers.DocumentBuilder; 
    import javax.xml.parsers.DocumentBuilderFactory; 
    public class HTTPClientWithXPath { 
     
    	/** 
    	 * @param args 
    	 */ 
    	public static void main(String[] args) { 
    		// TODO Auto-generated method stub 
    		HttpClient client = new HttpClient(); 
    		GetMethod method = new GetMethod("http://myURL"); 
    		try { 
    			// Execute the method. 
    			int statusCode = client.executeMethod(method); 
    			if (statusCode != HttpStatus.SC_OK) { 
    				System.out.println("Method failed: " + method.getStatusLine()); 
    			} 
    			byte[] responseBody = method.getResponseBody(); 
    			String string = new String(responseBody); 
    			XPathFactory factory = XPathFactory.newInstance(); 
    			DocumentBuilderFactory domfactory = DocumentBuilderFactory.newInstance(); 
    			domfactory.setNamespaceAware(true); 
    			try { 
    				DocumentBuilder builder = domfactory.newDocumentBuilder(); 
    				Document doc = builder.parse(string); 
    				XPath xpath = factory.newXPath(); 
    				XPathExpression expr = xpath.compile("//td"); 
    				Object result = expr.evaluate(doc, XPathConstants.NODESET); 
    				NodeList nodes = (NodeList) result; 
    				for (int i = 0; i < nodes.getLength(); i++) { 
    					System.out.println(nodes.item(i).getNodeValue()); 
    				} 
    			} catch (Exception e) { 
    				e.printStackTrace(); 
    			} 
    		} catch (Exception e) { 
    			e.printStackTrace(); 
    		} finally { 
    			method.releaseConnection(); 
    		} 
    	} 
    }
    Thanks!
    Chris

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Can you post the complete error?

    Java Code:
    GetMethod method = new GetMethod("http://myURL");
    Are you sure that in the above line you've set the correct URL?

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default

    Here's the actual URL:
    Java Code:
    http://fantasy.nfl.com/league/53435
    I'm guessing I need to somehow get the XML tag in the html and I need to register the namespace somehow. I have no idea I've tried all kinds of different libraries and ways to get this to work. :confused:

    Here's the whole error message:
    Java Code:
    Jul 30, 2010 11:29:37 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
    WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
    java.net.MalformedURLException: no protocol: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="template">
    <head>
        <title>NFL-Managed 53435 Home - NFL.com - Free Fantasy Football</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=7">
        <link rel="image_src" href="http://static.nfl.com/static/content/public/image/fantasy/general/Facebook_130x110.jpg" />
        <script>
        var gSt= new Date();
    </script>
    <script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
    
                    <link rel="stylesheet" type="text/css" href="http://global.fantasy.nfl.com/static/css/2691585cc439bc5692707d802e32f117.css" />
                <link rel="stylesheet" type="text/css" href="http://global.fantasy.nfl.com/static/css/f90c39f9f551d5b4affecd456ecc0a03.css" />
        
    </head>
    <body id="leagueHomePage" class="noJs yui-skin-sam yui3-skin-sam g-b">
    <iframe id="yui3-history-iframe" src="/blank.html"></iframe>
    <input id="yui3-history-field" type="hidden">
    
    <div id="doc">
            <div id="hd-wrap">
            <div id="hd">
                <div id="nflNav" class="mod">
        <div class="content">
            <div class="hd">
                        </div>
            <div class="bd">
                <ul><li class="first"><a href="http://www.nfl.com" >&laquo; NFL.com Homepage</a></li><li><a href="http://www.nfl.com/scores" >Scores</a></li><li><a href="http://www.nfl.com/videos" >Video</a></li><li><a href="http://www.nfl.com/news" >News</a></li><li class="last"><a href="http://www.nfl.com/fantasy" >Fantasy</a></li></ul>        </div>
            <div class="ft">
                <ul><li class="first"><a href="/auth/login?returnTo=http%3A%2F%2Ffantasy.nfl.com%2Fleague%2F53435" >Sign In</a></li><li><a href="https://id2.s.nfl.com/fans/register?returnTo=http%3A%2F%2Ffantasy.nfl.com%2Fleague%2F53435" >Register</a></li><li><a href="http://www.nfl.com/fans" >Fans</a></li><li class="last"><a href="http://www.nflshop.com/entry.point?target=z&source=NFL_Fantasy_Nav" >NFL Shop</a></li></ul>        </div>
        </div>
    </div>
    <div id="nav" class="mod dynamicModule">
        <div class="content">
            <div class="hd">
                <a href="http://www.nfl.com" id="shield">Shield</a>
                <h2><a href="/">Fantasy Football</a></h2>
                <a href="/league/53435" id="leagueLink"><b></b>NFL-Managed 53435</a>
                <form id="playerSearchForm" action="/league/53435/players/search" class="compact" method="GET">
                    <fieldset role="search">
                        <label for="searchQuery">SEARCH PLAYER BY NAME</label>
                        <input type="text" id="playerSearchQuery" class="autocomplete moduleName-playersSearchAutocomplete" name="searchQuery" value="" maxlength="100" autocomplete="off" />
                        <button name="playerSearchButton" id="playerSearchButton" value="Search" type="submit">Search</button>
                    </fieldset>
    				<input type="hidden" name="playerUrl" value="/players/card?leagueId=53435" class="playerSearchHidden"/>
                </form>
                
            </div>
            <div class="bd">
                <b></b>
                <ul><li class="navItem first"><a href="http://fantasy.nfl.com/?leagueId=53435"  class="navHome">Fantasy '10</a></li><li class="navItem selected"><a href="/league/53435"  class="navLeague">League</a></li><li class="navItem"><a href="/league/53435/players"  class="navPlayers">Players</a></li><li class="navItem"><a href="/draftcenter?leagueId=53435"  class="navDraft">Draft Center</a></li><li class="navItem navMyFantasyWrap last"><a href="#"  class="navMyFantasy">My Fantasy</a></li></ul>        </div>
            <div class="ft">
                
    <div id="myFantasy">
        <iframe frameborder="0"></iframe>
        <div class="content">
            <div class="fantasy">
                <a class="action"  href="/auth/login">Sign In Now</a><a class="action" href="/">Sign Up for Fantasy '10</a>        </div>
            <div class="nfl">
                <div class="fan">
                <h5>Fantasy Resources</h5>
                <ul><li class="odd first"><a href="http://nfl.com/fantasy/help"  target="_blank"><b></b>Fantasy Help</a></li><li class="even"><a href="http://nfl.com/fantasy/help/faq"  target="_blank"><b></b>Fantasy FAQ</a></li><li class="nextToLast odd"><a href="http://www.nfl.com/fans/forums#0ae914ee-b426-4bd7-a195-107821822c6b"  target="_blank"><b></b>Forums</a></li><li class="even last"><a href="/feedback" ><b></b>Feedback</a></li></ul>            </div>
                <h5>NFL.com Resources</h5>
                <p class="fp"><a href="http://www.nfl.com/fieldpass?icampaign=Fantasy_My_Fantasy_FP" target="_blank">Follow My Players Live with Field Pass</a></p>
                <ul><li class="odd first"><a href="http://www.nfl.com/news"  target="_blank"><b></b>Latest News</a></li><li class="even"><a href="http://www.nfl.com/injuries"  target="_blank"><b></b>Injuries</a></li><li class="odd"><a href="http://www.nfl.com/fantasy"  target="_blank"><b></b>Fantasy Home</a></li><li class="even"><a href="http://www.nfl.com/transactions"  target="_blank"><b></b>Transactions</a></li><li class="odd"><a href="http://www.nfl.com/stats/player"  target="_blank"><b></b>Stats</a></li><li class="even"><a href="http://www.nfl.com/photos"  target="_blank"><b></b>Photos</a></li><li class="odd"><a href="http://www.nfl.com/fantasy/draftkit"  target="_blank"><b></b>Draft Kit</a></li><li class="even"><a href="http://blogs.nfl.com"  target="_blank"><b></b>Blogs</a></li><li class="nextToLast odd"><a href="http://www.nfl.com/scores"  target="_blank"><b></b>Scores</a></li><li class="even last"><a href="http://www.nfl.com/videos"  target="_blank"><b></b>Video</a></li></ul>        </div>
        </div>
        <div class="s"></div>
        <div class="b"></div>
    </div>
    
            </div>
        </div>
    </div>
    <div id="subNav" class="mod">
        <div class="content">
            <div class="bd">
                <ul><li class="selected first"><a href="/league/53435" >Home</a></li><li><a href="/league/53435/email" >Email League</a></li><li><a href="/league/53435/owners" >Owners</a></li><li><a href="/league/53435/discussions" >Discussions</a></li><li><a href="/league/53435/transactions" >Transactions</a></li><li><a href="/league/53435/draftresults" >Draft Results</a></li><li class="last"><a href="/league/53435/settings" >Settings</a></li></ul>        </div>
        </div>
    </div>
    <noscript>
        <div id="noJsMessage">
            <p>NFL.com - Free Fantasy Football relies heavily on Javascript.</p>
            <p class="last">For the ultimate experience please enable Javascript in your browser.</p>
        </div>
    </noscript>
            </div>
        </div>
                <div id="subHd">
                </div>
                <div id="bd-wrap">
        <div id="bd">
            
                        <div id="prePrimary">
                                </div>
            
            <h1>NFL-Managed 53435 Home</h1>
    
            
                            <div id="primary">
                    		<script>
    			window.CenterpieceParams = {
    				fileName: "http://global.fantasy.nfl.com/static/flash/cp_1278694528.swf",
    				selector: "#centerpiece .bd",
    				flashVars: {"xmlUrl":"http:\/\/static.nfl.com\/static\/content\/public\/genericcp\/fantasy2010_league_home.xml","leagueId":"53435","numUserChap":0}
    			}
    		</script><div id="centerpiece" class="mod"><div class="content"><div class="bd"><div></div></div></div></div>
    
    
    <div id="leagueHomeStandings" class="mod standings cache-forever history-leagueHomeStandings dynamicModule moduleName-leagueHomeStandings">
        <div class="content">
            <div class="hd">
                <div id ="standingsNav">
                    <ul><li id="standingsItem" class="selected first"><a href="/league/53435?standingsTab=standings"  class="dynamic historyDefault">Standings</a></li><li id="scheduleItem"><a href="/league/53435?standingsTab=schedule"  class="dynamic">Schedule</a></li><li id="playoffsItem" class="last"><a href="/league/53435?standingsTab=playoffs"  class="dynamic">Playoffs</a></li></ul>            </div>
    
            </div>
            <div class="bd">
    
            <div class="tableWrap"><table cellpadding="0" cellspacing="0" class="tableType-team hasGroups"><thead><tr class="first"><th class="teamRank first">&nbsp;</th><th class="teamImageAndName">&nbsp;</th><th class="teamRecord numeric">&nbsp;</th><th class="teamWinPct numeric">&nbsp;</th><th class="teamStreak numeric">&nbsp;</th><th class="teamWaiverPriority numeric">&nbsp;</th><th class="group teamPts firstgroup-teamPts last" colspan="2" scope="colgroup"><em><b></b><span>Points</span></em></th></tr><tr class="last"><th class="teamRank first" scope="col"><span>Rank</span></th><th class="teamImageAndName" scope="col"><span>Team</span></th><th class="teamRecord numeric" scope="col"><span>W-L-T</span></th><th class="teamWinPct numeric" scope="col"><span>Pct</span></th><th class="teamStreak numeric" scope="col"><span>Streak</span></th><th class="teamWaiverPriority numeric" scope="col"><span>Waiver</span></th><th class="teamPts stat numeric" scope="col"><span>For</span></th><th class="teamPts stat numeric last" scope="col"><span>Against</span></th></tr></thead><tbody><tr class="team-1 odd first"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/1" class="teamImg teamId-1"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/PIT4.png" alt="E-Town Danger Zone" width="40" height="27"/><b></b></a> <a href="/league/53435/team/1" class="teamName teamId-1">E-Town Danger Zone</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">9</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-9 even"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/9" class="teamImg teamId-9"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Ducknation" width="40" height="27"/><b></b></a> <a href="/league/53435/team/9" class="teamName teamId-9">Ducknation</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">7</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-8 odd"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/8" class="teamImg teamId-8"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Belcourt Braves" width="40" height="27"/><b></b></a> <a href="/league/53435/team/8" class="teamName teamId-8">Belcourt Braves</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">10</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-7 even"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/7" class="teamImg teamId-7"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Vikes2804" width="40" height="27"/><b></b></a> <a href="/league/53435/team/7" class="teamName teamId-7">Vikes2804</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">2</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-6 odd"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/6" class="teamImg teamId-6"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/GB4.png" alt="Green Bay Packers" width="40" height="27"/><b></b></a> <a href="/league/53435/team/6" class="teamName teamId-6">Green Bay Packers</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">4</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-5 even"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/5" class="teamImg teamId-5"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="canton soilders" width="40" height="27"/><b></b></a> <a href="/league/53435/team/5" class="teamName teamId-5">canton soilders</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">5</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-4 odd"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/4" class="teamImg teamId-4"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/PHI1.png" alt="krzeminski27" width="40" height="27"/><b></b></a> <a href="/league/53435/team/4" class="teamName teamId-4">krzeminski27</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">8</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-3 even"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/3" class="teamImg teamId-3"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DAL5.png" alt="Texas" width="40" height="27"/><b></b></a> <a href="/league/53435/team/3" class="teamName teamId-3">Texas</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">1</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-2 odd"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/2" class="teamImg teamId-2"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="broncos7" width="40" height="27"/><b></b></a> <a href="/league/53435/team/2" class="teamName teamId-2">broncos7</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">6</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr><tr class="team-10 even last"><td class="teamRank first"> </td><td class="teamImageAndName"><div class="teamImageAndNameWrap"><a href="/league/53435/team/10" class="teamImg teamId-10"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEN4.png" alt="Bronco King" width="40" height="27"/><b></b></a> <a href="/league/53435/team/10" class="teamName teamId-10">Bronco King</a></div></td><td class="teamRecord numeric"></td><td class="teamWinPct numeric">.000</td><td class="teamStreak numeric"></td><td class="teamWaiverPriority numeric">3</td><td class="teamPts stat numeric">0.00</td><td class="teamPts stat numeric last">0.00</td></tr></tbody></table></div><div class="tableFt"></div>        </div>
        </div>
    </div>
    
    <div id="leagueEvents" class="mod messages dynamicModule history-leagueHomeActivities moduleName-leagueHomeMessages">
        <div class="content">
            <div class="hd">
                <h4>Activity</h4>
                <div class="messageNav">
                <ul><li class="selected first"><a href="/league/53435?activitiesTab=all"  class="dynamic mAll">All</a></li><li><a href="/league/53435?activitiesTab=transaction"  class="dynamic mT">Transactions</a></li><li><a href="/league/53435?activitiesTab=message"  class="dynamic mM">Discussions</a></li><li class="last"><a href="/league/53435?activitiesTab=transaction_commish"  class="dynamic mTc">LM Changes</a></li></ul>            </div>
                <div class="mod leaguePostMessage">
        <div class="content">
            <div class="bd">
                <form method="post" action="/league/53435/postmessageconfirm" class="dynamic messagepost action-leagueHomePostMessageConfirm">
                                                    <input type="hidden" name="messageCategory" value="general">
                    <input type="hidden" name="messageSubCategory" value="">
                    <input type="hidden" name="messageCategoryTab" value="all">
                    <input type="hidden" name="activitiesTab" value="all">
                    <label for="messageBody">Post a Message</label> <textarea rows="1" id="messageBody" class="validate-nonempty" name="messageBody">Post a Message</textarea>
                    <a class="submit"></a>
                                                    <input type="submit" class="submit" value="submit" name="jSubmit">
                </form>
            </div>
        </div>
    </div>
            </div>
            <div class="bd">
                <ul><li class="dynamicModule moduleName-leagueHomePostMessage parentMessage first"><div class="mw"><div class="mwi"><a href="/league/53435/team/4" class="teamImg teamId-4"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/PHI1.png" alt="krzeminski27" width="40" height="27"/><b></b></a><div class="textWrap"><p><em><span class="userName userId-183272">craig</span> says:</em> vikes2804 would u trade percy harvin?</p><div class="metadata"><span class="date">Wed, Jul 28, 7:17pm</span></div></div></div></div><ul><li class="first"><a href="/league/53435/postmessage?activitiesTab=all&messageParentId=1&messageParentType=message" id="leaguePostMessage-3" class="comment dynamic where-replace what-this moduleName-leagueHomePostMessage">Comment</a></li><li class="last"><div class="mw"><div class="mwi"><a href="/league/53435/team/7" class="teamImg teamId-7"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Vikes2804" width="40" height="27"/><b></b></a><div class="textWrap"><p><em><span class="userName userId-183903">Aaron</span> says:</em> not for jonathan stewart</p><div class="metadata"><span class="date">Thu, Jul 29, 6:37pm</span></div></div></div></div></li></ul></li><li class="dynamicModule moduleName-leagueHomePostMessage parentMessage"><div class="mw"><div class="mwi"><a href="/league/53435/team/7" class="teamImg teamId-7"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Vikes2804" width="40" height="27"/><b></b></a><div class="textWrap"><a href="/players/card?leagueId=53435&playerId=2950" class="playerCard playerImg what-playerCard"><img src="http://static.nfl.com/static/content/public/image/getty/headshot/J/A/C/JAC627460.jpg" alt="Vincent Jackson" width="65" height="90"/></a><p><a href="/league/53435/team/7" class="teamName teamId-7">Vikes2804</a> moved <span class="c c-sd"><b></b><a onclick="return false" href="/players/card?leagueId=53435&playerId=2950" class="playerCard playerName playerNameFull playerNameId-2950 what-playerCard">Vincent Jackson</a> <em>WR- SD</em>   <a class="playerNote playerCard what-playerCard playerNote-video" title="View Player Videos" onclick="return false" href="/players/card?leagueId=53435&playerId=2950&video=1">View Videos</a></span> from <strong>Wide Receiver</strong> to <strong>Bench</strong></p><div class="metadata"><span class="date">Wed, Jul 28, 7:10pm</span></div></div></div></div><ul><li class="first last"><a href="/league/53435/postmessage?activitiesTab=all&messageParentId=2&messageParentType=transaction" id="leaguePostMessage-2" class="comment dynamic where-replace what-this moduleName-leagueHomePostMessage">Comment</a></li></ul></li><li class="dynamicModule moduleName-leagueHomePostMessage parentMessage last"><div class="mw"><div class="mwi"><a href="/league/53435/team/7" class="teamImg teamId-7"><img src="http://static.nfl.com/static/content/public/image/fantasy/avatar/40x27/DEF.png" alt="Vikes2804" width="40" height="27"/><b></b></a><div class="textWrap"><a href="/players/card?leagueId=53435&playerId=1620" class="playerCard playerImg what-playerCard"><img src="http://static.nfl.com/static/content/public/image/getty/headshot/H/A/R/HAR829482.jpg" alt="Percy Harvin" width="65" height="90"/></a><p><a href="/league/53435/team/7" class="teamName teamId-7">Vikes2804</a> moved <span class="c c-min"><b></b><a onclick="return false" href="/players/card?leagueId=53435&playerId=1620" class="playerCard playerName playerNameFull playerNameId-1620 what-playerCard">Percy Harvin</a> <em>WR- MIN</em>   </span> from <strong>Bench</strong> to <strong>Wide Receiver</strong></p><div class="metadata"><span class="date">Wed, Jul 28, 7:10pm</span></div></div></div></div><ul><li class="first last"><a href="/league/53435/postmessage?activitiesTab=all&messageParentId=1&messageParentType=transaction" id="leaguePostMessage-1" class="comment dynamic where-replace what-this moduleName-leagueHomePostMessage">Comment</a></li></ul></li></ul>        </div>
            <div class="ft">
                <div class="paginationWrap">
                    <div class="pagination search"></div>            </div>
                <div class="viewAllWrap">
                    <ul><li class="first">View All:</li><li><a href="/league/53435/transactions" >Transactions</a></li><li><a href="/league/53435/discussions" >Messages</a></li><li class="last"><a href="/league/53435/transactions?transactionType=commish" >LM Changes</a></li></ul>            </div>
            </div>
        </div>
    </div>
                </div>
                                        <div id="secondary">
                    
    <div id="leagueHomeScoreStrip" class="mod scoreStrip dynamicModule cache-60000 moduleName-leagueHomeScoreStrip">
        <div class="content">
            <div class="hd">
                <h4>Scoreboard</h4>
                <ul class="leagueNav"><li class="selected first"><a href="/league/53435?week=1"  class="dynamic fantasy">League Scores</a></li><li class="last"><a href="/league/53435?scoreStripType=nfl&week=1"  class="dynamic nfl">NFL Scores</a></li></ul><ul class="weekNav weekNav-mini"><li class="wl wl-1 first"><span>Week</span> <em>1</em></li><li class="ww ww-next selected last"><a href="/league/53435?week=2"  class="dynamic w-next">Week 2 <strong>></strong></a></li></ul>        </div>
            <div class="bd">
    
                            <div class="teamNav">
                <ul class="ss ss-5"><li class="first"><a href="/league/53435/team/1/gamecenter?week=1"  title="E-Town Danger Zone vs. broncos7"><div class="first"><em>E-Town Danger Zone</em> <span class="teamTotal teamId-1">0.00</span></div> <div class="last"><em>broncos7</em> <span class="teamTotal teamId-2">0.00</span></div></a></li><li><a href="/league/53435/team/3/gamecenter?week=1"  title="Texas vs. Bronco King"><div class="first"><em>Texas</em> <span class="teamTotal teamId-3">0.00</span></div> <div class="last"><em>Bronco King</em> <span class="teamTotal teamId-10">0.00</span></div></a></li><li><a href="/league/53435/team/4/gamecenter?week=1"  title="krzeminski27 vs. Ducknation"><div class="first"><em>krzeminski27</em> <span class="teamTotal teamId-4">0.00</span></div> <div class="last"><em>Ducknation</em> <span class="teamTotal teamId-9">0.00</span></div></a></li><li><a href="/league/53435/team/5/gamecenter?week=1"  title="canton soilders vs. Belcourt Braves"><div class="first"><em>canton soilders</em> <span class="teamTotal teamId-5">0.00</span></div> <div class="last"><em>Belcourt Braves</em> <span class="teamTotal teamId-8">0.00</span></div></a></li><li class="last"><a href="/league/53435/team/6/gamecenter?week=1"  title="Green Bay Packers vs. Vikes2804"><div class="first"><em>Green Bay Packers</em> <span class="teamTotal teamId-6">0.00</span></div> <div class="last"><em>Vikes2804</em> <span class="teamTotal teamId-7">0.00</span></div></a></li></ul>
                </div>
                        </div>
        </div>
    </div>
    <div class="ad ad-LREC inited"><iframe frameborder="0" scrolling="no" height="250" width="300" src="http://ad.doubleclick.net/adi/nfl.freefantasy/league;s1=league;url=league;slot=top;nfl=ad;tab=;test=;tile=1;sz=300x250;dcopt=ist;ord=12805469761"></iframe></div>
    <div id="analysisAndOpinions" class="mod">
        <div class="content">
            <div class="hd">
                <h4>Analysis & Opinions</h4>
            </div>
            <div class="bd">
                <h5 class="fabiano">Michael Fabiano</h5>
                <div class="metadata">
                    <em>Fantasy Editor for NFL.com</em>
                    <ul><li class="first">Follow:</li><li><a href="http://twitter.com/Michael_Fabiano"  target="_blank">Twitter</a></li><li class="last"><a href="http://blogs.nfl.com/category/fantasy/"  target="_blank">Blog</a></li></ul>            </div>
                <div class="articles">
                    <ul><li class="first"><a href="http://blogs.nfl.com/2010/07/30/bensons-value-not-in-danger-from-nfl/"  target="_blank">Benson’s value not in danger from NFL</a></li><li class="last"><a href="http://www.nfl.com/goto?id=09000d5d81965c49"  target="_blank">Owners should keep tabs on the backfield battles in Texas</a></li></ul>            </div>
                <div class="more">
                    <a href="http://www.nfl.com/fantasy" class="mc" target="_blank">More Columns</a>
                    <a href="http://www.nfl.com/rss/rsslanding?searchString=author&id=09000d5d800219d7&name=Michael%20Fabiano" class="sub" target="_blank">Subscribe</a>
                </div>
            </div>
            <div class="ft">
                <div class="first ad ad-PROMO inited"><iframe frameborder="0" scrolling="no" height="100" width="300" src="http://ad.doubleclick.net/adi/nfl.freefantasy/league;s1=league;url=league;slot=bottom;nfl=ad;tab=;test=;tile=2;sz=300x100;dcopt=;ord=12805469762"></iframe></div>                    </div>
        </div>
    </div>
                </div>
                            
                            <div class="s"></div>
            <div class="t"></div>
            </div>
    
        </div>
                <div id="ft-wrap">
            <div id="ft">
                
    
    <div id="footer" class="mod"> 
        <div class="content"> 
            <div class="hd nflprograms"> 
                <h4><a href="http://www.nfl.com" target="_blank">NFL</a></h4> 
                <ul><li class="first"><ul><li class="first"><a href="http://nflrush.com/?campaign=NFL_footer"  target="_blank">NFLRush.com</a></li><li><a href="http://www.nfl.com/play60"  target="_blank">NFL PLAY 60</a></li><li><a href="http://nflplayers.com/"  target="_blank">NFLPlayers.com</a></li><li><a href="http://www.nflyouthpd.com/"  target="_blank">NFL Youth Tackle</a></li><li><a href="http://profootballhof.com/"  target="_blank">Profootballhof.com</a></li><li class="last"><a href="http://www.usafootball.com/"  target="_blank">USA Football</a></li></ul></li><li class="last"><ul><li class="first"><a href="http://www.nflshop.com/entry.point?target=z&source=NFL_SHOP_TAB_BOTTOM_BANNER"  target="_blank">NFL Shop</a></li><li><a href="http://www.nflauction.nfl.com/"  target="_blank">NFL Auction</a></li><li><a href="http://www.nfl.com/nflnetwork"  target="_blank">NFL Network</a></li><li><a href="http://www.nflonlocation.net"  target="_blank">NFL On Location</a></li><li class="last"><a href="http://www.jointheteam.com/"  target="_blank">In The Community</a></li></ul></li></ul>        </div> 
            <div class="bd afc"> 
                <h4>AFC</h4> 
                <ul><li class="first"><ul><li class="first"><a href="http://www.buffalobills.com/"  target="_blank">Bills</a></li><li><a href="http://www.miamidolphins.com/"  target="_blank">Dolphins</a></li><li><a href="http://www.patriots.com/"  target="_blank">Patriots</a></li><li class="last"><a href="http://www.newyorkjets.com/"  target="_blank">Jets</a></li></ul></li><li><ul><li class="first"><a href="http://www.baltimoreravens.com/"  target="_blank">Ravens</a></li><li><a href="http://www.bengals.com/"  target="_blank">Bengals</a></li><li><a href="http://www.clevelandbrowns.com/"  target="_blank">Browns</a></li><li class="last"><a href="http://www.steelers.com/"  target="_blank">Steelers</a></li></ul></li><li><ul><li class="first"><a href="http://www.titansonline.com/"  target="_blank">Titans</a></li><li><a href="http://www.houstontexans.com/"  target="_blank">Texans</a></li><li><a href="http://www.colts.com/"  target="_blank">Colts</a></li><li class="last"><a href="http://www.jaguars.com/"  target="_blank">Jaguars</a></li></ul></li><li class="last"><ul><li class="first"><a href="http://www.denverbroncos.com/"  target="_blank">Broncos</a></li><li><a href="http://www.kcchiefs.com/"  target="_blank">Chiefs</a></li><li><a href="http://www.raiders.com/"  target="_blank">Raiders</a></li><li class="last"><a href="http://www.chargers.com/"  target="_blank">Chargers</a></li></ul></li></ul>        </div> 
            <div class="ft nfc"> 
                <h4>NFC</h4> 
                <ul><li class="first"><ul><li class="first"><a href="http://www.dallascowboys.com/"  target="_blank">Cowboys</a></li><li><a href="http://www.giants.com/"  target="_blank">Giants</a></li><li><a href="http://www.philadelphiaeagles.com/"  target="_blank">Eagles</a></li><li class="last"><a href="http://www.redskins.com/"  target="_blank">Redskins</a></li></ul></li><li><ul><li class="first"><a href="http://www.chicagobears.com/"  target="_blank">Bears</a></li><li><a href="http://www.detroitlions.com/"  target="_blank">Lions</a></li><li><a href="http://www.packers.com/"  target="_blank">Packers</a></li><li class="last"><a href="http://www.vikings.com/"  target="_blank">Vikings</a></li></ul></li><li><ul><li class="first"><a href="http://www.atlantafalcons.com/"  target="_blank">Falcons</a></li><li><a href="http://www.panthers.com/"  target="_blank">Panthers</a></li><li><a href="http://www.neworleanssaints.com/"  target="_blank">Saints</a></li><li class="last"><a href="http://www.buccaneers.com/"  target="_blank">Buccaneers</a></li></ul></li><li class="last"><ul><li class="first"><a href="http://www.stlouisrams.com/"  target="_blank">Rams</a></li><li><a href="http://www.azcardinals.com/"  target="_blank">Cardinals</a></li><li><a href="http://www.sf49ers.com/"  target="_blank">49ers</a></li><li class="last"><a href="http://www.seahawks.com/"  target="_blank">Seahawks</a></li></ul></li></ul>        </div> 
        </div> 
    </div> 
    
    
    
    <script type="text/javascript">
    /** Set Report Suite Environment Variable **/
    var s_account="cbsnfl,nflglobal";
    </script>
    <script src="http://static.nfl.com/static/site/scripts/analytics/s_code.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    <!-- /* Copyright 1997-2004 Omniture, Inc. */
    s_analytics.pageName="nfl:fantasy football:league:standings:landing"
    s_analytics.channel="fantasy"
    s_analytics.eVar14="nfl:fantasy football:league"
    s_analytics.prop2="nfl:fantasy football:league"
    s_analytics.prop3="free fantasy"
    s_analytics.hier1="nfl|fantasy football|league|standings|landing"
    s_analytics.eVar4="nfl|fantasy football|league|standings|landing"
    s_analytics.prop5="nfl|fantasy football|league|standings|landing"
    s_analytics.prop22="www.nfl.com"
    s_analytics.prop23="nfl:fantasy"
    s_analytics.server="nfl.com"
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code= s_analytics.t();if(s_code)document.write(s_code)
    //-->
    </script>
            </div>
        </div>
        </div>
    
    
    
    <script type="text/javascript">
    YEXT = null;var SYSTEMENVIRONMENT = "production";var LEAGUEID = 53435;YUI({
        //combine: true,
        timeout: 10000,
        //filter: 'debug',
        modules:  {
           siteSpecific: {
               fullpath: "http://global.fantasy.nfl.com/static/js/231cfeca2cd7bb3268a1edffa0b5b84c.js"
           }
        ,       pageSpecific: {
               fullpath: "http://global.fantasy.nfl.com/static/js/0cd8ff3f0ede6dea8e61043aff384a02.js"
           }
        }
    }
    ).use("pageSpecific","siteSpecific","ads","anim","anim-color","autocomplete","base","cache","centerpiece","dataschema-json","datasource","datasource-cache","datasource-jsoncontentschema","dump","dynamic-modules","event","event-custom","event-mouseenter","gallery-jsonp","gallery-overlay-modal","header","history","idle-timer","images","io","json-parse","league-home","league-messages","loader","node","node-event-simulate","overlay","page-tracking","player","playerCard","plugin","scores","slynode","swfobject","util","video","widget","widget-position","widget-position-align", function(Y){
    
    
        Y.on('available', function(){
            var gEt = new Date();
    
            Y.Get.PURGE_THRESH = 8;
            Y.log( 'available:'+(gEt.getTime() - gSt.getTime()));
    
            Y.get(this).removeClass('noJs')},'#leagueHomePage');
            var init = function() {
    
            var gEt = new Date();
            Y.log( 'domready:'+(gEt.getTime() - gSt.getTime()));
    
            YEXT = Y;var a = function(){ try {Y.Util.init(document.body);} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.History.subscribe('history:ready', Y.Util.initFromHistory);} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.History.initialize('#yui3-history-field', '#yui3-history-iframe');} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.Header.init();} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.Centerpiece.init();} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.LeagueHome.init();} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.LeagueMessages.init();;} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.PageTracking.init({"pageName":"nfl:fantasy football:league:standings:landing","channel":"fantasy","eVar14":"nfl:fantasy football:league","prop2":"nfl:fantasy football:league","prop3":"free fantasy","hier1":"nfl|fantasy football|league|standings|landing","eVar4":"nfl|fantasy football|league|standings|landing","prop5":"nfl|fantasy football|league|standings|landing","prop22":"www.nfl.com","prop23":"nfl:fantasy","server":"nfl.com"});} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.Scores.init(
        {"53435":{"fractionalPts":true,"negativePts":true,"ptsFormat":"2","stats":{"5":{"scoringType":"yards_per_point","modifier":"25"},"6":{"scoringType":"points","modifier":"4"},"7":{"scoringType":"points","modifier":"-2"},"14":{"scoringType":"yards_per_point","modifier":"10"},"15":{"scoringType":"points","modifier":"6"},"21":{"scoringType":"yards_per_point","modifier":"10"},"22":{"scoringType":"points","modifier":"6"},"30":{"scoringType":"points","modifier":"-2"},"32":{"scoringType":"points","modifier":"2"},"33":{"scoringType":"points","modifier":"1"},"35":{"scoringType":"points","modifier":"3"},"36":{"scoringType":"points","modifier":"3"},"37":{"scoringType":"points","modifier":"3"},"38":{"scoringType":"points","modifier":"3"},"39":{"scoringType":"points","modifier":"5"},"45":{"scoringType":"points","modifier":"1"},"46":{"scoringType":"points","modifier":"2"},"47":{"scoringType":"points","modifier":"2"},"49":{"scoringType":"points","modifier":"2"},"50":{"scoringType":"points","modifier":"6"},"53":{"scoringType":"points","modifier":"6"},"55":{"scoringType":"points","modifier":"10"},"56":{"scoringType":"points","modifier":"7"},"57":{"scoringType":"points","modifier":"4"},"58":{"scoringType":"points","modifier":"1"},"59":{"scoringType":"points","modifier":"0"},"60":{"scoringType":"points","modifier":"-1"},"61":{"scoringType":"points","modifier":"-4"}}}},
        {"53435":{"1":{"156":{"gameId":"2010091300","active":false},"188":{"gameId":"2010091201","active":false},"1795":{"gameId":"2010090900","active":false},"2009":{"gameId":"2010091300","active":false},"2683":{"gameId":"2010091212","active":false},"894":{"gameId":"2010091210","active":true},"1175":{"gameId":"2010091203","active":true},"2437":{"gameId":"2010091211","active":true},"985":{"gameId":"2010091205","active":true},"2177":{"gameId":"2010091208","active":true},"1084":{"gameId":"2010091203","active":true},"2614":{"gameId":"2010091200","active":true},"2121":{"gameId":"2010091208","active":true},"100009":{"gameId":"2010091204","active":false},"100022":{"gameId":"2010090900","active":true}},"2":{"111":{"gameId":"2010091300","active":true},"1982":{"gameId":"2010091300","active":true},"114":{"gameId":"2010091300","active":true},"1787":{"gameId":"2010090900","active":true},"2172":{"gameId":"2010091208","active":true},"346":{"gameId":"2010091207","active":true},"393":{"gameId":"2010091207","active":false},"732":{"gameId":"2010091204","active":false},"1495":{"gameId":"2010091205","active":false},"1866":{"gameId":"2010091206","active":false},"2557":{"gameId":"2010091200","active":false},"2810":{"gameId":"2010091200","active":false},"2328":{"gameId":"2010091301","active":true},"1784":{"gameId":"2010090900","active":true},"100011":{"gameId":"2010091210","active":true}},"3":{"266":{"gameId":"2010091206","active":true},"2900":{"gameId":"2010091201","active":true},"403":{"gameId":"2010091207","active":false},"496":{"gameId":"2010091202","active":false},"627":{"gameId":"2010091212","active":false},"1896":{"gameId":"2010091206","active":false},"2792":{"gameId":"2010091202","active":false},"633":{"gameId":"2010091212","active":true},"1019":{"gameId":"2010091203","active":true},"1704":{"gameId":"2010091202","active":true},"1857":{"gameId":"2010090900","active":true},"2859":{"gameId":"2010091203","active":true},"714":{"gameId":"2010091204","active":true},"100008":{"gameId":"2010091212","active":true},"100023":{"gameId":"2010091206","active":false}},"4":{"43":{"gameId":"2010091209","active":true},"192":{"gameId":"2010091201","active":false},"267":{"gameId":"2010091206","active":false},"1602":{"gameId":"2010091201","active":false},"2094":{"gameId":"2010091210","active":false},"2395":{"gameId":"2010091211","active":false},"742":{"gameId":"2010091204","active":true},"817":{"gameId":"2010091207","active":true},"2057":{"gameId":"2010091210","active":true},"1232":{"gameId":"2010091204","active":true},"2048":{"gameId":"2010091210","active":true},"2074":{"gameId":"2010091210","active":true},"1118":{"gameId":"2010091203","active":true},"100021":{"gameId":"2010091202","active":false},"100027":{"gameId":"2010091209","active":true}},"5":{"86":{"gameId":"2010091300","active":false},"1093":{"gameId":"2010091203","active":false},"1134":{"gameId":"2010091203","active":false},"1282":{"gameId":"2010091301","active":false},"1946":{"gameId":"2010091206","active":false},"2000":{"gameId":"2010091300","active":false},"920":{"gameId":"2010091210","active":true},"1351":{"gameId":"2010091301","active":true},"1413":{"gameId":"2010091208","active":true},"1865":{"gameId":"2010091206","active":true},"1872":{"gameId":"2010091206","active":true},"2243":{"gameId":"2010091209","active":true},"2426":{"gameId":"2010091211","active":true},"2305":{"gameId":"2010091301","active":true},"100025":{"gameId":"2010091210","active":true}},"6":{"18":{"gameId":"2010091209","active":true},"2298":{"gameId":"2010091301","active":true},"27":{"gameId":"2010091209","active":false},"227":{"gameId":"2010091201","active":false},"361":{"gameId":"2010091207","active":false},"408":{"gameId":"2010091207","active":false},"2145":{"gameId":"2010091208","active":false},"2168":{"gameId":"2010091208","active":false},"53":{"gameId":"2010091209","active":true},"289":{"gameId":"2010091206","active":true},"2687":{"gameId":"2010091212","active":true},"641":{"gameId":"2010091212","active":true},"2345":{"gameId":"2010091301","active":true},"852":{"gameId":"2010091210","active":true},"100020":{"gameId":"2010090900","active":true}},"7":{"509":{"gameId":"2010091200","active":false},"986":{"gameId":"2010091205","active":false},"1524":{"gameId":"2010091205","active":false},"2544":{"gameId":"2010091211","active":false},"2910":{"gameId":"2010090900","active":false},"2950":{"gameId":"2010091301","active":false},"849":{"gameId":"2010091210","active":true},"1143":{"gameId":"2010091203","active":true},"1167":{"gameId":"2010091203","active":true},"1594":{"gameId":"2010091201","active":true},"1620":{"gameId":"2010090900","active":true},"1701":{"gameId":"2010091202","active":true},"1672":{"gameId":"2010090900","active":true},"1616":{"gameId":"2010090900","active":true},"100029":{"gameId":"2010091211","active":true}},"8":{"792":{"gameId":"2010091207","active":true},"1680":{"gameId":"2010090900","active":true},"930":{"gameId":"2010091205","active":false},"1581":{"gameId":"2010091201","active":false},"1717":{"gameId":"2010091202","active":false},"2020":{"gameId":"2010091300","active":false},"2539":{"gameId":"2010091211","active":false},"2670":{"gameId":"2010091212","active":false},"1100":{"gameId":"2010091203","active":true},"1195":{"gameId":"2010091204","active":true},"1652":{"gameId":"2010090900","active":true},"2225":{"gameId":"2010091209","active":true},"1612":{"gameId":"2010090900","active":true},"1752":{"gameId":"2010091202","active":true},"100002":{"gameId":"2010091300","active":true}},"9":{"354":{"gameId":"2010091207","active":false},"631":{"gameId":"2010091212","active":false},"2011":{"gameId":"2010091300","active":false},"2248":{"gameId":"2010091209","active":false},"2258":{"gameId":"2010091209","active":false},"2951":{"gameId":"2010091301","active":false},"440":{"gameId":"2010091202","active":true},"2042":{"gameId":"2010091210","active":true},"2822":{"gameId":"2010091212","active":true},"723":{"gameId":"2010091204","active":true},"2447":{"gameId":"2010091211","active":true},"911":{"gameId":"2010091210","active":true},"1722":{"gameId":"2010091202","active":true},"933":{"gameId":"2010091205","active":true},"100028":{"gameId":"2010091301","active":true}},"10":{"121":{"gameId":"2010091300","active":false},"385":{"gameId":"2010091207","active":false},"564":{"gameId":"2010091200","active":false},"622":{"gameId":"2010091212","active":false},"1274":{"gameId":"2010091301","active":false},"2655":{"gameId":"2010091212","active":false},"430":{"gameId":"2010091202","active":true},"2213":{"gameId":"2010091209","active":true},"864":{"gameId":"2010091210","active":true},"1120":{"gameId":"2010091203","active":true},"1303":{"gameId":"2010091301","active":true},"1861":{"gameId":"2010090900","active":true},"2063":{"gameId":"2010091210","active":true},"2036":{"gameId":"2010091210","active":true},"100024":{"gameId":"2010091300","active":true}}}},
        {"playerStats":[],"gameData":[]},
        false,
        {leagueId:53435,week:1, delay:0},
        null
        );
    
    ;} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.Video.init();;} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    var a = function(){ try {Y.Player.init();;} catch (err) {Y.log('initErrorCatch:'+err.message);return false}};
    a();
    
    var gEt = new Date();Y.log("initComplete:"+ (gEt.getTime() - gSt.getTime()))    };
    
        Y.on('domready', init);
    });
    </script>
    </body>
    </html>
    
    <!-- www25 -->
    	at java.net.URL.<init>(URL.java:567)
    	at java.net.URL.<init>(URL.java:464)
    	at java.net.URL.<init>(URL.java:413)
    	at org.cyberneko.html.HTMLScanner.setInputSource(HTMLScanner.java:847)
    	at org.cyberneko.html.HTMLConfiguration.setInputSource(HTMLConfiguration.java:478)
    	at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:451)
    	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
    	at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
    	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:298)
    	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
    	at football.Scaper.HTTPClientWithXPath.main(HTTPClientWithXPath.java:37)
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:820]

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Seems to me somewhere in your code the protocol (http:// in your case) is missing. Check it. Are you sure that GetMethod do it properly for you? I don't have that package, so it's not possible to check it.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    And also there could be another cause in your code too. You are extracting the xml string, actually the complete htmt string, and parsing the xml string withing the same method. In such cases java will try to interpret the xml string as a url and you will probably get the above error, because the parser removed the protocol from the string. Try to implement two process in two levels.

Similar Threads

  1. help to parse an xhtml file
    By nijil in forum New To Java
    Replies: 0
    Last Post: 02-20-2010, 10:37 AM
  2. define list<myclass> in xhtml
    By miq.system in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-26-2009, 03:02 PM
  3. Eclipse with xhtml and Facelets
    By thiagofmam in forum Eclipse
    Replies: 0
    Last Post: 12-03-2008, 02:42 AM
  4. diff between WML d XHTML
    By bakiya in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 11-02-2007, 11:26 AM
  5. XHTML Doclet 0.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-08-2007, 05:46 PM

Posting Permissions

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