FIX: ????? DataSet.WriteXML ????? ???? ????? ??? ?????? ? ???? ??????? System.FormatException ?????????? ??????? DataSet.ReadXML ???????

?????? ????????? ?????? ?????????
???? ???????: 321542 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??????? ????? XML ???? ????? ??? ??? ?? ???? ?? ???? ????? ??? 0.00001 ?????? ?????? ??? ??? ?? ???? ?? ???? ????. ?? ???? ??????? ????? DataSet.ReadXML ?????? ??? XML ?? ?????? ????? DataSet.WriteXML ????? ?????? ??? XML ????? ??????? ??? ???? ?? ??????. ??? ??? ?????? ????? DataSet.ReadXML ????? ????? ??? ??????? ???????:
System.FormatException - ????? ??????? ?? ??? ???????? ????.

?????

????????? ????? DataSet.WriteXML ??????? ????? Decimal.ToString ????? ???? ???? ????? ?????. ???? ????? Decimal.ToString ??????? ??????? ??? 0.00001 ?? ??????. ?? ????? ????? ??????? NumberStyles ?????? DataSet ?????? ?? ??? ????? ?????? ????? ?????. ????? ??? ??????? ??????? DataSet.ReadXML ?????? ????? ????? ?? ?????? ?????? ???? ??????? FormatException.

????

????? ???? ????? ???? ????? ?? Microsoft ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ??? ?????? ??? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? ????????? ??? ??????? ?????? ?? ???? ?????? ????? ????? ??? ??? ??????? ??????.

??? ??? ??????? ?????? ???? ?????? ??? ???????? ?? Microsoft "?????? ??? ??????? ??????. ?????? ??? ????? ????? ?????? ?????? ?????? ?????? ??? ???? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.????? ????? ????? ?????????? ?? ??? ??????? ?????? ???? ????? (?? ???? ????) ??????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date         Time   Version       Size       File name
   -----------------------------------------------------------
   03-May-2002  02:17  1.0.3705.271  1,294,336  System.xml.dll   

???? ??????

????? ??? ????? ?????? ?????? ????? ?? ???? ???? ?? ?????? ?? ????? ?????? ????? ??????? ??? ???? ????? ????? ?????? ??????? ??????? Decimal.Parse ????? AllowExponent NumberStyles.

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

????? ????? ????? ??????

?????? ??? ??????? ???? DataSet ????? ????? ? ????? ???? ????? ?? XML ???????:
  1. ????? ????? ???? ???? Microsoft Visual C# .NET ????.
    1. ??? ????? Microsoft Visual Studio .NET.
    2. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????.
    3. ??? ????? Project ? ???? ??? Visual C# ?????? ?? ???? ??? ????? ???? ?????? ??? ?????. ?????????? ??? ????? ??? ???? Class1.
  2. ??? ?????? ???????? ??????? ?? ????? ????? Class1.cs:
    using System.Data;
    using System.Xml; 
    
  3. ?? ?????? ????????? ???????? ??????? ??? ????? ??????? ?? ds Class1.cs:
    DataSet ds = new DataSet();
    ds.ReadXmlSchema("..\\..\\XMLSchema1.xsd");
    ds.ReadXml("..\\..\\XMLFile1.xml");
    ds.WriteXml("..\\..\\XMLFile1.xml");		
    ds.ReadXml("..\\..\\XMLFile1.xml");
    
  4. ?? "?????? ??????" ???? ??? ?????? ?????? ??? ??? ??????? ??? ??? ????? ?? ???? ??? ????? ???? ????. ???? ???? ????? ???? ????.
  5. ???? ??? ???? XML ??? ????? ?? ???? ??? ???. ?????????? ??? ????? XMLSchema1.
  6. ??????? ??? ??? XML ?? ?? ???????? ?????? ????? ?? ???????? ????????? ???????? ???????:
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      <xs:element name="NewDataSet" msdata:IsDataSet="true">
        <xs:complexType>
          <xs:choice maxOccurs="unbounded">
            <xs:element name="Table">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="name" type="xs:string" minOccurs="0" />
                  <xs:element name="tax" type="xs:decimal" minOccurs="0" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    
  7. ??? ?????? 4 ???? ??? ??? XML ??? ????? ??? ?? ???? ??? ???. ?????????? ??? ????? XMLFile1.
  8. ??????? ???????? ???????? ????????? ???????? ???????:
    <?xml version="1.0" standalone="yes" ?>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    	<NewDataSet>
    		<Table diffgr:id="Table1" msdata:rowOrder="0">
    			<name>test </name>
    			<tax>0.00001</tax>
    		</Table>
    		<Table diffgr:id="Table2" msdata:rowOrder="1">
    			<name>234</name>
    			<tax>12</tax>
    		</Table>
    	</NewDataSet>
    </diffgr:diffgram>
    
  9. ?? ??????? ????? ? ???? ??? ????.
???? ????? ????? ???????? ?? ??? "???????".

???????

???? ???????: 321542 - ????? ??? ??????: 08/?????/1426 - ??????: 1.6
????? ???
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.0 Service Pack 1
  • Microsoft .NET Framework 1.0 Service Pack 2
????? ??????: 
kbmt kbhotfixserver kbqfe kbvs2002sp1sweep kbprogramming kbschema kbxml kbqfe kbbug kbfix KB321542 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????321542

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com