XML newbie

  • Creator
    Topic
  • #48768
    Tim Hallbauer
    Participant

      I am an XML newbie. I have to build an interface to a video EEG system and have absolutely no idea where to start to build the XML. I purchased an XML book but am stumped. Is there anyone out there that can point me in the right direction?

      Thanks,

      Tim

    Viewing 10 reply threads
    • Author
      Replies
      • #59611
        Mike Grieger
        Participant

          Is XML source and/or destination?  (ie. – HL7 to XML, XML to HL7, XML to XML)   A good place to start is to get the XML schema from your vendor, and getting that compiled into Cloverleaf.

        • #59612
          Tim Hallbauer
          Participant

            HL7 to XML to the vendor, then XML to HL7 back. I have a schema in a Word doc. Do I just create that in a file and then compile it?

          • #59613
            Anonymous
            Participant

              Tim,

              can you post the schema? Lets take a look at it.

              Thanks

              Reggie

            • #59614
              Bill Bertera
              Participant

                Tim Hallbauer wrote:

                HL7 to XML to the vendor, then XML to HL7 back. I have a schema in a Word doc. Do I just create that in a file and then compile it?

                yah, cut and paste it into a text file, with extension .xsd. upload to Cloverleaf /formats/xml directory (might need a sub-dir underneath that, can’t remember) and compile with Xml Configurator, and see what happens.

              • #59615
                Tim Hallbauer
                Participant

                  Been away for a while. Thanks for the help so far. Here’s the schema.

                   

                       ORM

                       O01

                   

                   

                       

                       

                       

                       

                       

                       

                       

                       

                       

                       

                       

                       

                       

                   

                   

                       

                       

                             

                       

                   

                • #59616
                  Pete Gilbert
                  Participant

                    Unfortunately, that doesn’t appear to be an xml schema. It looks like a stub xml doc.

                  • #59617
                    Tim Hallbauer
                    Participant

                      Unfortunatly that’s all they gave me. Where do I go from here? What should I ask for? When I told him I needed a shema, he said that was it.

                      Detailed Description

                      XML input format

                      The raw format of the XML is as follows:

                       

                           ORM

                           O01

                    • #59618
                      Pete Gilbert
                      Participant

                        XML Spy will take a simple xml doc like you have and generate a schema from it.  This is what I got from xml spy when I fed your doc into it and asked it to do so:

                        http://www.w3.org/2001/XMLSchema” elementFormDefault=”qualified”>

                        Note that there are no real data types here, just simple strings.

                        I believe that you can download a free, home version of XML Spy from the ALtova website.

                      • #59619
                        Tim Hallbauer
                        Participant

                          Thanks, I’ll try that.

                        • #59620
                          Tim Hallbauer
                          Participant

                            I was able to get the XML Spy and import the text document using the convert option, but what I get looks nothing like what you posted. I also get an error that the schema has to begin with a schema-element?

                          • #59621
                            Pete Gilbert
                            Participant

                              the forum removed some of the formatting. I created a simple xml document baed on what you posted earlier (I mayhave nitroduced a typo or two). That file is simplesample1.xml. I had xml spy generate a schema from that file and attach it to the xml file. The schema file is simplesample1.xsd. Open the xml doc to see the document, and the xsd to see the schema.

                              I have attached both documents (in a zip, because the forum would not allow me to attach an xml document). You should get the formatting now.

                          Viewing 10 reply threads
                          • The forum ‘Cloverleaf’ is closed to new topics and replies.