Configuring XML

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Configuring XML

  • Creator
    Topic
  • #52592
    Michael Lacriola
    Participant

      Basics: Unix, CL version 5.8 rev 1.

      I know this is a sore subject. I’m having a hell of a time trying to get a package created with a very simple XML and DTD file. The XML file compiles without issue. Do I need to compile DTD file? Do both files need to have same prefix? Must it match the package name?

      When trying to test the XML, I get an expected markup declartion in line 2 col 3. My XML is well-formed with the DTD. What is Cloverleaf expecting? I got passed the encoding issue.

      Why is this so difficult? Are there any special papers on this stuff? Is there a simple step by step on how to get through this? My brain hurts.

    Viewing 3 reply threads
    • Author
      Replies
      • #74794
        Michael Lacriola
        Participant

          Can you believe it!!! I fixed it and it is working. A new milestone for me. Don’t ask me for help on this subject. I’m not an expert yet. Give me another year with dealing with this.

          For those who might be wondering what I’m doing: We are working on a partial dictation interface between Epic and Nuance that involves XML, WAVs, ADTs, and Orders all from a single XML file layout. It’s a complex piece of Data movement between Serveral servers (windows and Unix) and HL7 through normal TCP/IP methods.

          See me next year in Epic land for the presentation if I get this right.

        • #74795
          Robert Kersemakers
          Participant

            Glad you got it working. Am a bit curious: what fixed it in the end? (May help others as well).

            We have a couple of XML-interfaces running. Very large XML’s and had to do some tcl-work as well to get things right, especially with decimal signs.

            In the beginning I couldn’t get the XML working as well (in testing). Problem was that CL can’t handle specified occurences (like say 9999), so we made all occurences ‘unbounded’ and then it worked.

            Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

          • #74796
            Michael Lacriola
            Participant

              This was more or less how to get the XML definition into Clovearleaf and testing it with an actual XML file.

              I created a package and loaded a DTD by itself into the folder. This is not the same as taking an existing XML file with a DTD embedded into it. That would work according to the documentation. An XML schema is supposed to work too. Unless, you get a XML schema from your vendor, I would not attempt to create one unless you have some real good experience.

              Working with external DTDs seems to be the easiest for me. Keep the file name of the DTD the same name as the root element within DTD. So I have a DTD called partial_dictation.dtd and my DTD looks like the example below (Keep it simple). When testing, leave out the reference to the DTD in the XML. It’s not needed, in fact, it wil cause an error.

              The example has a root element called partial_dictation (matches file name).

                 

                     

                     

                     

                     

                 

                     

                     

                     

                     

                     

                     

                     

                     

                     

                 

                     

                     

                     

                     

            • #74797
              Robert Kersemakers
              Participant

                I only have basic knowledge of XML’s so anything beside the obvious and I’m lost. We used both DTD and XSD schema’s and all works pretty well.

                Just a hint. If you receive an error about a certain field/segment: take a look at the field immediately in front of the mentioned field/segment. It is most likely the culprit.

                Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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