Click here to Skip to main content
15,899,026 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Problems with a well formed XML Pin
Christian Graus1-Feb-05 17:08
protectorChristian Graus1-Feb-05 17:08 
GeneralRe: Problems with a well formed XML Pin
Christian Graus1-Feb-05 17:10
protectorChristian Graus1-Feb-05 17:10 
QuestionHow to add a datasource as a sub node in XML file Pin
Rekha Patel31-Jan-05 8:08
Rekha Patel31-Jan-05 8:08 
AnswerRe: How to add a datasource as a sub node in XML file Pin
DavidNohejl31-Jan-05 8:20
DavidNohejl31-Jan-05 8:20 
GeneralRe: How to add a datasource as a sub node in XML file Pin
Rekha Patel31-Jan-05 9:01
Rekha Patel31-Jan-05 9:01 
GeneralRe: How to add a datasource as a sub node in XML file Pin
DavidNohejl31-Jan-05 9:44
DavidNohejl31-Jan-05 9:44 
GeneralThanks a mil!!! Worked like a magic Pin
Anonymous31-Jan-05 14:02
Anonymous31-Jan-05 14:02 
GeneralHelp with converting Dataset to ADO schema..please! Pin
Dankarmy30-Jan-05 8:26
Dankarmy30-Jan-05 8:26 
Hi.

Ive been looking on the net for weeks in trying to convert a .NET dataset to the standard ADO recordset schema - but with no luck. Ive had a go myself, but can't seem to produce the results I want.

Heres the dataset:

<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://tempuri.org/mytestWS">
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="en-GB">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Table">
<xs:complexType>
<xs:sequence>
<xs:element name="ProductID" type="xs:int" minOccurs="0" />
<xs:element name="ProductName" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<ProductID>189</ProductID>
<ProductName>Product Name 1</ProductName>
</Table>
<Table diffgr:id="Table2" msdata:rowOrder="1">
<ProductID>313</ProductID>
<ProductName>Product Name 2</ProductName>
</Table>
</NewDataSet>
</diffgr:diffgram>
</DataSet>

And here is what im trying to achieve:


<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=""urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<s:Schema id="RowsetSchema">
<s:ElementType name="row" content="eltOnly">
<s:AttributeType name="ProductID"/>
<s:AttributeType name="ProductName"/>
<s:Extends type="rs:rowbase"/>
</s:ElementType>
</s:Schema>
<rs:data>
<z:row ProductID="189" ProductName="Product Name 1"/>
<z:row ProductID="313" ProductName="Product Name 2"/>
</rs:data>
</xml>


As you can see in the Dataset I need to extract name="ProductID" from the <xs:element>, and write it to the <s:AttributeType> node - same with the <z:row>

Could anyone help me here?

J


GeneralUnicode encoding problem Pin
teo_xp29-Jan-05 2:27
teo_xp29-Jan-05 2:27 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 2:29
teo_xp29-Jan-05 2:29 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 2:30
teo_xp29-Jan-05 2:30 
GeneralRe: Unicode encoding problem Pin
DavidNohejl29-Jan-05 2:56
DavidNohejl29-Jan-05 2:56 
GeneralRe: Unicode encoding problem Pin
teo_xp29-Jan-05 10:45
teo_xp29-Jan-05 10:45 
GeneralRe: Unicode encoding problem Pin
DavidNohejl29-Jan-05 12:53
DavidNohejl29-Jan-05 12:53 
GeneralRe: Unicode encoding problem Pin
teo_xp30-Jan-05 3:14
teo_xp30-Jan-05 3:14 
GeneralXML serialisation Pin
Member 157171627-Jan-05 22:11
Member 157171627-Jan-05 22:11 
GeneralXML 's Question Pin
jzb26-Jan-05 14:00
jzb26-Jan-05 14:00 
GeneralSQLXML3.0 Question Pin
mysorian26-Jan-05 11:59
professionalmysorian26-Jan-05 11:59 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 12:41
DavidNohejl26-Jan-05 12:41 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 13:08
professionalmysorian26-Jan-05 13:08 
GeneralRe: SQLXML3.0 Question Pin
DavidNohejl26-Jan-05 13:38
DavidNohejl26-Jan-05 13:38 
GeneralRe: SQLXML3.0 Question Pin
mysorian26-Jan-05 17:58
professionalmysorian26-Jan-05 17:58 
GeneralInvalid Characters with MSXML Pin
Insert Cool Screen Name Here25-Jan-05 10:14
Insert Cool Screen Name Here25-Jan-05 10:14 
GeneralRe: Invalid Characters with MSXML Pin
DavidNohejl25-Jan-05 10:36
DavidNohejl25-Jan-05 10:36 
GeneralRe: Invalid Characters with MSXML Pin
Anonymous25-Jan-05 10:42
Anonymous25-Jan-05 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.