This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C16EC3.F5A7D6A0
Content-Type: text/plain;
charset="iso-8859-1"
Hi,
I have written to this list before but unfortunatelly nobody replied. I am
hoping that someone will help to sort this problem.
Can anyone help me with this? I am using a datagrid to to display the
content of an XML file.
This works perfectly until I have to disply a node that has a subnode. This
is part of my xml file:
<Surveys>
<Survey id="Euro00p">
<Description>Europa TGI 2001</Description>
<Copyright>Copyright BMRB International 2001</Copyright>
<TotalWeight>100000</TotalWeight>
<TotalSample>50000</TotalSample>
<WeightLabel>(000)</WeightLabel>
<WeightTitle>pop</WeightTitle>
<WeightUnits>1000</WeightUnits>
<Language id="eng">
<Description>English UK</Description>
</Language>
<Language id="esp">
<Description>Spanish</Description>
</Language>
<Language id="fra">
<Description>French</Description>
</Language>
<Options>
The language node has a subnode called <Description>. As I try to display
the text withing the <description> nodes I get an error. This is my datagrid
code:
<form runat="server">
<asp:Label CssClass="BodyFont" id="msg" runat="server"/>
<asp:DataGrid id="DataGrid1" runat="server"
AutoGenerateColumns="false"
GridLines="Vertical"
cellpadding="4"
cellspacing="0"
Width="75%"
HeaderStyle-CssClass="GridHeader"
FooterStyle-CssClass="GridFooter"
ItemStyle-CssClass="GridItem"
AlternatingItemStyle-CssClass="GridAlternatingItem"
SelectedIndex=1
OnItemCommand="Grid1_OnItemCommand"
>
<Columns>
<asp:BoundColumn HeaderText="Language"
DataField="Description"/>
<asp:BoundColumn HeaderText="Survey"
DataField="Description"/>
<asp:BoundColumn HeaderText="Source"
DataField="Copyright"/>
</Columns>
</asp:DataGrid>
</form>
Somehow the <asp:BoundColumn DataField="Description" /> can not navigate to
the submenu and pick up the value of this node.
I was wondering if anyone on the list has dealt with this problem before and
let me know how to solve it.
Cheers,
Claudio
BMRB International
http://www.bmrb.co.uk +44 (0)20 8566 5000
____________________________________________________________
This message (and any attachment) is intended only for the recipient and may
contain confidential and/or privileged material. If you have received this
in error, please contact the sender and delete this message immediately.
Disclosure, copying or other action taken in respect of this email or in
reliance on it is prohibited. BMRB International Limited accepts no
liability in relation to any personal emails, or content of any email which
does not directly relate to our business.