# axiom_stax_builder.h

    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     axiom_stax_builder_discard_current_element(
    00073         struct axiom_stax_builder *builder,
    00074         const axutil_env_t * env);
    00075
    00083     AXIS2_EXTERN void AXIS2_CALL
    00084     axiom_stax_builder_free(
    00085         struct axiom_stax_builder *builder,
    00086         const axutil_env_t * env);
    00087
    00096     AXIS2_EXTERN void AXIS2_CALL
    00097     axiom_stax_builder_free_self(
    00098         struct axiom_stax_builder *builder,
    00099         const axutil_env_t * env);
    00100
    00108     AXIS2_EXTERN axiom_document_t *AXIS2_CALL
    00109     axiom_stax_builder_get_document(
    00110         struct axiom_stax_builder *builder,
    00111         const axutil_env_t * env);
    00112
    00121     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00122     axiom_stax_builder_is_complete(
    00123         struct axiom_stax_builder *builder,
    00124         const axutil_env_t * env);
    00125
    00132     AXIS2_EXTERN int AXIS2_CALL
    00133     axiom_stax_builder_next_with_token(
    00134         struct axiom_stax_builder *builder,
    00135         const axutil_env_t * env);
    00136
    00139 #ifdef __cplusplus
    00140 }
    00141 #endif
    00142
    00143 #endif                          /* AXIOM_STAX_BUILDER_H */