• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Creating XSD from XML data

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating XSD from XML data

    Anyone know how to do this? Is it possible in XML Spy?

    I know there can be issues, such as incomplete XML data, but anything would help....

    Thanks in advance!

    #2
    why do you want to create it automatically

    IMO you'll find less problems doing it yourself based on a spec than hoping that the XML file your trying to base it on contains all the correct data
    Coffee's for closers

    Comment


      #3
      Originally posted by Spacecadet
      why do you want to create it automatically

      IMO you'll find less problems doing it yourself based on a spec than hoping that the XML file your trying to base it on contains all the correct data

      Yep I agree, in fact that is what I suggested -- it's for another team here.

      They just want to use the data to create the bulk of the structure, and fill in the blanks so to say.

      Comment


        #4
        xmlpad

        Comment


          #5
          Originally posted by scotspine
          xmlpad
          Looks like you can create the DTD from the XMlL, but there's no mention of the XSD.

          I'll take a look in more detail - thanks.

          Comment


            #6
            xml>create schema>generate new w3c schema

            Comment


              #7
              How can you ever expect the XSD produced to be useful?

              Optional elements and attributes, field lengths, patterns (regex), sequence, unions, referenced types, namespaces, and lots and lots more are in the XSD that can never be "inferred" by one or more XML instances.

              Madness.

              Comment


                #8
                he mentioned using it as a starting point, nothing more...

                Comment


                  #9
                  Yep that's right, just a starting point -- and God knows if they only want it for "documentational" purposes, i.e. never to be seen again!

                  Thanks again.

                  Comment


                    #10
                    .NET can do it. At least it claims to. Never tried it in anger.

                    Comment

                    Working...
                    X