Issue with hasComplexContent method of XML object
-------------------------------------------------

                 Key: MASHUP-759
                 URL: https://wso2.org/jira/browse/MASHUP-759
             Project: WSO2 Mashup Server
          Issue Type: Bug
            Reporter: Keith Godwin Chapman
            Assignee: Keith Godwin Chapman
             Fix For: 1.1


function hasComplexContent1(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
                </employees>;
        var x = e.employee[0].name;
        print(typeof(e.employee[0].name));
        return x.hasComplexContent();
}

function hasComplexContent2(){
        var x= <name>Jim</name>;
        return x.hasComplexContent();
}

In the above two operations hasComplexContent1 returns true while 
hasComplexContent2 returns false. Whats strange is that the typeof 
e.employee[0].name is XML but during debugging the x.hasComplexContent() method 
goes through XMLList. Need to take a look into this issue further

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