Hi,

Tried to parse the following xml chunk.

<%

var x= <metadata xmlns="http://www.wso2.org/governance/metadata";>
              <application>
                  <key>test1</key>
                  <description>test1</description>
                  <name>test1</name>
              </application>
              <serviceLifecycle>
                  <lifecycleName>ApplicationLifecycle</lifecycleName>
               </serviceLifecycle>
           </metadata>;

print(x.application.key);

%>

The objective of this is to print the key. But when testing this on try it,
it prints an empty string. The issue is with the "xmlns" attribute NAME. It
will work for any other attribute other than xmlns. Is there any other way
to read the key?


Regards,

Dilshan
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to