From 7c58c3b385c69ebad3c8203f984a15c3d169661a Mon Sep 17 00:00:00 2001 From: nandika Date: Sat, 4 Feb 2012 11:13:21 +0000 Subject: 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 --- axiom/src/om/om_node.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'axiom/src/om') 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 @@ -1128,6 +1128,17 @@ axiom_node_get_previous_sibling( return om_node->prev_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, @@ -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, -- cgit v1.1-32-gdbae