[Mashup-dev] [jira] Commented: (MASHUP-759) Issue with
hasComplexContent method of XML object
Keith Godwin Chapman (JIRA)
jira at wso2.org
Mon Jun 30 22:43:35 PDT 2008
[ https://wso2.org/jira/browse/MASHUP-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17797#action_17797 ]
Keith Godwin Chapman commented on MASHUP-759:
---------------------------------------------
Differing to future as there are work arounds for the moment.
> 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: Future
>
>
> 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
More information about the Mashup-dev
mailing list