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.27,1.28


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

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Xml
In directory subversions:/tmp/cvs-serv18652/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.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** XmlTextReader.cs    17 Jan 2003 07:51:13 -0000      1.27
--- XmlTextReader.cs    17 Jan 2003 18:26:14 -0000      1.28
***************
*** 848,854 ****
                                                break;
                                        case '=':
!                                               ClearNodeInfo();
!                                               //name = builder.ToString();
!                                               //SetName(name);
                                                nodeType = 
XmlNodeType.Attribute;
                                                attr = new 
XmlAttributeToken(nameTable,builder.ToString(),null);
--- 848,853 ----
                                                break;
                                        case '=':
!                                               name = builder.ToString();
!                                               SetName(name);
                                                nodeType = 
XmlNodeType.Attribute;
                                                attr = new 
XmlAttributeToken(nameTable,builder.ToString(),null);
***************
*** 874,878 ****
                                                                
attributes.Append(attr);
                                                                nodeType = 
XmlNodeType.Text;
! 
                                                                // go to next 
char
                                                                SkipWhite();
--- 873,877 ----
                                                                
attributes.Append(attr);
                                                                nodeType = 
XmlNodeType.Text;
!                                                               
                                                                // go to next 
char
                                                                SkipWhite();
***************
*** 995,999 ****
                                                // set back to Element node type
                                                // for proper implementation 
behavior
-                                               ClearNodeInfo();
                                                nodeType = XmlNodeType.Element;
                                                SetName(tempName);
--- 994,997 ----
***************
*** 1016,1020 ****
                                                // set back to Element node type
                                                // for proper implementation 
behavior
-                                               ClearNodeInfo();
                                                nodeType = XmlNodeType.Element;
                                                SetName(tempName);
--- 1014,1017 ----
***************
*** 1249,1261 ****
                                {
                                        builder.Append("<"+Name);
!                                       ch = reader.Peek();
!                                       if((char)ch == '<')
!                                       {
!                                               builder.Append(">");
!                                       }
!                                       else
                                        {
!                                               builder.Append(" ");
                                        }
                                }
                                else if(NodeType == XmlNodeType.Attribute)
--- 1246,1260 ----
                                {
                                        builder.Append("<"+Name);
!                                       if(attributes.Count >= 0)
                                        {
!                                               for (int a=0; a < 
attributes.Count; a++)
!                                               {
!                                                       attr = attributes[a];
!                                                       builder.Append(" " + 
attr.Name + "=" 
!                                                                       + 
QuoteChar + attr.Value + QuoteChar);
!                                               }
                                        }
+                                       builder.Append(">");
+                                               
                                }
                                else if(NodeType == XmlNodeType.Attribute)
***************
*** 1738,1742 ****
        { 
                private String value = null;
! 
                public XmlAttributeToken(XmlNameTable nt,String name,String ns):
                        base(null,GetNameInfo(nt,name,null,null))
--- 1737,1741 ----
        { 
                private String value = null;
!               
                public XmlAttributeToken(XmlNameTable nt,String name,String ns):
                        base(null,GetNameInfo(nt,name,null,null))
***************
*** 1749,1753 ****
                                String ns)
                {
!                       String name;
  
                        if(localName == null)
--- 1748,1752 ----
                                String ns)
                {
!                       string name;
  
                        if(localName == null)
***************
*** 1797,1800 ****
--- 1796,1800 ----
                        }
                }
+                               
        }
  





reply via email to

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