Creating an XML Page and Style Sheet to Display FoxPro Data (256538)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q256538 SUMMARY FoxToXML.prg is a program file that creates a custom FoxPro
class that uses a FoxPro cursor or table to create an eXtensible Markup
Language (XML) page and an eXtensible Stylesheet Language (XSL) style sheet to
display FoxPro data.
The FoxPro class (FoxToXML) has a method that creates an XML file, a method that creates an
XSL file, and a method that creates both files. Each method takes either no
parameter and uses the currently open cursor or table to create the XML/XSL
files or takes a table name as a parameter to create the files.
The
creation of the XML/XSL documents uses native Visual FoxPro 6.0 language and
the custom class can be instantiated and used whenever an XML or XSL document
is needed. The XML/XSL document names are derived from the cursor or table
name.
Without the XSL file, the XML data displays in hierarchical
form. Create just an XML file and delete the "?xml-stylesheet ..." line to see
how the XML data looks without the style sheet. REFERENCES For more general information about XML, see the following
Web sites:
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbCodeSnippet kbCtrl kbfile KB256538 |
---|
|