MySQL Select working in WorkBench, But not in Java

时间:2015-07-28 23:43:40

标签: java mysql

I am trying to get the following to work, i have read numerous online posts about this, but nothing seems to be working.

The Query String works when i run it in MySQLWorkbench. I am using XPath to retrieve all ExternalId's and store them into a list.

h1 {
font-family:'Press Start 2P', Arial;
font-weight: 400;
color: white;
font-size: 30px;
font-smoothing: antialiased;
text-shadow: -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000, 4px 4px 0 #000, -8px -8px 0 black, 8px -8px 0 black, -8px 8px 0 black, 8px 8px 0 black;
}

The Boolean Response Prints out False for all valid id's..

1 个答案:

答案 0 :(得分:0)

当您填充externalIdList时,您会为每个ID添加'\n'

我不知道你的ids,但我想你应该放弃换行。

for (int i = 0; i < nodeList.getLength(); i++)
    externalIdList.add(nodeList.item(i).getFirstChild().getNodeValue());
相关问题