Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlException


    }
    catch( Exception e )
    {
      if( e instanceof XmlException )
      {
        XmlException xe = ( XmlException )e;
        XmlError error = xe.getError();
        if( error != null )
          System.err.println( "Error at line " + error.getLine() + ", column " + error.getColumn() );
      }

      if( e instanceof RestConversionException )
View Full Code Here


    {
      return XmlObject.Factory.parse( input, xmlOptions );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

    {
      return XmlObject.Factory.parse( input, xmlOptions );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

    {
      return XmlObject.Factory.parse( input, xmlOptions );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

    {
      return XmlObject.Factory.parse( input );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

    {
      return XmlObject.Factory.parse( input );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

    {
      return XmlObject.Factory.parse( input );
    }
    catch( Exception e )
    {
      throw new XmlException( e.toString() );
    }
  }
View Full Code Here

            attributes.put( qname, newAttribute );
            newAttribute.validate( context );
          }
        }
        else
          throw new XmlException( "Illegal attribute!" );
        seen.add( qname );
      }
      while( cursor.toNextAttribute() );
    }
    // Make sure all attributes have been accounted for
    for( QName item : attributes.keySet() )
    {
      if( !seen.contains( item ) && !attributes.get( item ).getAttribute( "use" ).equals( "optional" ) )
      {
        if( context.getHandler().callback( ConflictHandler.Event.MODIFICATION, ConflictHandler.Type.ATTRIBUTE,
            item, context.getPath(), "Required attribute missing." ) )
        {
          attributes.get( item ).setAttribute( "use", "optional" );
        }
        else
          throw new XmlException( "Required attribute missing!" );
      }
    }
    cursor.pop();
    if( !cursor.toFirstChild() )
      cursor.toFirstContentToken();
View Full Code Here

        context.getCursor().pop();
        validateContent( context );
        return;
      }
      else
        throw new XmlException( problem );
    }
    context.getCursor().pop();
  }
View Full Code Here

        // return
        // context.getSchemaSystem().getType(newType.schemaType().getName());
        simpleType = newType;
      }
      else
        throw new XmlException( "Invalid value!" );
    }
    return this;
  }
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.XmlException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.