Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Michael C. Butler
  Where is Michael C. Butler?
 Austin
 Texas - United States
 Michael C. Butler
 Tags
Subject: RE: Word Doc to XML
Thread ID: 104620 Message ID: 104627 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: XML
Date: Friday, August 18, 2006 3:33:20 PM         
   


> Good morning....
> I am working on a project, that is a bit messy...
> The user goes to a website, and creates a report via the tool provided.
> He then saves the report. The website offers to save AS A WORD DOCUMENT, but in reality, it saves it as an HTML file.
>
> I can either parse the HTML page, or convert it XML, and parse the XML.
>
> I have been unable to use the VFP9 XMLPARSER, as it will not read the XML file.
>
> Anyone have any ideas?
> Would it be easier to simply attempt to parse the HTML?
> I have tried writing a program to parse the XML, but I am finding that even though it is in XML format, there are many anomalies in the data, which makes it very difficult to read.
>
> I have attached a sample....
>
> Thanks
> MB
>
>
>
> https://www.foxite.com/uploads/b1b262e3-9851-4d2c-8537-28795003409e.zip



Michael, it is not quite clear what you want to do.

If there is HTM file instead of DOC file that is actually needed, then you may open MSWORd and SAVEAS the file as needed.

If there is HTM file and you wish to create a cursor/table from it, then you may open the file in Excel, save as xls file, and import to foxpro table.

If you wish to get the file in XML format that is supported in foxpro, then I would use the second approach and use the cursortoxml at the end.


Best Wishes,

Yuri Rubinov

ENTIRE THREAD

Word Doc to XML Posted by Michael C. Butler @ 8/18/2006 2:14:20 PM
RE: Word Doc to XML Posted by Yuri Rubinov @ 8/18/2006 3:33:20 PM
RE: Word Doc to XML Posted by Michael C. Butler @ 8/18/2006 5:47:06 PM
RE: Word Doc to XML Posted by Yuri Rubinov @ 8/18/2006 8:56:40 PM
RE: Word Doc to XML Posted by Michael C. Butler @ 8/18/2006 11:28:01 PM
RE: Word Doc to XML Posted by Borislav Borissov @ 8/18/2006 11:42:12 PM
RE: Word Doc to XML Posted by Yuri Rubinov @ 8/19/2006 6:44:53 PM
RE: Word Doc to XML Posted by Steven Holt @ 8/20/2006 2:26:02 AM
RE: Word Doc to XML Posted by Michael C. Butler @ 8/21/2006 5:24:52 PM