Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LordShade

XML Schema Problem

This topic is 5771 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!