[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: RE: Retrieving a XML file generated by JavaScript ?
From: "Dominique Devienne" <ddevienne () gmail ! com>
Date: 2005-08-29 14:10:39
Message-ID: A672996F85AA7240A9DD2A455BD0D428FA6FB4 () HOUEXCH902 ! Landmark ! lgc ! com
[Download RAW message or body]
> From: Nicolas Vervelle [mailto:nicolas.vervelle@steria.com]
> I want to get the file that is see when I enter the following address
> in my browser :
> http://www.stolaf.edu/people/hansonr/jmol/docs/?xml
>
> I tried the <get> task but it doesn't download what I need : it
> download the javascript that is used to generate the XML file, not the
> XML file itself.
>
> Is there any way to get this XML from Ant ?
Probably not. <get> downloads the raw 'file' at the URL. What you want is
the result of executing this 'file' by an application like a web browser
(client side), and it's built-in JavaScript interpreter, which is quite
different.
I guess you could imagine parsing the HTML, extract the JavaScript, and run
it using a Java-based JavaScript interpreter like Rhino, but that would be
quite an undertaking.
The transformation needs to be server-side for <get> to be useful in your
case. Sorry, but <get> gets you raw bytes and nothing more. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic