Skip to main content
gamedev.net
🔒 Locked

XML Schema Problem

Started by LordShade 0 replies 250+ views
Original Post
LordShade
LordShade
I am just starting to get into XML and have an issue I need help with. Say I define a few types like this:
    
<ElementType name="foo" dt:type="int" />
<ElementType name="bar" dt:type="int" />

<ElementType name="both" content="eltOnly">
  <element type="foo">
  <element type="bar">
</ElementType>
  
Now how do I create a new type that also has the "both" type?
  
<ElementType name="newType" content="eltOnly">
  <element name="containedBoth" type="both">
  ... more elements ...
</ElementType>
  
XML Spy doesn't like this for some reason. Is this possible or do I have to define the type in another file? Any help would be much appreciated. [edited by - LordShade on February 1, 2003 7:07:07 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.