R
Raul Sousa
I need a button to export the result of an access query to an xml file.
This exported xml file must meet a predefined schema.
Is there a way access can export information meeting a predefined xml schema?
I have already searched for a solution. Based on my findings I created this
code, to export the data.
Private Sub Comando0_Click()
Dim fXMLPath As String
fXMLPath = "C:\Users\Raul\Documents\testxml.xml"
ExportXML acExportQuery, "testquery", fXMLPath
End Sub
I thought to export the data first, with any particular schema. After that I
will try to meet the given schema.
The problem with this code is that it does not export any data. This is the
result:
<?xml version="1.0" encoding="UTF-8" ?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata"
generated="2008-03-10T18:34:31" />
Any ideas why is it not exporting data?
Does anyone have a better solution?
This exported xml file must meet a predefined schema.
Is there a way access can export information meeting a predefined xml schema?
I have already searched for a solution. Based on my findings I created this
code, to export the data.
Private Sub Comando0_Click()
Dim fXMLPath As String
fXMLPath = "C:\Users\Raul\Documents\testxml.xml"
ExportXML acExportQuery, "testquery", fXMLPath
End Sub
I thought to export the data first, with any particular schema. After that I
will try to meet the given schema.
The problem with this code is that it does not export any data. This is the
result:
<?xml version="1.0" encoding="UTF-8" ?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata"
generated="2008-03-10T18:34:31" />
Any ideas why is it not exporting data?
Does anyone have a better solution?