A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Curing XML whitespace problems..?

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    336

    Is there anything I can do to get Flash to treat whitespace normally? It is awfully annoying to write an XML document without spacing out the nodes to look nice. And when I use any sort of carriage returns or anything, I get very strange results when my XML is loaded.

    Any help?

    Thanks.
    fe.

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Well the easy answer (and the most common of mine) is to look at the FAQ:

    http://www.tupps.com/flash/faq/xml.html

    However I would also point you towards a rant that Vaykent, myself and a few others had a weeks or so ago:

    http://board.flashkit.com/board/show...hreadid=263033

    Basically, if you program it right you don't need to worry about the whitespace.

    A great recent example of a well coded flash app to allow you to extend your XML without breaking your code is by zipface here:

    http://board.flashkit.com/board/show...hreadid=267905

    Have a look at the link to his included actionscript file and the function buildProductText in particular.

    Code like this and you won't have to may problems.

    Thanks

    Luke


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center