dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlTextReader.cs,1.15,1.16


From: adam ballai <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlTextReader.cs,1.15,1.16
Date: Fri, 10 Jan 2003 22:04:22 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Xml
In directory subversions:/tmp/cvs-serv24011/pnetlib/System.Xml

Modified Files:
        XmlTextReader.cs 
Log Message:


Index: XmlTextReader.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Xml/XmlTextReader.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** XmlTextReader.cs    11 Jan 2003 01:32:03 -0000      1.15
--- XmlTextReader.cs    11 Jan 2003 03:04:20 -0000      1.16
***************
*** 597,615 ****
                                                if(structFlag != true)
                                                {
!                                                       throw new XmlException
!                                                               
(S._("Xml_Malformed"));
                                                }
-                                               
-                                               // End element tag.
-                                               name = ReadIdentifier(-1);
-                                               SkipWhite();
-                                               Expect('>');
-                                               nodeType = 
XmlNodeType.EndElement;
-                                               SetName(name);
-                                               value = String.Empty;
-                                               attributes = null;
-                                               attributeIndex = -1;
-                                               isEmpty = false;
-                                               --depth;        
                                                break;
                                        case '?':
--- 597,619 ----
                                                if(structFlag != true)
                                                {
!                                                       SkipWhite();
!                                                       Expect('>');
!                                                       nodeType = 
XmlNodeType.EndElement;
!                                                       isEmpty = true;
!                                               }
!                                               else
!                                               {
!                                                       // End element tag.
!                                                       name = 
ReadIdentifier(-1);
!                                                       SkipWhite();
!                                                       Expect('>');
!                                                       nodeType = 
XmlNodeType.EndElement;
!                                                       SetName(name);
!                                                       value = String.Empty;
!                                                       attributes = null;
!                                                       attributeIndex = -1;
!                                                       isEmpty = false;
!                                                       --depth;        
                                                }
                                                break;
                                        case '?':
***************
*** 733,736 ****
--- 737,741 ----
                                                SetName(name);
                                                nodeType = 
XmlNodeType.Attribute;
+                                               attributeIndex++;
                                                // reset buffer
                                                builder = new StringBuilder();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]