Mercurial > hg > eSciDocImport
comparison src/de/mpiwg/itgroup/eSciDoc/utils/eSciDocXmlObject.java @ 17:7c7bce334b6f
escidoc1.4 Klasse hinzugef?gt
author | dwinter |
---|---|
date | Wed, 21 Nov 2012 12:22:07 +0100 |
parents | a844f6948dd8 |
children |
comparison
equal
deleted
inserted
replaced
16:da598103dd22 | 17:7c7bce334b6f |
---|---|
122 | 122 |
123 xpath = EScidocTools.getESciDocXpath("//prop:pid"); | 123 xpath = EScidocTools.getESciDocXpath("//prop:pid"); |
124 | 124 |
125 Element test = (Element) xpath.selectSingleNode(dom); | 125 Element test = (Element) xpath.selectSingleNode(dom); |
126 | 126 |
127 this.pid= test.getTextTrim(); | 127 if (test == null) |
128 this.pid= null; | |
129 else | |
130 this.pid= test.getTextTrim(); | |
128 } catch (JDOMException e) { | 131 } catch (JDOMException e) { |
129 // TODO Auto-generated catch block | 132 // TODO Auto-generated catch block |
130 e.printStackTrace(); | 133 e.printStackTrace(); |
131 throw new ESciDocXmlObjectException(); | 134 throw new ESciDocXmlObjectException(); |
132 } catch (IOException e) { | 135 } catch (IOException e) { |