00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef AXIOM_STAX_BUILDER_H 00019 #define AXIOM_STAX_BUILDER_H 00020 00021 #include <axiom_node.h> 00022 #include <axiom_xml_reader.h> 00023 #include <axiom_document.h> 00024 #include <axutil_env.h> 00025 00026 #ifdef __cplusplus 00027 extern "C" 00028 { 00029 #endif 00030 00037 typedef struct axiom_stax_builder axiom_stax_builder_t; 00038 00039 00045 AXIS2_EXTERN axiom_stax_builder_t * AXIS2_CALL 00046 axiom_stax_builder_create(const axutil_env_t *env, 00047 axiom_xml_reader_t *parser); 00048 00057 AXIS2_EXTERN axiom_node_t* AXIS2_CALL 00058 axiom_stax_builder_next(struct axiom_stax_builder *builder, 00059 const axutil_env_t *env); 00060 00067 AXIS2_EXTERN axis2_status_t AXIS2_CALL 00068 axiom_stax_builder_discard_current_element(struct axiom_stax_builder *builder, 00069 const axutil_env_t *env); 00070 00078 AXIS2_EXTERN void AXIS2_CALL 00079 axiom_stax_builder_free(struct axiom_stax_builder *builder, 00080 const axutil_env_t *env); 00081 00089 AXIS2_EXTERN axiom_document_t *AXIS2_CALL 00090 axiom_stax_builder_get_document(struct axiom_stax_builder *builder, 00091 const axutil_env_t *env); 00092 00097 AXIS2_EXTERN axis2_bool_t AXIS2_CALL 00098 axiom_stax_builder_is_complete(struct axiom_stax_builder* builder, 00099 const axutil_env_t *env); 00100 00105 AXIS2_EXTERN int AXIS2_CALL 00106 axiom_stax_builder_next_with_token(struct axiom_stax_builder *builder, 00107 const axutil_env_t *env); 00108 00112 #ifdef __cplusplus 00113 } 00114 #endif 00115 00116 00117 #endif /* AXIOM_STAX_BUILDER_H */