Click here to Skip to main content
15,917,177 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questioncan XSL do this ? Pin
act_x14-Mar-03 5:25
act_x14-Mar-03 5:25 
AnswerRe: can XSL do this ? Pin
Torsten Mauz14-Mar-03 15:14
Torsten Mauz14-Mar-03 15:14 
GeneralRe: Tree Navigation Pin
act_x13-Mar-03 11:25
act_x13-Mar-03 11:25 
GeneralRe: Tree Navigation Pin
Michael A. Barnhart13-Mar-03 12:15
Michael A. Barnhart13-Mar-03 12:15 
GeneralTree Navigation Pin
act_x13-Mar-03 10:13
act_x13-Mar-03 10:13 
GeneralRe: Tree Navigation Pin
Michael A. Barnhart13-Mar-03 11:12
Michael A. Barnhart13-Mar-03 11:12 
GeneralDisplay multipal XML files using single XXLT Pin
swaps13-Mar-03 0:54
swaps13-Mar-03 0:54 
GeneralStoring data in "ref" element Pin
EnkelIk5-Mar-03 7:18
EnkelIk5-Mar-03 7:18 
I have a xml-schema in which two elements are defined, as in code below. The first one is included in the second one using ref=”element1”. From this schema I define a dataset using DataSet.ReadXmlSchema() (in C#). The simple data types, as string and int are easy to store data in, but how do I store an object of the first element type into the dataset? I have tried to first store it in a DataRow (defined as in the xml-schema of element1) and then add it to the other Dataset, but this does not work. An Int32 type is expected for the ref-element, is this a handle to the other element? If so how do I get that handle?


Any help will be greatly appreciated!
/EnkelIk

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Register" xmlns:xs = "http://www.w3.org/2001/XMLSchema" version ="1.0"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="Element1">
<xs:complexType>

<xs:sequence>
<xs:element name="str1" nillable="true" type="xs:string" />
<xs:element name="str2" nillable="true" type="xs:string" />
<xs:element name="str3" nillable="true" type="xs:string" />
<xs:element name="str4" nillable="true" type="xs:string" />
</xs:sequence>

</xs:complexType>
</xs:element>
<xs:element name="Element2">
<xs:complexType>

<xs:sequence>
<xs:element name="mystr1" nillable="true" type="xs:string" />
<xs:element name="mystr2" nillable="true" type="xs:string" />
<xs:element ref="Element1" maxOccurs="unbounded"/>
</xs:sequence>

</xs:complexType>
</xs:element>
</xs:schema>


GeneralCan't define array in xml Pin
EnkelIk3-Mar-03 2:18
EnkelIk3-Mar-03 2:18 
GeneralThe real schema Pin
EnkelIk3-Mar-03 2:20
EnkelIk3-Mar-03 2:20 
GeneralRe: The real schema Pin
Louis Riel2-Jun-04 4:49
Louis Riel2-Jun-04 4:49 
GeneralRe: The real schema Pin
EnkelIk8-Jun-04 23:34
EnkelIk8-Jun-04 23:34 
GeneralSOAP Stars Pin
Steve Murrell2-Mar-03 5:30
Steve Murrell2-Mar-03 5:30 
Generalxsl:import and xsl:include Pin
Philip Patrick28-Feb-03 21:11
professionalPhilip Patrick28-Feb-03 21:11 
GeneralRe: xsl:import and xsl:include Pin
Michael A. Barnhart1-Mar-03 1:34
Michael A. Barnhart1-Mar-03 1:34 
GeneralRe: xsl:import and xsl:include Pin
Philip Patrick1-Mar-03 1:46
professionalPhilip Patrick1-Mar-03 1:46 
GeneralRe: xsl:import and xsl:include Pin
Michael A. Barnhart1-Mar-03 1:51
Michael A. Barnhart1-Mar-03 1:51 
GeneralRe: xsl:import and xsl:include Pin
Philip Patrick1-Mar-03 2:00
professionalPhilip Patrick1-Mar-03 2:00 
QuestionHow to get AppInfo/Documentation from an XML Schema via XmlDocument (DOM) in C#? Pin
Mirco J. Nimmrichter27-Feb-03 6:02
Mirco J. Nimmrichter27-Feb-03 6:02 
GeneralSimple question to get attribute of IXMLDOMNode in using MSXML Pin
adapterJohn25-Feb-03 2:20
adapterJohn25-Feb-03 2:20 
GeneralRe: Simple question to get attribute of IXMLDOMNode in using MSXML Pin
Michael A. Barnhart25-Feb-03 5:07
Michael A. Barnhart25-Feb-03 5:07 
GeneralFailed to CreateInstance while using IXMLHttpRequestPtr Pin
adapterJohn25-Feb-03 2:09
adapterJohn25-Feb-03 2:09 
GeneralRe: Failed to CreateInstance while using IXMLHttpRequestPtr Pin
Michael A. Barnhart25-Feb-03 5:00
Michael A. Barnhart25-Feb-03 5:00 
GeneralRe: Failed to CreateInstance while using IXMLHttpRequestPtr Pin
adapterJohn25-Feb-03 22:38
adapterJohn25-Feb-03 22:38 
QuestionClarification Regarding Compatiblity with Managed C++/CLI [modified] Pin
pix_programmer9-Mar-11 0:33
pix_programmer9-Mar-11 0:33 

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.