RE: [Flashcoders] Error check for parseXML()

2006-10-09 Thread Mike Keesey
006 2:21 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Error check for parseXML() > > Hi, > you should put the conditional in a callback, because when execution > reaches the conditional xml parsing might not have finished parsing. > > var xml:XML = ne

Re: [Flashcoders] Error check for parseXML()

2006-10-07 Thread Ray Chuan
e("Error in XML! Code: " + xml.status); } ― Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael > Sent: Friday, October 06, 2006 6:50 AM > To: Flashcoders mailing list > Subject: [F

RE: [Flashcoders] Error check for parseXML()

2006-10-06 Thread Mike Keesey
gt; From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael > Sent: Friday, October 06, 2006 6:50 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Error check for parseXML() > > Hi list... > > According to the help docs, > pub

Re: [Flashcoders] Error check for parseXML()

2006-10-06 Thread Anggie Bratadinata
How about xmlobj.status ? If the xml is successfully loaded and parsed, you get 0 on the output panel. Otherwise, you get a negative number (-2 , ... -10). -2: A CDATA is not closed -3: The initial XML declaration is malformed -4: The DOCTYPE declaration is malformed -5: A comment has no closed s

Re: [Flashcoders] Error check for parseXML()

2006-10-06 Thread Michael Stuhr
Mendelsohn, Michael schrieb: Hi list... According to the help docs, public parseXML(value:String) : Void doesn't return an integer or anything to indicate successful parsing of the xml. How can I be certain that I've passed in some error free xml and it was able to parse? the XML-Object it

Re: [Flashcoders] Error check for parseXML()

2006-10-06 Thread Gustavo Teider - Adobe Flash Developer
Mendelsohn, Michael escreveu: Hi list... According to the help docs, public parseXML(value:String) : Void I think that when did you use :Void , the function doesn´t return any value ... try it public parseXML(value:String):String { } -- Gustavo Teider ( gugateider ) www.gugat

[Flashcoders] Error check for parseXML()

2006-10-06 Thread Mendelsohn, Michael
Hi list... According to the help docs, public parseXML(value:String) : Void doesn't return an integer or anything to indicate successful parsing of the xml. How can I be certain that I've passed in some error free xml and it was able to parse? Thanks, - Michael M. _