Topic
  • 1 reply
  • Latest Post - ‏2010-09-30T03:48:03Z by fervincent
Cyrus.T
Cyrus.T
1 Post

Pinned topic Instantiating URL from Html Content Stored in a String

‏2010-09-27T15:42:28Z |
Is there anyway to instantiate a URL object based on html that is in a String? What I want to be able to do is something like the following:


*URL url = 

new URL (htmlContent);*


where htmlContent is a string that holds the actual html content such as "<Htm><body> .... </body></Html>".

This should easily be doable, but I don't seem to find any ways.

Thanks for taking time to read my question,
Cyrus
Updated on 2010-09-30T03:48:03Z at 2010-09-30T03:48:03Z by fervincent
  • fervincent
    fervincent
    2 Posts

    Re: Instantiating URL from Html Content Stored in a String

    ‏2010-09-30T03:48:03Z  
    Hello.

    I suppose you want dynamically load content to the front-end.

    Can you tell me please what kind of front-end do you have ?. For instance web browser, swing.

    Or if I misunderstood your concern please explain more about your requirement to see if I can help you to solve.