added frequency to the return info of the port

This commit is contained in:
paul-loedige 2021-01-04 23:22:22 +01:00
parent b2f263e5ed
commit 39bab72621

View File

@ -86,6 +86,7 @@ public class XMLHandler implements IXML {
Element result = (Element) xPathExpression.evaluate( Element result = (Element) xPathExpression.evaluate(
root, XPathConstants.NODE); root, XPathConstants.NODE);
returnDictionary.put("protocol", result.getAttribute("protocol")); returnDictionary.put("protocol", result.getAttribute("protocol"));
returnDictionary.put("frequency", result.getAttribute("frequency"));
NodeList childNodes = result.getChildNodes(); NodeList childNodes = result.getChildNodes();
List<String> pins = new ArrayList<>(); List<String> pins = new ArrayList<>();
for (int i = 0; i < childNodes.getLength(); i++) { for (int i = 0; i < childNodes.getLength(); i++) {