【发布时间】:2012-01-14 07:18:11
【问题描述】:
以下 XPath 表达式是否可以接受?使用 eclipselink 2.3.1 版本
@XmlPath("../header/@type")
@XmlPath("/root/header/@type")
@XmlPath("parent::*/header/@type")
基本上这是在 XML 文档 (/root/tag) 中重复的类中,如果不清楚,我会详细说明。
我试图向上而不是向下遍历树。我的其他 @XmlPath 注释工作正常。
【问题讨论】:
标签: xpath jaxb eclipselink moxy