Results 1 to 3 of 3

Thread: Element Ordering?

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2006
    Location
    Morrison, CO
    Posts
    22

    Element Ordering?

    Can someone that knows XML better than I, or that knows how to use their schema tools answer something for me?

    Does the order of elements really matter?

    Take for example the element 'sampler2D'. If my COLLADA object has the element 'magfilter' before 'minfilter', it won't pass the Coherency test. Is this the way things are intended to be, or is it a problem with how the schema was coded?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Since <minfilter>, <magfilter>, and their siblings are contained in an xs:sequence in the schema, the order does matter. In general, it seems that the schema usually specifies a specific ordering instead of allowing things to appear in any order.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2006
    Location
    Morrison, CO
    Posts
    22
    Doing some more reading after my post, I found somewhere that basically it's a limitation of XML Schema. Relax NG can indicate that order doesn't matter. Oh well. XML isn't really my thing. I'd rather do x86 assembly personally

Similar Threads

  1. ordering code
    By CarstenT in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-14-2015, 07:12 AM
  2. Replies: 2
    Last Post: 12-19-2013, 07:09 AM
  3. VAO/VBO indices [re]ordering
    By The Little Body in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-29-2013, 06:06 PM
  4. Ordering of transforms in <node> element
    By thayer_andrews in forum COLLADA
    Replies: 7
    Last Post: 08-25-2008, 07:39 AM
  5. z-axis ordering
    By elimin8tor in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-12-2002, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean