![ContractedBlock.gif](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
1 PartBOMQuery2.WS_PartBOM2 wsPB = new PartBOMQuery2.WS_PartBOM2();
2 string partNo = partNumber.Name;
3 DataSet ds = new DataSet();
4
5 String strReturnValue = wsPB.getBOMStructure(partNo.Substring(0, 12), partNo.Substring(13, 3));
6 if (strReturnValue == string.Empty)
7 {
8 this.ShowMessage("Not find the EBOM information!");
9 return;
10 }
11
12
13 StringReader stream = new StringReader(strReturnValue );
14 XmlTextReader xmlreader = new XmlTextReader(stream);
15 ds.ReadXml(xmlreader);