00001 00002 /* 00003 * Licensed to the Apache Software Foundation (ASF) under one or more 00004 * contributor license agreements. See the NOTICE file distributed with 00005 * this work for additional information regarding copyright ownership. 00006 * The ASF licenses this file to You under the Apache License, Version 2.0 00007 * (the "License"); you may not use this file except in compliance with 00008 * the License. You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 00019 #ifndef AXIOM_STAX_BUILDER_H 00020 #define AXIOM_STAX_BUILDER_H 00021 00022 #include <axiom_node.h> 00023 #include <axiom_xml_reader.h> 00024 #include <axiom_document.h> 00025 #include <axutil_env.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" 00029 { 00030 #endif 00031 00038 typedef struct axiom_stax_builder axiom_stax_builder_t; 00039 00047 AXIS2_EXTERN axiom_stax_builder_t *AXIS2_CALL 00048 axiom_stax_builder_create( 00049 const axutil_env_t * env, 00050 axiom_xml_reader_t * parser); 00051 00060 AXIS2_EXTERN axiom_node_t *AXIS2_CALL 00061 axiom_stax_builder_next( 00062 struct axiom_stax_builder *builder, 00063 const axutil_env_t * env); 00064 00071 AXIS2_EXTERN axis2_status_t AXIS2_CALL 00072 00073 axiom_stax_builder_discard_current_element( 00074 struct axiom_stax_builder *builder, 00075 const axutil_env_t * env); 00076 00084 AXIS2_EXTERN void AXIS2_CALL 00085 axiom_stax_builder_free( 00086 struct axiom_stax_builder *builder, 00087 const axutil_env_t * env); 00088 00097 AXIS2_EXTERN void AXIS2_CALL 00098 axiom_stax_builder_free_self( 00099 struct axiom_stax_builder *builder, 00100 const axutil_env_t * env); 00101 00109 AXIS2_EXTERN axiom_document_t *AXIS2_CALL 00110 00111 axiom_stax_builder_get_document( 00112 struct axiom_stax_builder *builder, 00113 const axutil_env_t * env); 00114 00119 AXIS2_EXTERN axis2_bool_t AXIS2_CALL 00120 axiom_stax_builder_is_complete( 00121 struct axiom_stax_builder *builder, 00122 const axutil_env_t * env); 00123 00128 AXIS2_EXTERN int AXIS2_CALL 00129 axiom_stax_builder_next_with_token( 00130 struct axiom_stax_builder *builder, 00131 const axutil_env_t * env); 00132 00135 #ifdef __cplusplus 00136 } 00137 #endif 00138 00139 #endif /* AXIOM_STAX_BUILDER_H */