|
a default namespace has been defined in the xml file: xmlns:xsip="urn:hl7-org:v3" The shema definition specifies: elementFormDefault="qualified" (attributeFormDefault is not specified, and should there for default to "unqualified" ) When I print my xml file with : System.out.println(message.xmlText()); It then shows these settings for elementFormDefault and attributeFormDefault in the use of the namespace (see below). <xsip:MCCI_MT000100HT02.Message type="Message" xmlns="urn:hl7-org:v3" xmlns:xsip="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <xsip:id root="1.1.83" extension="PRPA_HN000203.22"/> <xsip:creationTime value="20030130140405.1440-0800"/> <xsip:versionCode code="V3PR1"/> <xsip:interactionId extension="PRPA_HN000203"/> <xsip:processingCode code="P"/> <xsip:processingModeCode code="T"/> <xsip:acceptAckCode code="AL"/> <xsip:communicationFunctionRCV type="CommunicationFunction"> <xsip:typeCode code="RCV"/> <xsip:deviceRCV type="Device" classCode="DEV" determinerCode="INSTANCE"> <xsip:id root="1.1.88" extension="88"/> <xsip:playedAgentRCV type="Role" classCode="AGNT"> <xsip:representedOrganizationRCV type="Organization" classCode="ORG" determinerCode="INSTANCE"> <xsip:id root="1.1.88.88"/> </xsip:representedOrganizationRCV> </xsip:playedAgentRCV> </xsip:deviceRCV> </xsip:communicationFunctionRCV> <xsip:communicationFunctionRSP type="CommunicationFunction"> <xsip:typeCode code="RSP"/> <xsip:deviceRSP type="Device" classCode="DEV" determinerCode="INSTANCE"> <xsip:id root="1.1.83" extension="83"/> <xsip:playedAgentRSP type="Role" classCode="AGNT"> <xsip:representedOrganizationRSP type="Organization" classCode="ORG" determinerCode="INSTANCE"> <xsip:id root="1.1.83.83"/> </xsip:representedOrganizationRSP> </xsip:playedAgentRSP> </xsip:deviceRSP> </xsip:communicationFunctionRSP> <xsip:communicationFunctionSND type="CommunicationFunction"> <xsip:typeCode code="SND"/> <xsip:deviceSND type="Device" classCode="DEV" determinerCode="INSTANCE"> <xsip:id root="1.1.83" extension="83"/> <xsip:playedAgentSND type="Role" classCode="AGNT"> <xsip:representedOrganizationSND type="Organization" classCode="ORG" determinerCode="INSTANCE"> <xsip:id root="1.1.83.83"/> </xsip:representedOrganizationSND> </xsip:playedAgentSND> </xsip:deviceSND> </xsip:communicationFunctionSND> <xsip:MCAI_MT000001HT02.ControlActEvent type="ControlAct" classCode="CACT" moodCode="EVN"> <xsip:code code="PRPA_TE000203" codeSystemName="HTB Supplemental"/> <xsip:subject type="ActRelationship" typeCode="SUBJ"> <xsip:PRPA_MT400001HT02.EncounterEvent type="PatientEncounter" classCode="ENC" moodCode="EVN"> <xsip:id root="1.1.83.400" extension="8"/> <xsip:code code="16239" codeSystemName="HL7"/> <xsip:statusCode code="completed"/> <xsip:effectiveTime> <xsip:low value="20050101164530.1250-0800"/> <xsip:high value="20050130140405.1440-0800"/> </xsip:effectiveTime> <xsip:dischargeDispositionCode code="FL22.01" codeSystemName="NUBC-UB92"/> <xsip:preAdmitTestInd value="true"/> <xsip:subject type="Participation" typeCode="SBJ"> <xsip:Patient type="Patient" classCode="PAT"> <xsip:id root="1.1.83.300" extension="307"/> <xsip:effectiveTime> <xsip:low value="20050101"/> </xsip:effectiveTime> <xsip:Person type="Person" classCode="PSN" determinerCode="INSTANCE"> <xsip:id root="1.1.83.100" extension="307"/> <xsip:name use=""> <xsip:family partType="FAM">Cornelissen</xsip:family> <xsip:given partType="GIV">Jan</xsip:given> <xsip:given partType="GIV">L</xsip:given> </xsip:name> <xsip:administrativeGenderCode code="10174" codeSystemName="HL7"/> <xsip:birthTime value="191905031304-0800"/> <xsip:addr use="H"> <xsip:country partType="CNT">CA</xsip:country> <xsip:state partType="STA">B.C.</xsip:state> <xsip:county partType="CPA">CPA</xsip:county> <xsip:city partType="CTY">Missisauga</xsip:city> <xsip:postalCode partType="ZIP">8M3C5V</xsip:postalCode> <xsip:streetAddressLine partType="SAL">23592 Anywhere Street</xsip:streetAddressLine> <xsip:streetName partType="STR">Anywhere Street</xsip:streetName> <xsip:houseNumber partType="HNR">23592</xsip:houseNumber> <xsip:additionalLocator partType="ADL">Suite 103</xsip:additionalLocator> </xsip:addr> </xsip:Person> <xsip:Organization type="Organization" classCode="ORG" determinerCode="INSTANCE"> <xsip:id root="1.1.83.83"/> </xsip:Organization> </xsip:Patient> </xsip:subject> <xsip:admitter type="Participation" typeCode="ADM"> <xsip:time> <xsip:low value="20050130140405.1440-0800"/> </xsip:time> <xsip:EmploymentStaff type="Employee" classCode="EMP"> <xsip:id root="1.1.83.200" extension="52"/> </xsip:EmploymentStaff> </xsip:admitter> <xsip:pertinentInformation4 type="ActRelationship" typeCode="PERT"> <xsip:ObservationEventDx type="Observation" classCode="OBS" moodCode="EVN"> <xsip:code code="16840" codeSystemName="HL7"/> <xsip:statusCode code="active"/> <xsip:effectiveTime> <xsip:low value="20050130140405.1440-0800"/> <xsip:high value="20050130140405.1440-0800"/> </xsip:effectiveTime> <xsip:confidentialityCode code="PSY" codeSystemName="Confidentiality"/> <xsip:independentInd value="false"/> <xsip:value code="233604007" codeSystemName="SNOMED-CT" xsi:type="CE"/> </xsip:ObservationEventDx> </xsip:pertinentInformation4> </xsip:PRPA_MT400001HT02.EncounterEvent> </xsip:subject> </xsip:MCAI_MT000001HT02.ControlActEvent> </xsip:MCCI_MT000100HT02.Message> Radu Preotiuc-Pietro wrote:
--
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- NullPointerException when reading the leaves of the X... Peter-Paul Rang
- RE: NullPointerException when reading the leaves... Adrian Shum
- Re: NullPointerException when reading the le... Peter-Paul Rang
- Re: NullPointerException when reading the le... Peter-Paul Rang
- RE: NullPointerException when reading the leaves... Radu Preotiuc-Pietro
- Re: NullPointerException when reading the le... Peter-Paul Rang
- Re: NullPointerException when reading th... Dave Harrison
- Re: NullPointerException when readin... Dave Harrison
- Re: NullPointerException when r... Peter-Paul Rang
- How to parse the XML file with the corre... Peter-Paul Rang

