public void LXML(String s)
{
//实例化一个xml文档
XmlDocument myXmlDoc = new XmlDocument();
//加载xml文档
myXmlDoc.LoadXml(s);
//获得第一个为Computers的根节点
XmlNodeList objXmlNodes = myXmlDoc.SelectNodes("//ProductDetailInfo");
StringBuilder str = new StringBuilder();
foreach (XmlNode objXmlNode in objXmlNodes)
{
#region 基本信息
string ProductID = objXmlNode.Attributes["ProductID"].Value.ToString();
string ProductName = objXmlNode.Attributes["ProductName"].Value.ToString();
string NotApplicableDate = objXmlNode.Attributes["NotApplicableDate"].Value.ToString();
string Name = objXmlNode.Attributes["Name"].Value.ToString();
string ProductItemType = objXmlNode.Attributes["ProductItemType"].Value.ToString();
string SoldOut = objXmlNode.Attributes["SoldOut"].Value.ToString();
string IsRobItem = objXmlNode.Attributes["IsRobItem"].Value.ToString();
string AllowInvoice = objXmlNode.Attributes["AllowInvoice"].Value.ToString();
string ProductStatus = objXmlNode.Attributes["ProductStatus"].Value.ToString();
string Quantity = objXmlNode.Attributes["Quantity"].Value.ToString();
string TotalQuantity = objXmlNode.Attributes["TotalQuantity"].Value.ToString();
#endregion
#region 有效期
string saleStartDate = "";
string saleEndDate = "";
XmlNode saleNodes = objXmlNode.SelectSingleNode("SaleDateRange ");
if (saleNodes != null)
{