[ 
https://issues.apache.org/jira/browse/AXIS2C-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483501
 ] 

Dumindu Pallewela commented on AXIS2C-553:
------------------------------------------

I think this function should be capable of searching for the elements even when 
only the local name is provided. Take the following xml for example:

<a xmlns="urn:x">
  <b />
</a>

in this case, the axiom_element_get_first_child_with_qname function cannot be 
used to get the element 'b'. Sine it has no namespace in it's qname. The 
current implementation of the function cannnot be used to find an element like 
'a' either. since, it's prefix is null (default namespace).

My suggestion is that axiom_element_get_first_child_with_qname function should 
be capable of searching for an element in all the following situations:
1. element qname has no namespace at all.
2. element qname has a namespace but without a prefix.
3. element qname has a namespace with a namespace prefix.

> axiom_element_get_first_child_with_qname  method  is not working as expected.
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2C-553
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-553
>             Project: Axis2-C
>          Issue Type: Bug
>            Reporter: Manjula Peiris
>         Assigned To: Samisa Abeysinghe
>             Fix For: 1.0.0
>
>
> When we provide a qname to this method, where the qname is created by giving 
> local name, namespace ,and prefix the method returns NULL, Even when it 
> shouldn't return NULL. But the method returns correct results when i provide 
> only the local name to create the qname.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to