Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML Schema problem

XML Schema problem

Scheduled Pinned Locked Moved XML / XSL
xmlhelpdatabasetutorialquestion
2 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The_Infinite
    wrote on last edited by
    #1

    Hello. Im trying to create an xml schema that can capture the following behavior: 1. <info> element should be the first inside <root> 2. <ParamA>, <ParamB>, <ParamC>, <ParamD>, and <ParamE> are optional, should appear after the <info> element and can appear in any order. The following xml are valid:

    OR

    The following xml is NOT valid:

    I have tried doing:

    This causes an invalid xml schema error because an all model group is not allowed to appear inside another model group. I've also tried substitution:

    This is still getting an xml schema error on the usage of all model group. Does anyone have a similar problem or have any idea how to create an xml schema for the desired behavior stated above? Thanks.

    U 1 Reply Last reply
    0
    • T The_Infinite

      Hello. Im trying to create an xml schema that can capture the following behavior: 1. <info> element should be the first inside <root> 2. <ParamA>, <ParamB>, <ParamC>, <ParamD>, and <ParamE> are optional, should appear after the <info> element and can appear in any order. The following xml are valid:

      OR

      The following xml is NOT valid:

      I have tried doing:

      This causes an invalid xml schema error because an all model group is not allowed to appear inside another model group. I've also tried substitution:

      This is still getting an xml schema error on the usage of all model group. Does anyone have a similar problem or have any idea how to create an xml schema for the desired behavior stated above? Thanks.

      U Offline
      U Offline
      User 7911689
      wrote on last edited by
      #2
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups