Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Thursday, July 23, 2009

AS3: default xml namespace oddity?

Thursday, July 23, 2009   

If you have two XML objects and you're reading XML for each of them, and after reading the first you set the default xml namespace to match that of the first XML, you'd think that when you loaded the second XML object (which uses the same namespace as the first), you wouldn't need to declare the namespace again, since you already did that.

I don't know why, but when I don't declare it again for the second object, I can't parse it normally. If I do set that namespace again for the second XML object, I can parse it just fine.

That seems really strange to me. Maybe I need to read up a little more on this little furry creature.
 
 Return to the main page
Comments:

There are currently 0 Comments:

 Leave a comment