A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: A Product Catalog in XML

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    3

    A Product Catalog in XML

    Hello All -

    I am starting out with XML to build a product catalog in Flash. I have the following structure for my XML and would like to know if there is a better way of writing it.

    PHP Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <Catalog>
        <Item>Pants
            <Sub_Item>Wool
                <ID>54343</ID>
                <Color>Brown</Color>
                <Color>Black</Color>
                <Color>Grey</Color>
                <Size>28</Size>
                <Size>30</Size>
                <Size>32</Size>
                <Size>34</Size>
            </Sub_Item>
        </Item>
    </Catalog>
    Now getting this into the Flash page is a whole other story. I am still learning how to do this.

    Any help or leads woyuld be great. Thanks,

    matty
    Last edited by msettip; 10-21-2002 at 11:53 AM.

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    As long as the schema you have choosen for your XML works for you that is fine.

    One thing that you should watch for is things that may represent multiples (eg colors etc) should not be stored as attributes as these aren't as easily broken up.

    One other thing you might want to do is break your actual end item into several sections, I would consider appearance and price to be two logical ones to start with. You can expand from their.

    As for advice, the FAQ has heaps of info:

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

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Posts
    3
    Thanks for the help Tupps.

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