0 No error; parse was completed successfully.
 
 -2 A CDATA section was not properly terminated.
 
 -3 The XML declaration was not properly terminated.
 
 -4 The DOCTYPE declaration was not properly terminated.
 
 -5 A comment was not properly terminated.
 
 -6 An XML element was malformed.
 
 -7 Out of memory.
 
 -8 An attribute value was not properly terminated.
 
 -9 A start-tag was not matched with an end-tag.
 
 -10 An end-tag was encountered without a matching start-tag.
 

> -----Original Message-----
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
> Sent: 17 September 2002 14:24
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] OT: Flash and XML....
> 
> 
> Tum tee tum....
> 
> Anyone know what "-6" is when Flash MX's XML parser throws and error??
> 
> Latest bit of actionscript...
> myXML = new XML();
> myXML.load ("http://myurl/menu.cfm";);
> 
> myXML.onLoad = function(success) {
>  if (success) {
>   if (myXML.status == 0) {
> // Do stuff
>    myXML.ignoreWhite = true;
>    thisMenu = myXML.childNodes[0];
>    thisLevel = thisMenu.attributes.type;
>    MenuItems = thisMenu.childNodes.length;
>   } else {
>    trace("Parse Error:"+myXML.status);
>   }
>  } else {
>   trace("Load Error");
>  }
> }
> 
> Stephen
> ----- Original Message -----
> From: "Stephen Moretti" <[EMAIL PROTECTED]>
> To: "CFDeveloper Dev List" <[EMAIL PROTECTED]>
> Sent: Monday, September 16, 2002 5:09 PM
> Subject: [ cf-dev ] OT: Flash and XML....
> 
> 
> > Only sort of OT, cos the XML is being generated by CF, but 
> anyway....
> >
> > Got this problem....
> >
> > myXML = new XML('<menu type="Level1"><menuitem title="Collections"
> > action="collection.display" ContentID="184" 
> highlight="off"/><menuitem
> > title="Products" action="product.display" ContentID="185"
> > highlight="off"/><menuitem title="Information" action="display"
> > ContentID="1" highlight="off"/><menuitem title="Contact" 
> action="display"
> > ContentID="137" highlight="off"/></menu>');
> > myXML.ignoreWhite = true;
> > thisMenu = myXML.childNodes[0];
> > thisLevel = thisMenu.attributes.type;
> > MenuItems = thisMenu.childNodes.length;
> >
> > This works great....
> >
> > However, when I do
> >
> > myXML = new XML();
> > myXML.load ("http://myurl/menu.cfm";);
> > myXML.ignoreWhite = true;
> > thisMenu = myXML.childNodes[0];
> > thisLevel = thisMenu.attributes.type;
> > MenuItems = thisMenu.childNodes.length;
> >
> > the XML loads into myXML correctly, but returns undefined 
> for thisMenu,
> > thisLevel and MenuItems.
> >
> > I should mention that menu.cfm returns almost exactly the 
> same XML as is
> in
> > the top code, but for a few bits of white space, tabs etc.....
> >
> > Any thoughts??
> >
> > Stephen
> >
> >
> >
> > --
> > ** Archive: 
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to