Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: madhan mo
  
 
 
 madhan mo
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 Tags
Subject: RE: open xml in vfp
Thread ID: 208320 Message ID: 208327 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Other
Date: Thursday, December 18, 2008 8:25:35 AM         
   


> > Hi Experts,
> >
> > I would like to open the xml in visual forpro. I tried running the explorer and find the xml file and right click open with "visual foxpro 9.0 sp2". I just got empty vfp screen.I just wanted to count number of lines of an xml file.
> >
> Hi Madhan
>
> You can actually open the file itself via FileToStr() (or FOpen(), FRead() and so on).
> Or use XmlToCursor() / CursorToXML() for relatively simple XML. Or use the XMLAdapter class, e.g. for XML containing more than one table.
> Or use the MS "DOM", e.g.
>
> loXML = CREATEOBJECT("Msxml2.ServerXMLHTTP")
> 

>
> BTW, the number of lines in an XML file is actually irrelevant, the content can even be all in one line and would still be valid.
>
>
> hth
> -Stefan

Hi Stefan,

Thanks again. I will look into it.



COMPLETE THREAD
open xml in vfp Posted by madhan mo @ 12/18/2008 7:55:51 AM
RE: open xml in vfp Posted by Stefan Wuebbe @ 12/18/2008 8:03:16 AM
RE: open xml in vfp Posted by madhan mo @ 12/18/2008 8:25:35 AM