HTML to TXT

Hello,
I've got the code allowing to change HTML files to TXT.
import javax.swing.text.html.parser.*;
import javax.swing.text.html.*;
import javax.swing.text.*;
import javax.swing.*;
import java.io.*;
public class TextFromHtml extends HTMLEditorKit.ParserCallback{
  static Reader r;
  static PrintWriter pw;
  public static String trimmss(String o){return (o.trim()).replaceAll("\\s+", " ");}
  public void handleText(char[] data, int pos){
       String o = new String(data);
     o = trimmss(o);
     pw.println(o);
public static void main(String args[]){
String s = null;
String f = null;
int i = 0;
while ((s = args) != null){
try{
     r = new FileReader(s);
     f = s.substring(0, s.lastIndexOf('.')) + ".txt";
     pw = new PrintWriter(new BufferedWriter(new FileWriter(f)));
     ParserDelegator parser = new ParserDelegator();
     HTMLEditorKit.ParserCallback callback = new TextFromHtml();
     parser.parse(r, callback, true);
     pw.close();
     r.close();
     ++i;
     catch (IOException e){e.printStackTrace();}
System.exit(0);
but after invoking by: java TextFromHtml C:/html/*.html I obtain only the result for file 0.html, which is converted to 0.txt. Other files, 1,2,3,4,5.html are not converted. Could you help me and tell why?
Regards, Karel

Your code has a few issues:
If you use a wildcard as arg[0], it will come in as a String, not a list of files
Your loop counts the length of arg[], since you submit only one argument, it only gets executed once as file 0 (since that is what 'i' evaluates to). If you wanted to process five files, under your design, you would need five, separate command-line args.- Saish

Similar Messages

  • Cannot checkin/checkout html, js, txt, and jsp files in MS Sharepoint Workspace 2010

    I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
    html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
    "Can not perform this operation. This document has been checked out or may no longer exist."
    Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?

    Hi Armando,
    I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Can I do a find and replace on .cfm files only and not search .html or .txt?

    Hi.  I'm using Dreamweaver CS4.  I would like to do a find and replace through my site with Dreamweaver but I only want it to search through .cfm files.  Currently it is searching through .html and .txt files along with .cfm.  Is there a way to do a find and replace on just .cfm files?
    - Tom

    You can't do it on just one type of file. However, you can do find and replace in selected files. Ctrl-click to select the targeted files in the Files panel, and then choose Selected Files in Site from the Find In drop-down.

  • Html vs. txt mails

    Hi
    My windows based friends complain that my mails arrive in 'text' and that they look bad, disstorted, etc. They suggest I send mails in HTML.
    I went into preferences, composing and selected Rich Text, as per suggestion of a Mac colleague, but apparently they still recieve the email in txt.
    how do I do this?
    J

    Although I agree with you about e-mail being plain text, don't be rude to the guy. How do you know he's using Tiger? For quite some time I had "PowerBook G4 10.4.10" showing at the bottom of my messages, 'cause I forgot to change it. Besides, it doesn't make any difference to the answer to the question AFAIK. If you can't be helpful, don't reply.

  • Problem in Attachement as HTML or TXT when run in back ground

    hi,
    I am not getting the full file as attachement when a abaplist is generated in background and sent as attachement in Mail.... The SCOT settings are HTM for ABAP list...Any help in this regard is highly appreciated.
    Many records are missing in the attachment when the files exceeds a certain limit

    Hi Aakash,
    Yes you are correct. It would happen.
    I guess you are using the function module SO_DOCUMENT_SEND_API1 or SO_NEW_DOCUMENT_SEND_API1.
    If this is the case, use the following logic to get the total no. of records without missing any data.
    //If the Length is less then 255 the write row Separator at 255
      IF lv_len LT 255.
        WRITE lv_hex1 TO lv_objbin+254(1).
        lw_objbin-line = lv_objbin+0(255).
        APPEND lw_objbin TO lt_objbin.
        CLEAR: lw_objbin.
      ELSE.
      //Else write row Separator at 500
        WRITE lv_hex1 TO lv_objbin+499(1).
        lw_objbin-line = lv_objbin+0(255).
        APPEND lw_objbin TO lt_objbin.
        CLEAR: lw_objbin.
        lw_objbin-line = lv_objbin+255(245) .
        APPEND lw_objbin TO lt_objbin.
      ENDIF.
    Let me know if you can understand the above code.

  • TextEdit keeps saving .html file as .txt

    As you know, you don't "save as..." files in Lion - Lion-compatible applications save a copy, and you don't get to specify what extension you want. So... I have all the proper preferences checked for TextEdit to properly open and manage .html documents ("ignore rich text commands in html files" is checked, "add .txt extension to plain text files" is unchecked. But every time I edit and then save an html source file, TextEdit changes the extension from .html to .txt. I've tried closing and opening the file again, both from the Finder and from TextEdit, and I see the same behavior. I can't figure out any way to keep the .html extension from within the appication - I always have to find the file in the Finder and manually change the extension back to .html after every time I edit it. Does anyone know how to fix this?

    I'd like to use TextEdit.  But, for me, it is totally broken right now.  I don't know if everyone is having the same problems, but this is what it is doing to me.
    .TXT extension change - All plaintext document extensions are being changed to .txt on save (either explicit or autosave).  I like to do my xml, html, etc. in TextEdit since it loads fast and used to be very reliable.  This alone is bad enough, but coupled with the next problem, I have abandoned TextEdit as completely broken for my use case.
    Unable to edit HTML - All HTML files are viewed as HTML in TextEdit now.  Once a file has been ... I don't know... converted by TextEdit, I can no longer look at it in TextEdit as source.  It only shows as HTML.  This is very frustrating.
    Hopefully, somebody is looking at this, because for me, TextEdit is completely broken in 10.7.1.  I'm having to resort to using vi, as I stated earlier.

  • Parsing html - txt

    Hi, I'm new here, so I'd like to say 'hi' to everyone :) I'm a freshman in the java comunity, so please be gentle.
    Firs of all I'd like to ask how to resolve the first problem. I've got the code which is responsible for convert a html document to the txt file. It looks like:
    import javax.swing.text.html.parser.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import java.io.*;
    public class TextFromHtml extends HTMLEditorKit.ParserCallback{
    static String trimmss(String o){
       return (o.trim()).replaceAll("\\s+", " ");
    public void handleText(char[] data, int pos){
    try{
          String o = new String(data);
          PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.txt", true)));
          o = trimmss(o);
          pw.println(o);
          //pw.close();
         catch (IOException exc){}      
    System.out.println(new String(data));
      public static void main(String args[]){
        try{
          String s = JOptionPane.showInputDialog("Enter the name of the file you want to convert from html to txt.");     
          Reader r = new FileReader(s);
          ParserDelegator parser = new ParserDelegator();
          HTMLEditorKit.ParserCallback callback = new TextFromHtml();
          parser.parse(r, callback, true); 
        catch (IOException e){
          e.printStackTrace();
         System.exit(0);
      }But unfortunately I don't know how to change this code to obtain such situation as making a new txt file without blank spaces > 0 and erasing the \n new lines. I'd like to get a txt file, which contains of line-by-line text. Could you please help me - tell & show me how to do that? I'd be very grateful
    Regards, skullscape.

    Hi,
    You may need to post this question @ http://forum.java.sun.com/forum.jspa?forumID=31
    Thanks
    Runa

  • Html - txt

    Hi, I'm new here, so I'd like to say 'hi' to everyone :) I'm a freshman in the java comunity, so please be gentle.
    Firs of all I'd like to ask how to resolve the first problem. I've got the code which is responsible for convert a html document to the txt file. It looks like:
    import javax.swing.text.html.parser.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import java.io.*;
    public class TextFromHtml extends HTMLEditorKit.ParserCallback{
    static String trimmss(String o){
       return (o.trim()).replaceAll("\\s+", " ");
    public void handleText(char[] data, int pos){
    try{
          String o = new String(data);
          PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.txt", true)));
          o = trimmss(o);
          pw.println(o);
          //pw.close();
         catch (IOException exc){}      
    System.out.println(new String(data));
      public static void main(String args[]){
        try{
          String s = JOptionPane.showInputDialog("Enter the name of the file you want to convert from html to txt.");     
          Reader r = new FileReader(s);
          ParserDelegator parser = new ParserDelegator();
          HTMLEditorKit.ParserCallback callback = new TextFromHtml();
          parser.parse(r, callback, true); 
        catch (IOException e){
          e.printStackTrace();
         System.exit(0);
      }But unfortunately I don't know how to change this code to obtain such situation as making a new txt file without blank spaces > 0 and erasing the \n new lines. I'd like to get a txt file, which contains of line-by-line text. Could you please help me - tell & show me how to do that? I'd be very grateful
    Regards, skullscape.

    Hi edsonw, you mean like this?
    import javax.swing.text.html.parser.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import java.io.*;
    public class TextFromHtml extends HTMLEditorKit.ParserCallback{
    static String trimmss(String o){
       return (o.trim()).replaceAll("\\s+", " ");
    public void handleText(char[] data, int pos){
    try{
          String o = new String(data);
          PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("2.txt", true)));
          //o = trimmss(o);
          pw.println(o);
          pw.close();
         catch (IOException exc){}      
    System.out.println(new String(data));
      public static void main(String args[]){
          String s = "Enter the name of the html file you want to convert:";
          System.out.println(s);     
        try{
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
           String input = in.readLine();
           Reader r = new FileReader(input);
          ParserDelegator parser = new ParserDelegator();
          HTMLEditorKit.ParserCallback callback = new TextFromHtml();
          parser.parse(r, callback, true); 
        catch (IOException e){
          e.printStackTrace();
         System.exit(0);
    }Created file (converted from sun.html) looks like:
    Sun Microsystems
    sun.com
    How To Buy
      | 
    My Sun
      | 
    Worldwide Sites
    On this Site
    Products & Services
    Support & Training
    Industry & IT Solutions
    Downloads
    Documentation
    Research & Development
    News & Events
    Resources for
    Developers
    System Admins
    Partners
    Executives
    Investors
    Education & Research
    Learn about
    Solaris 10 Preview
    Java
    Java System
    Sun and AMD Opteron
    UltraSPARC IV Processor
    Solaris Experts Video
    - Sun executives talk about the powerful new features of Solaris 10.
    Sun Offers Free Version of Solaris
    - Solaris 10 has performance-boosting features. (InformationWeek)
    NC04Q4 News
    - Get the latest press releases from the Network Computing 04Q4 event.
    Contrarian Minds: Robert Drost
    - Data can travel 100 times faster between chips, wirelessly.
    see all features �
    see all promotions �
    Contact
    |
    Company Info
    |
    Employment
    |
    Newsletters
    |
    Privacy
    |
    Terms of Use
    |
    Trademarks
    � Sun Microsystems 2004Maybe you know how to change the code to obtain the one line of the text, like:
    Sun Microsystems sun.com How To Buy | My Sun | Worldwide Sites etc ....Regards

  • Alias sizes huge, html files have "exec" icons

    [Note: I posted this query on Feb 15 to the discussion page "Using your MacBook Pro (Late 2008 and 2009)". After I got no response, I realized my topic is probably a Leopard--Finder issue rather than a MacBook Pro one. So here it is:]
    Help! My desktop prefs are confused and/or corrupted, I think:
    * ALIASES I've made today from ordinary html or txt files are weighing in at 104k to 188kb -- and aliases made from folders are a whopping 508k!
    * Also, some of the aliases I make from HTML docs are displaying the 'Unix executable' icon (instead of Firefox or even generic HTML icons).
    This seems to have begun happening after I copied a bunch of old docs & folders from an archive CD onto my MacBook Pro a few days ago... apparently many of these files are confusing or unrecognizable to the Desktop because the icon that is displayed for them the same 'Unix executable' icon that I'm seeing with some of the aliases.
    All of these older files were created with apps running under "Classic OS" (OS 7.6 to 9.2). Some open and some won't. Most carry no 3-letter file type extensions, or their extensions don't match any of my current apps (such as Microsoft Works .wbk -- which both TextEdit & NeoOffice opened with no problem).
    For the docs that won't open, I'm hoping to find some software that will at least extract text and/or images -- Any recommendations out there?
    This MacBook Pro was purchased new in Aug 2009, and is running Leopard OS 10.5.8 (I haven't yet updated to SnowLeopard although I have the CD from Apple).
    Under the older systems, if the Desktop icons started getting weird, I only had to restart with certain keys held down (Option? Control? I've forgotten) and the problem would usually be solved. I'm less fluent in the OS X system architecture, so I don't know if a simple routine exists to fix this!

    I posted the same in the other post, sorry about the duplicate reply.
    My calculator alias is 108 kb, others vary 40, 144, 32 kb. I don't know why they vary. Perhaps some have longer pathnames to the app.
    If the Desktop icons started getting weird, I only had to restart with certain keys held down (Option? Control? I've forgotten!) and the problem would usually be solved.
    Your OS is not malfunctioning. Leopard no longer supports Classic software. It does not know what to do with these extensionless files, so it is just guessing the files might be UNIX.
    You could use 'cat' in Terminal to see their contents but if they are compiled that won't reveal anything useful. It would be easier to open them with the Classic applications that made if that is still possible.

  • Interesting ? @ servlet reading a txt file

    hi friends,
    i need ur help for one interesting problem i m facing.
    I want to read a txt file and wanna display the text from that file into an html, using a servlet.A txt file contains sentences( words with spaces in between ).When servlet reads the file, it is reading the whole sentence ,but while displaying that sentence, it is just showing the first word of the sentence.
    html is not able to read the space between the words.
    so what do i suppose to do now.
    waiting for ur replies.......
    thanx
    amit

    hi friends ,
    i m giving the code , just give it a try//
    This is a servlet ---------------------------------------
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class AdminGraphServlet extends HttpServlet
    Properties ht;
    FileInputStream fin;
    FileOutputStream fout;
    String s15,st;
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException
    ht = new Properties();
    try
    fin = new FileInputStream("Data.txt");
    catch(FileNotFoundException e)
    System.out.println("FileNotFound");
    try
    if(fin != null)
    ht.load(fin);
    s15 = (String)ht.get("title");
    fin.close();
    catch(IOException e)
    System.out.println("Error Reading File");
    PrintWriter out = res.getWriter();
    res.setContentType("text/html");
    out.println("<html><body>");
    out.println("<form method=post action=http://localhost:8080/servlet/MyServlet>");
    out.println("<table><tr>");
    out.println("<tr><td>Title</td>");
    out.println("<td><Input Type=Text name=title value="+ s15 +"> </td></tr>");
    out.println("</table>");
    out.println("<input type=submit name=submit value=submit>");
    out.println("<input type=hidden name=check value=save>");
    out.println("</form>");
    out.println("</body></html>");
    public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    String Scheck = req.getParameter("check");
    PrintWriter out1 = res.getWriter();
    String ttl = req.getParameter("title");
    if(Scheck.equals("save"))
    ht.put("title",ttl);
    fout = new FileOutputStream("Data.txt");
    ht.store(fout,"Data");
    fout.close();
    out1.println("<html><body>");
    out1.println("<h1>Stored This Data Successfully</h1>");
    out1.println("</html></body>");
    txt file is having a line
    title=Are you smart enough?
    The servlet should display this sentence in a text box.
    But it is displaying only "Are".
    still waiting...
    have nice time..
    amit

  • Embedding an HTML page in a Flash Movie

    I am trying to embed an HTML page in the center of a Flash
    movie and I was wondering if this is possible, and if so, what is
    the code to do so. I want it as a small box in the middle of my
    SWF.

    You can add HTML formatted txt to a TextField or a TextArea
    Component. This only allows for simple things, a href, b, u, i,
    p... But for a full HTML capabilities you may want to look into a
    DIV container that sits on top of your flash object using CSS
    styles.

  • Putting a html swf file on the web

    Hi this is the last hurdle for me. I created an swf and a HTML output. Localy it works when I double click the html except IE
    keeps telling me I need to accept the plug in. Verry annoying. But if I put the HTML and the SWF on the website the HTML is blank no movie.
    Can't think what is missing. I cut the HTML down to a minimum as well. Any ideas what would be missing that is needed. Tried the original generated html as well
    <!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" lang="en" xml:lang="en">
    <head>
    <title>MovieClip</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    <div style="border:solid;height:96px;width:144px">
              <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="144" height="96" id="MovieClip" align="middle">
              <param name="movie" value="MovieClip.swf">
         <object type="application/x-shockwave-flash" data="MovieClip.swf" width="144" height="96">
         </object>
              <embed src="MovieClip.swf" width="96" height="144"></embed>
              </object>
    </div>
    </body>
    </html>

    No it is not a path issue or a security issue. I have done lots of websites and all paths are relative only.
    MovieClip.swf      // My swf
    index.html
    ImageList.txt      // Text file of images
    swfobject.js       // from adobe website
    expressInstall.swf // "     "     "      Don't know what its for though?
    Folder
    /MalawiPics  full of jpg's
    In the condtructor I have
    myTextLoader.load(new URLRequest("ImageList.txt")); // No path problem here
    Top of class
    var Dir:String = "MalawiPics/";
    If It doesn't display anything is there any try/catch I can put in to detect were the problem is. I have a few in there and they work okay.
    .as =
    public class MovieSlides extends MovieClip
    var imageLoader1:Loader = new Loader();
    var imageLoader2:Loader = new Loader();
    var myTimer:Timer = new Timer(5000,0);
    var TransissionTimer:Timer = new Timer(10,0); // Will start and stop this
    var myTextLoader:URLLoader = new URLLoader();
    var Counter:int = 1; // Start with second image
    var Dir:String = "MalawiPics/";
    var MyImages:Array = new Array;
    var AlphaValue1:Number = 0.0;
    var AlphaValue2:Number = 1;
    var AlphaStep:Number = 0.01;
    var CurrentPlayer:int = 1;
    var TotalImages = 0;
    public function MovieSlides()
    // constructor code
    myTextLoader.addEventListener(Event.COMPLETE, ImagesLoaded);
    myTextLoader.load(new URLRequest("ImageList.txt"));
    imageLoader1.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
    imageLoader1.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
    imageLoader2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
    imageLoader2.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
    // var link:URLRequest = new URLRequest();
    myTimer.addEventListener(TimerEvent.TIMER, timerListener);
    TransissionTimer.addEventListener(TimerEvent.TIMER,MyAlpha);
    function timerListener(event:TimerEvent):void
    // trace("Test: " + MyImages[0] + " Counter: " + Counter); //  Test: S_DSC_0106.jpg Counter: 0 OK!
    // Then I get SecurityError: Error #2000: No active security context. From where?
    loadImage(Dir + MyImages[Counter]);
    Counter++;
    if(Counter > TotalImages -1) // I only have 16 images in array
    Counter = 0;
    function loadImage(url:String):void
    if(CurrentPlayer == 1)
    try
    imageLoader1.load(new URLRequest(url));
    catch  (error:SecurityError)
    trace("Sorry that there is a Security error during the loading of an external image. The error is:" + "\n" + error);
    if(CurrentPlayer == 2)
    try
    imageLoader2.load(new URLRequest(url));
    catch (error:SecurityError)
    trace("Sorry that there is a Security error during the loading of an external image. The error is:" + "\n" + error);
    function imageLoading(e:Event):void
    // trace("Image now loading ... " + MyImages[Counter] + " " + Counter);
    function imageLoaded(e:Event):void // Shared by both Loaders
        if(CurrentPlayer == 1) // For player 1 has been ++
    AlphaValue1 = 0.0;
    AlphaValue2 = 1.0;
    imageLoader1.alpha = AlphaValue1;
    imageArea1.addChild(imageLoader1);
    //trace("In one");
    else
    AlphaValue1 = 1.0;
    AlphaValue2 = 0.0;
    imageLoader2.alpha = AlphaValue2;
    imageArea2.addChild(imageLoader2);
    //trace("In two");
    TransissionTimer.start();
    if(CurrentPlayer == 1) // Toggle loaders 1 and 2
    CurrentPlayer = 2;
    else
    CurrentPlayer = 1;
    function MyAlpha(event:TimerEvent):void // TransissionTimer
    if(CurrentPlayer == 2)
    AlphaValue1 += AlphaStep;
    AlphaValue2 -= AlphaStep;
    //trace("AlphaValue1 " + AlphaValue1);
    imageLoader1.alpha = AlphaValue1;
    imageLoader2.alpha = AlphaValue2;
    if(imageLoader1.alpha == 1)
    TransissionTimer.stop();
    imageLoader1.alpha = 1;
    if(CurrentPlayer == 1)
    AlphaValue1 -= AlphaStep;
    AlphaValue2 += AlphaStep;
    imageLoader1.alpha = AlphaValue1;
    imageLoader2.alpha = AlphaValue2;
    if(imageLoader2.alpha == 1)
    TransissionTimer.stop();
    imageLoader2.alpha = 1;
    function ImagesLoaded(e:Event):void // Array now full of image list from text file
    MyImages = e.target.data.split(/\n/);
    for (var i=0;i<MyImages.length;i++)
    MyImages[i]=MyImages[i].substring(0,MyImages[i].length-1); // Need to strip End Of Line
    TotalImages = MyImages.length -1; //Thinks there is one more !
    // trace(MyImages.length); // 5 WRONG
    loadImage(Dir + MyImages[0]);
    myTimer.start();

  • HTML in XML

    I'm trying to make this website for a band i'm doing easily
    updatable, so as usual, I'm trying to load my content from external
    files. I used to use .html or .txt files filled with HTML and have
    that populate a textbox on my flash movie. However, since this
    project is going to have someone else (who's reasonably computer
    savy) uploading the content, I wanted to use XML to organize the
    data. An example of this would be the news content
    <newsitem subject="New Record" date="4/15/05"
    poster="Ben">
    Hey Guys! Our new record came out today!<br><br>
    COME BUY IT!!
    </newsitem>
    This would be great except I can't put that HTML inside my
    XML. And I wouldn't use HTML except that I can't trust the data
    inside the XML tags to be formated properly (especially since
    there's no trim function in flash!). So if anyone's had experience
    with trying to display html insdie of XML or has a better solution
    for me to be able to have a reasonably smart way of updating my
    dynamic content that invovles XML, it would be a great help,
    because right now I keep running into brick walls! Thanks in
    advance, I know you guys will come through, you always help me when
    i'm in a bind!!
    ~Ben~

    I would look at Flash Remoting. I use ColdFusion, however,
    you can also get a free PHP remoting plug in. There are ASPNET and
    Java, but you pay for those.
    I would write ColdFusion Compoment to all the news to be
    updated easily. Then Flash can easily pull it in.
    You can pull XML into Flash using XML Socket this requires
    understanding of ActionScript. However, the person updating the
    news file might need a good understanding of XML -- that's why I
    would use ColdFusion or PHP to generate the updated XML file and
    then have Flash import it. using the XML socket or as mentioned
    above -- Flash Remoting -- which easier and quicker.

  • Java word HTML microsoft com question

    Hi:
    I am very new to Java and I don't need to you write any code for me, so please don't flame me :D
    I am in the process of planning a utility that will convert/assemble Microsoft Word Docs into HTMLs and then build search/sort/etc functionalities on the HTMLs.
    My question: I guess this can be done in Java via COM bridge in Windows. Is it the same on Macintosh/Apple platform? Do Apple even have a COM interface as well that a Java program can utilize? If not and I am limited to the Windows platform, I might not even need use Java at all.
    Any other suggestions toward this idea is greatly appreciated. I got it to work with Perl and some freeware utlity that convets Word->Txt, and I then generate HTML from Txt with my links and stuff. I just want to make it more user friendly by providing some kind of interface/configurations.
    Thanks!
    Ray

    I have not used it, but you might look into POI to parse the word docs, then you can output whatever you want - you might look into ECS to generate the HTML.
    http://jakarta.apache.org/poi/
    http://jakarta.apache.org/ecs/
    Good luck
    Lee

  • How can i change .pages format to .txt

    i need to change a .pages doc to .html or .txt etc for posting of a resume written with pages,
    How can I do that??
    Thank you

    I am still running Snow Leopard 10.6.8 and this is how I can do it. Save the document as a Word document with the Save As option in the menu at the top and then change the file extension from .pages to .txt.
    Save the file to the desktop - File>Save As>Save Copy As>Word Document. The you can click on the icon on the desktop to highlight it and get info on it by using "Command+I" and then change the extension to .txt - or click on the icon to highlight it and then from the menu at the top of the screen - File>Get Info - and change the extension to .txt. Close the Info window after you change the extension and accept the prompt to change the extension.
    Or rather than change the file extension - open the doucment in Word - if you have the application and then save it as text only. I assume that you do not have Word or you would not have asked how to do this but just in case - you can do it in Word as well.

Maybe you are looking for