0 Replies Latest reply: Nov 5, 2012 10:15 AM by mh*379860*ly RSS

    Extracting data from an XML Instance generated by an Applet

    mh*379860*ly
      HI Gentlemen,

      I am reading a file from a German Health Card eGK, which yields the following schema-based XML instance document:
      <?xml version="1.0" encoding="ISO-8859-15" standalone="yes"?>
      <UC_PersoenlicheVersichertendatenXML CDM_VERSION="5.1.0" xmlns="http://ws.gematik.de/fa/vsds/UC_PersoenlicheVersichertendatenXML/v5.1">
          <Versicherter>
              <Versicherten_ID>X110098023</Versicherten_ID>
              <Person>
                  <Geburtsdatum>19530130</Geburtsdatum>
                  <Vorname>Luca</Vorname>
                  <Nachname>Nullmayr</Nachname>
                  <Geschlecht>M</Geschlecht>
                  <StrassenAdresse>
                      <Postleitzahl>99085</Postleitzahl>
                      <Ort>Erfurt</Ort>
                      <Land>
                          <Wohnsitzlaendercode>D</Wohnsitzlaendercode>
                      </Land>
                      <Strasse>Leipziger Str.</Strasse>
                      <Hausnummer>1</Hausnummer>
                  </StrassenAdresse>
              </Person>
          </Versicherter>
      </UC_PersoenlicheVersichertendatenXML>
      org.xml.sax.InputSource@9652dd
      It now seems to be pertty-printed, however in fact there are no Newline characters embedded. Now I must extract the data contents of the document, and assign them to corresponding fields on a .jspx JDeveloper page. Can anyone recommend me a simple and safe method to do this? Extracting could occur in the Java Applet responsible for reading the card, thereby communicating only meaningful data to the .jspx page, with tags already cut off.

      Many thanks in advance, regards:

      Miklos HERBOLY