Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display XML in web browser?
Message
De
06/04/2006 10:04:44
 
 
À
06/04/2006 08:55:35
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01110947
Message ID:
01110978
Vues:
14
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] )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform