summaryrefslogtreecommitdiffstats
path: root/axiom/src
diff options
context:
space:
mode:
authorGravatar nandika2012-02-04 11:13:21 +0000
committerGravatar nandika2012-02-04 11:13:21 +0000
commit7c58c3b385c69ebad3c8203f984a15c3d169661a (patch)
tree678e6638f7e21c9e27c6a166e456957f3decc769 /axiom/src
parent68b3f0e277d02464303dd42dbce6275dc45df4c4 (diff)
downloadaxis2c-7c58c3b385c69ebad3c8203f984a15c3d169661a.tar.gz
axis2c-7c58c3b385c69ebad3c8203f984a15c3d169661a.tar.bz2
patch 0001 applied from jira issue 1582
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1240490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'axiom/src')
-rw-r--r--axiom/src/om/om_node.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/axiom/src/om/om_node.c b/axiom/src/om/om_node.c
index d32949c..f9c3504 100644
--- a/axiom/src/om/om_node.c
+++ b/axiom/src/om/om_node.c
@@ -1129,6 +1129,17 @@ axiom_node_get_previous_sibling(
}
AXIS2_EXTERN axiom_node_t *AXIS2_CALL
+axiom_node_get_previous_sibling_element(
+ axiom_node_t * om_node,
+ const axutil_env_t * env)
+{
+ axiom_node_t * result = axiom_node_get_previous_sibling( om_node, env );
+ while ( result && axiom_node_get_node_type(result, env) != AXIOM_ELEMENT )
+ result = axiom_node_get_previous_sibling( result, env );
+ return result;
+}
+
+AXIS2_EXTERN axiom_node_t *AXIS2_CALL
axiom_node_get_next_sibling(
axiom_node_t * om_node,
const axutil_env_t * env)
@@ -1160,6 +1171,18 @@ axiom_node_get_next_sibling(
return om_node->next_sibling;
}
+AXIS2_EXTERN axiom_node_t *AXIS2_CALL
+axiom_node_get_next_sibling_element(
+ axiom_node_t * om_node,
+ const axutil_env_t * env)
+{
+ axiom_node_t * result = axiom_node_get_next_sibling( om_node, env );
+ while ( result && axiom_node_get_node_type(result, env) != AXIOM_ELEMENT )
+ result = axiom_node_get_next_sibling( result, env );
+ return result;
+}
+
+
AXIS2_EXTERN axiom_types_t AXIS2_CALL
axiom_node_get_node_type(
axiom_node_t * om_node,