关于此链接: Parse XML to Object Java
是我的xml:
<Link ID="6" Name="ALM_JIRA_BUG_2POSICIONGL">
<Endpoint ordinal="1">
<type>Micro-Focus-ALM</type>
<epName>Micro-Focus-ALM</epName>
<entityName>Defect</entityName>
<entityType>DEFECT</entityType>
<ConnectionData>
<username>sa_aplservmercury</username>
<password encryptInitString="p2yY5PjzSJs/pn5Kmzz/TQ=="
encrypted="true" value="Iwxz/rPt9elfoFxWSqnvfw=="/>
<Properties>
<property name="ServerURL"
value="http://alm3.produban.gs.corp/qcbin"/>
<property name="Domain" value="QAF_SAN_AGILE"/>
<property name="Project" value="PG_ADN360"/>
</Properties>
</ConnectionData>
<Filters/>
<Params/>
</Endpoint>
<Endpoint ordinal="2">
<type>JIRA</type>
<epName>JIRA</epName>
<entityName>Bug</entityName>
<entityType>DEFECT</entityType>
<ConnectionData>
<username>aplalmjira</username>
<password encryptInitString="p2yY5PjzSJs/pn5Kmzz/TQ=="
encrypted="true" value="nhjKivNTOntWdEZWjheAunARo5KwpE+Q"/>
<Properties>
<property name="JIRA server URL"
value="https://jira.ci.gsnet.corp/"/>
<property name="JIRA project key" value="POSICIONGL"/>
</Properties>
</ConnectionData>
<Filters>
<filter>POSICIONGL_JIRA_Sync_BUG</filter>
</Filters>
<Params/>
</Endpoint>
</Link>
第一部分的过滤器标签没有内容,但是第二部分是,如何使标签具有不同的内容?