xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric...@apache.org
Subject cvs commit: xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store Cursor.java
Date Tue, 16 Mar 2004 01:44:24 GMT
ericvas     2004/03/15 17:44:24

  Modified:    v1/src/xmlstore/org/apache/xmlbeans/impl/store Cursor.java
  Log:
  creating PIs with cursor were to restrictive
  
  Revision  Changes    Path
  1.8       +4 -1      xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Cursor.java
  
  Index: Cursor.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Cursor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Cursor.java	16 Mar 2004 00:04:36 -0000	1.7
  +++ Cursor.java	16 Mar 2004 01:44:24 -0000	1.8
  @@ -870,7 +870,10 @@
   
       public void insertProcInst ( String target, String value )
       {
  -        validatePrefix( target ); // used becuase "<?xml...?> is disallowed
  +        validateLocalName( target ); // used becuase "<?xml...?> is disallowed
  +
  +        if (Splay.beginsWithXml( target ) && target.length() == 3)
  +            throw new IllegalArgumentException( "Target begins with 'xml'" );
       
           synchronized ( monitor() )
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


Mime
View raw message