Results 1 to 3 of 3

Thread: Element Ordering?

  1. #1
    Junior Member
    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
    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
    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

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