Hi May be this could help First use the CFHTTP and the read the file contents as #CFHTTP.FileContent#
or save the file in the server that is got from the CFHTTP and then read the contents say as "Counter" and then do the folling code
<!---- this line in case U save the file and then read the contents of the file ---> <CFFILE ACTION="Read" file="#new_file_with_path#" Variable="Counter"> <!-------- end of line --------->
<CFSET startpos = FindNoCase("<start_tag>", Counter) + 10> <!----- here U are adding 10 becoz from the 10th position onwards U want to extract the data ie after the > in <start_tag>
<CFSET endpos = FindNoCase("</end_data>", Counter, startpos)>
<CFSET data_to_extract =TRIM(Mid(Counter, startpos, endpos - startpos))>
may be U can run this in a look to get all the occurance of <Start_tag> and <end_tag>
I suggest U use <!--<data_to_extact> what ever data that is to be extracted </data_to_extract>--> instead of <start_data> and <end_data> becoz by using the <!-- it is a HTMl comment and the Browser does not interpret it but the CF reads it.
So that way it is safe and there is no chance of having any unnecessary data on the screen by using personalised uncommented tags.
hope it help fell free to get back with Queries. I use this very often
"Tony Hicks" <webmigit@alltel.net> wrote: > Is there a way to import a page using cfhttp and then slicing cfhttp.content > up so that if it says <start_tag> it knows to start gathering data at that > point and if it says <end_tag> it knows to stop? I've done similar with > importing delimited files into databases but the delimit value of cfhttp > won't do this either. And is there a way to make it repeatedly do this all > the way through the document til it has all the data? > > And on a similar note... i need to slice up a date in the format of MMDDYY > and put a period in after every two digits... so it would be MM.DD.YY or > even slashes would work, im not really concerned with the delimiter > anymore.. > > I also want to say thanks to this list.. Sometimes the questions asked > inspired me on my own ideas and many times I've harvested information from > the answers given, it would surely have been alot harder for me to have come > as far as I have without this list... Talk about a community, this is a > strong one and people are always willing to help if they know how and in > some cases just to point a person in the right direction. > > Thanks, > Tony Hicks > Professionally Designed Websites > http://www.righteousdesigns.com > ICQ: 5874143 AIM: Webmigit Y!: Webmigit > mailto:webmigit@alltel.net > Tired of your web host? > http://www.nextmill.net > Need a Domain? Don't have a credit card? > http://www.domainsbycheck.com > Got your Free Online Business Card Yet? > Here's mine: http://thecardfile.com/webmigit.htm > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com