Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating an xml file using a xsd file in vb.net

Status
Not open for further replies.

spikeuk

Programmer
Mar 5, 2008
21
GB
Hi
I’m using vb.net to create an xml file based on an xsd file.
I can create the file, except for the header

The file I’m trying to create needs to begin:

<?xml version="1.0" encoding="UTF-8" ?>
- <datafeed_response xmlns=" version="2.5">
- <cards>

Whereas using the xsd file to create this results in:

<?xml version="1.0" standalone="yes"?>
<DatafeedRequest xmlns=" <datafeed_request version="2.5" />
<cards>

The code I’m using to generate this is:
With myXmlDataDocument
'datafeed_request
xmlDataRow = .DataSet.Tables("datafeed_request").Rows.Add()
xmlDataRow.Item("version") = "2.5"
'cards
xmlDataTable1 = .DataSet.Tables("cards")
xmlDataTable1.Rows.Add()

Any help, is much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top