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: 1.1


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

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to