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. Issues w/ xsd.exe tool

Issues w/ xsd.exe tool

Scheduled Pinned Locked Moved XML / XSL
csharpxmlasp-netdatabasedotnet
1 Posts 1 Posters 0 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.
  • M Offline
    M Offline
    mcs130
    wrote on last edited by
    #1

    Hello, First I'll state that I put this question on the XML section of the forum at www.asp.net and have not been able to get one response, perhaps someone here has run into this. I currently have an instance XML document that validates cleanly against an XSD file. That XSD has 2 tags referencing other component XSD files. All of the files are located in the same directory. The declaration and imports in the "parent" schema look like this: The first imported schema declaration looks like this: The second imported schema declaration looks like this: When I run the xsd.exe tool on the "parent" schema: xsd.exe -c -l:c# -n:XMLSerializationTest ConnectResponse.xsd I get nothing but errors....yet the instance of the actual XML document validates perfectly w/ the 3 schemas. Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation warning: The 'http://www.xyz.com/ARFResponse:Products' el ement is not declared. Line 12, position 7. Schema validation warning: The 'http://www.xyz.com/CPUResponse:Products' el ement is not declared. Line 13, position 7. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Error: Error generating classes for schema 'ConnectResponse'. - The element 'http://www.xyz.com/ARFResponse:Products' is missing. Is there some limitation to using this tool when multiple XSDs comprise a set for validation purposes - i

    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