【发布时间】:2021-06-19 02:46:28
【问题描述】:
我正在尝试查找名称为帐户的所有标签。我试过这个...
logger.info("The tag is "+name+ " Is this an account? "+name.equalsIgnoreCase("account")+" "+ mapper.writeValueAsString(dmp.diffMain("account", name)));
但是我明白了……
2021-03-22 08:38:20.738 INFO [,,,] 520 --- [ main] com.jgleason.AccountIT : The tag is {http://refdata.me.com/2011}account Is this an account? false [{"operation":"INSERT","text":"{http://refdata.me.com/2011}"},{"operation":"EQUAL","text":"account"}]
现在我知道我可以解析出{},但有没有更简洁的方法来测试元素名称?
【问题讨论】: