jrihtarsic commented on code in PR #234:
URL:
https://github.com/apache/santuario-xml-security-java/pull/234#discussion_r1431812244
##########
src/main/java/org/apache/xml/security/utils/XMLUtils.java:
##########
@@ -706,6 +706,30 @@ public static Element selectXencNode(Node sibling, String
nodeName, int number)
return null;
}
+ /**
+ * Helper method to get the "number"-th element for a given local
+ * name and namespace: http://www.w3.org/2009/xmlenc11#. If element with
given search parameters is not found,
+ * null is returned.
+ *
+ * @param sibling the sibling node from which to start searching
+ * @param nodeName the local name of the element to search for
+ * @param number the index of the element to search for
+ * @return node with the given node name or null if not found.
+ */
+ public static Element selectXenc11Node(Node sibling, String nodeName, int
number) {
Review Comment:
The class already have methods for specific namespaces
selectDsNode
selectDs11Node
selectXencNode
The method selectXenc11Node just follows the class design pattern.
Beside the generic method is already there.
public static Element selectNode(Node sibling, String uri, String nodeName,
int number)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]