On 29/08/2008 in message <#wPUkxcCJHA.3392@TK2MSFTNGP03.phx.gblMartin
Honnen wrote:
Quote:
>I don't see any XML in your post. Are you sure your question relates to
>XML in the .NET framework? What type does dtTemp have?
|
It's an XML file I am accessing from a C# class.
The schema from the top of the file is:
<?xml version="1.0" standalone="yes" ?>
- <FileNotesData xmlns="JGFileManager">
- <xs:schema id="FileNotesData" targetNamespace="JGFileManager"
xmlns:mstns="JGFileManager" xmlns="JGFileManager"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified" elementFormDefault="qualified">
- <xs:element name="FileNotesData" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="tblFileNotes">
- <xs:complexType>
- <xs:sequence>
<xs:element name="RecordNumber" msdata:AutoIncrement="true" type="xs:int" minOccurs="0" />
<xs:element name="LastUpdated" type="xs:string" minOccurs="0" />
<xs:element name="FolderName" type="xs:string" minOccurs="0" />
<xs:element name="FileName" type="xs:string" minOccurs="0" />
<xs:element name="Notes" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
I then use:
DataSet dsTemp = new DataSet();
dsTemp.ReadXml(m_DBPath, XmlReadMode.ReadSchema);
DataTable dtTemp = dsTemp.Tables[m_TableName];
set up the filter here then:
DataRow[] foundRows = dtTemp.Select(filterString);
where the error occurrs.
--
Jeff Gaines Damerham Hampshire UK
"Why is it that when we talk to God we're said to be praying,
but when God talks to us we're schizophrenic?"