Menu

can't retrieve the value of attribute src

Help
2005-02-02
2013-04-27
  • javacodeforger

    javacodeforger - 2005-02-02

    Hello

    node is an object of type TagNode

    usually I can get the attribute via

        String link = node.getAttribute("src");

    but for some reason this returns null

    It seems that TagNode does not recognize src as an attribute

    node.getHtml() gives

    <img src=/http:www.dcs.shef.ac.uk/people/dcsstaff.gif width=150 height=100>

    pls help

     
    • mikeliu1976

      mikeliu1976 - 2005-02-02

      regards:

      I recommend you the HTML Parser 1.5

      it is great.

      Thank you
      May goodness be with you all

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.