Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display XML in web browser?
Message
From
06/04/2006 10:04:44
 
 
To
06/04/2006 08:55:35
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01110947
Message ID:
01110978
Views:
15
This message has been marked as the solution to the initial question of the thread.
When I use the function CusrorToXML() I got an XML string. Now what I have to do to save that as a file to be able to open it in my web browser and see all as a tree view? Thank you in advance.
FUNCTION DoShellExecute( tcFileName )

#DEFINE SW_SHOWNORMAL     1
#DEFINE SW_SHOWMINIMIZED  2
#DEFINE SW_SHOWMAXIMIZED  3 

LOCAL ARRAY laJunk[1]
LOCAL lnRes
**********************************************************
*** Check that the library has been set up and open it if not already done.
**********************************************************
lnRes = ADLLS( laJunk )
IF lnRes = 0 OR  NOT ( ASCAN( laJunk, 'ShellExecute ', 1, -1, 1, 15 ) > 0)
  *** We don't have the function available
    DECLARE INTEGER ShellExecute IN shell32 ;
            INTEGER lnhwnd, STRING lcOperation, ;
            STRING lcFile, STRING lcParameters, ; 
            STRING lcDirectory, INTEGER lnShowCmd
ENDIF
lnRes = ShellExecute( 0, "open", tcFileName, "", "", SW_SHOWMAXIMIZED )
Call like this:
CURSORTOXML( [<< My Alias >>], [lcXML], 0 )
STRTOFILE( lcXml, [d:\xmlFiles\test.xml] )
DoShellExecute( [d:\xmlFiles\test.xml] )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform