View unanswered posts | View active topics



Reply to topic  [ 4 posts ] 
AS3 - XML and Namespace 
Author Message
Member

Joined: Mon Jan 26, 2015 3:52 pm
Posts: 15
Reply with quote
Hi,

I'm trying to retrieve an xml from a webservice and displaying some infos but I have the xml

xmlWSData = XML@4ee2c59 element <Presentation xmlns="http://schemas.datacontract.org/myWebService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

and after I have the list:

0 = XML@4ce3509 element <ConfDate xmlns="http://schemas.datacontract.org/myWebService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
0 = XML@8817b81 text 2014/11/05

I created namespace and after I tried some combination without the trace of what I want.

var ns:Namespace = new Namespace("http://schemas.datacontract.org/myWebService");
var nsII:Namespace = new Namespace("http://www.w3.org/2001/XMLSchema-instance");
var xmlWSData:XML = new XML(pEvt.target.data);

What I have to do for displaying the date?

Chantal


Wed Feb 11, 2015 5:29 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
http://stackoverflow.com/questions/3597 ... e4x-in-as3


Wed Feb 11, 2015 5:36 pm
Profile WWW
Member

Joined: Mon Jan 26, 2015 3:52 pm
Posts: 15
Reply with quote
Yes, I tried with this link without luck. Maybe it's because I have 2 namespace? :-(

Thanks for your help!
Chantal


Wed Feb 11, 2015 6:20 pm
Profile
Member

Joined: Mon Jan 26, 2015 3:52 pm
Posts: 15
Reply with quote
Finally, I found how to reach the text.


Wed Feb 11, 2015 8:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.