[Mashup-dev] [jira] Commented: (MASHUP-758) Issue with decendants method of XML object

Keith Godwin Chapman (JIRA) jira at wso2.org
Mon Jun 30 22:41:34 PDT 2008


    [ https://wso2.org/jira/browse/MASHUP-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796#action_17796 ] 

Keith Godwin Chapman commented on MASHUP-758:
---------------------------------------------

Differing to future as there are work arounds for the moment.

> Issue with decendants method of XML object
> ------------------------------------------
>
>                 Key: MASHUP-758
>                 URL: https://wso2.org/jira/browse/MASHUP-758
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>            Reporter: Keith Godwin Chapman
>            Assignee: Keith Godwin Chapman
>             Fix For: Future
>
>
> function descendants2(){
> 	var e = <employees>
>      			<employee id="0" ><name>Jim</name><age>25</age></employee>
>      			<employee id="1" ><name>Joe</name><age>20</age></employee>
>      		</employees>;
> 	return e.descendants("name");
> }
> returns <name>Jim</name><name>Joe</name> as expected but
> function descendants1(){
> 	var e = <employees>
>      			<employee id="0" ><name>Jim</name><age>25</age></employee>
>      			<employee id="1" ><name>Joe</name><age>20</age></employee>
>      		</employees>;
> 	return e.descendants();
> }
> returns <employee id="0" /><name />Jim<age />25<employee id="1" /><name />Joe<age />20 which looks strange.
> Shouldn't it be returning <employee id="0" /><name>Jim</name><age>25</age><employee id="1" /><name>Joe</name><age>20</age> instead?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Mashup-dev mailing list