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.26,1.27


From: adam ballai <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Xml XmlTextReader.cs,1.26,1.27
Date: Fri, 17 Jan 2003 02:51:16 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Xml
In directory subversions:/tmp/cvs-serv21867/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.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** XmlTextReader.cs    17 Jan 2003 04:57:38 -0000      1.26
--- XmlTextReader.cs    17 Jan 2003 07:51:13 -0000      1.27
***************
*** 980,1024 ****
                        
                                
!                               switch (nodeType)
                                {
!                                       case XmlNodeType.Attribute:
!                                               // Set structFlag to true so 
quoteChar will
!                                               // know it is the first quote
!                                               AnalyzeChar(ch,true);
!                                               return true;
!                                       default:
!                                               // Handling, set flag to true 
if first char is <
!                                               if ((char)ch == '<')
!                                               {
!                                                       AnalyzeChar(ch, true);
!                                                       tempName = name;
!                                                       while(readAttribute == 
true)
!                                                       {
!                                                               ch = ReadChar();
!                                                               AnalyzeChar(ch, 
false);
!                                                               // set back to 
Element node type
!                                                               // for proper 
implementation behavior
!                                                               nodeType = 
XmlNodeType.Element;
!                                                               name = tempName;
!                                                               value = 
String.Empty;
!                                                       }
!                                               }
!                                               else 
!                                               {
!                                                       AnalyzeChar(ch, false);
!                                                       tempName = name;
!                                                       while(readAttribute == 
true)
!                                                       {
!                                                               ch = ReadChar();
!                                                               AnalyzeChar(ch, 
false);
!                                                               // set back to 
Element node type
!                                                               // for proper 
implementation behavior
!                                                               nodeType = 
XmlNodeType.Element;
!                                                               name = tempName;
!                                                               value = 
String.Empty;
!                                                       }
!                                               }
!                                               return true;
                                }
                                return false;
  
--- 980,1027 ----
                        
                                
!                               // Handling, set flag to true if first char is <
!                               if ((char)ch == '<')
                                {
!                                       AnalyzeChar(ch, true);
!                                       tempName = Name;
!                                       while(readAttribute == true)
!                                       {
!                                               ch = ReadChar();
!                                               // get AttributeName
!                                               AnalyzeChar(ch, false);
!                                               ch = ReadChar();
!                                               // get AttributeValue
!                                               AnalyzeChar(ch, true);
!                                               // set back to Element node type
!                                               // for proper implementation 
behavior
!                                               ClearNodeInfo();
!                                               nodeType = XmlNodeType.Element;
!                                               SetName(tempName);
!                                               value = String.Empty;
!                                       }
!                                       return true;
                                }
+                               else 
+                               {
+                                       AnalyzeChar(ch, false);
+                                       tempName = Name;
+                                       while(readAttribute == true)
+                                       {
+                                               ch = ReadChar();
+                                               // get AttributeName
+                                               AnalyzeChar(ch, false);
+                                               ch = ReadChar();
+                                               // get AttributeValue
+                                               AnalyzeChar(ch, true);
+                                               // set back to Element node type
+                                               // for proper implementation 
behavior
+                                               ClearNodeInfo();
+                                               nodeType = XmlNodeType.Element;
+                                               SetName(tempName);
+                                               value = String.Empty;
+                                       }
+                                       return true;
+                               }
+                       
                                return false;
  





reply via email to

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