Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating XML
Message
 
To
27/01/2003 13:50:20
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00745133
Message ID:
00745926
Views:
27
I think you need something under xmlns tag as per the XML standard but I am not sure. Look at the help of XmlAttribute class. It allows you to remove/edit xml tag.


>Yes it does, how do I get rid of either the entire thing or the http://tempuri.org/?
>
>thanks
>
>Jim
>
>>I think the problem is that it comes out as
<datasetname>.xsd
and not contacts.xsd. If you make it contacts.xsd, does it work?
>>
>>>Another question,
>>>
>>> Now for some reason when I create the XML file on the root element it's writting the following:
>>>
>>>   <Root xmlns="http://tempuri.org/<datasetname>.xsd">
>>>
>>>
>>>If I take the xmlns part out my XSLT file shows data. If I leave it in there no data is shown. I am using the writexml command from the dataset object. Is there a way to get rid of the hyperlink on the root element of the XML?
>>>
>>>
>>>>It should.
>>>>
>>>>>Jayesh,
>>>>>
>>>>> That works, but this is what it writes to the xml file
>>>>>
>>>>>  <Table xmlns="Contacts">
>>>>>
>>>>>My next question is if I reference the table contacts in a XSLT file will it work?
>>>>>
>>>>>>Did you try to change the name using DataSet.TableName or DataSet.Name?
>>>>>>
>>>>>>>All,
>>>>>>>
>>>>>>> When I write an XML file from a dataset the name of the table is "table" instead of the correct name of the table. Is there a way to change this to the correct tablename?
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform