I have not worked with XML before, so forgive my ignorance. Can someone walk thru this with me.
Medhost is sending an XML to Cloverleaf (its actually an HL7 message with the XML in OBX.5. In the XML editor, I see the Schema, and i looked it up and then downloaded the xml and xds from this location:
http://www.w3.org/2001/XMLSchema-instance
and saved it to my C:drive
This is the top portion of the XML:
http://www.w3.org/2001/XMLSchema-instance code=”US”/>
Creator
Topic
-
-
Scherie,
Silly question, but I have to ask. Did you compile your .xsd file?
Tom Rioux
-
yep, it compliled just fine.
-
Did the XML you downloaded have all the necessary fields as your Medhost XML? When you compiled your .xsd it should have created created all the fields you needed for your XML.
You can try downloading a program called JEDIT. In there, you can take your Medhost XML example file and it will convert it to a .xsd for you. You can then take that .xsd file, move it to /formats/xml/ directory on your cltest server. There you can access it through the XML Package Manager and compile it to create your .ocm file. It will show you any errors. You may have to change the verbiage for the first couple of lines to get it to work correctly.
Hope this helps….
Tom Rioux
-
When I run the compiler I get this error:
The command to compile the file mh_ccd_bas-schema.xsd is completed with warning status:100. Warning generated during parsing. Invalid attribute name: ‘xsi:type’ – declaration ignored -Line71, Col 55,……71:’ ‘
1. do you know what this error means?
2. I didn’t add any options, before I compiled. Wonder if I should have?
-
Looks like the xsi namespace has not been defined in the schema or is not reachable
If you rae going to work with XML an XML editor such as XML Spy or Oxygen is very valuable.
-
Thanks for the input Charlie and Tom!
- The forum ‘Cloverleaf’ is closed to new topics and replies.