diff options
Diffstat (limited to 'spss.server/src')
-rw-r--r-- | spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java b/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java index 84f377826..2d01f2a0f 100644 --- a/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java +++ b/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java @@ -130,34 +130,29 @@ public class TransformParser { * @param transformElem The <code>Transform</code> DOM element to parse. * @return An <code>ExclusiveCanonicalizationTransform</code> API object * containing the data from the <code>transformElem</code>. - * @throws MOAApplicationException An error occurred parsing the - * <code>transformElem</code>. */ private Transform parseExclusiveC14nTransform( String algorithmUri, Element transformElem) - throws MOAApplicationException { + { Element inclusiveNamespacesElem = (Element) XPathUtils.selectSingleNode( transformElem, INCLUSIVE_NAMESPACES_XPATH); - if (inclusiveNamespacesElem == null) { - throw new MOAApplicationException("2217", null); - } else { - StringTokenizer tokenizer = - new StringTokenizer(inclusiveNamespacesElem.getAttribute("PrefixList")); - List inclusiveNamespaces = new ArrayList(); - - while (tokenizer.hasMoreTokens()) { + List inclusiveNamespaces = new ArrayList(); + if (inclusiveNamespacesElem != null) + { + StringTokenizer tokenizer = new StringTokenizer(inclusiveNamespacesElem.getAttribute("PrefixList")); + while (tokenizer.hasMoreTokens()) + { inclusiveNamespaces.add(tokenizer.nextToken()); } - - return factory.createExclusiveCanonicalizationTransform( - algorithmUri, - inclusiveNamespaces); } + return factory.createExclusiveCanonicalizationTransform( + algorithmUri, + inclusiveNamespaces); } /** |