How do you prevent multiple DataTables from being created in the DataSet when there is a CData section in the XML?
Posted on 2005-04-06
I have an XML file that looks like the following:
<msgText>It is <![CDATA[<DISKINFO/PERCENT>]]> % full </msgText>
<msgText>Message number two</msgText>
I've got a list of messages, which may or may not have a CData section embedded in the msgText. When I create a DataSet with this xml file, it creates 2 DataTables. So when the data is displayed in a DataGrid, it displays some traversal links to get to the next table. Is there a way to merge the two tables? I want all the data presented on the top level of the DataGrid. Anybody have any ideas how I can do that? I'm currently doing it by creating my own columns and adding the values row by row. Is there an easier way to do this without having to manipulate the DataGrid manually?