1
我想解析xml到java类,任何人都可以帮助我。 谢谢。使用xstream解析XML到java
<?xml version="1.0" encoding="utf-8"?>
<patterns>
<pattern if="menuCondition">
<input>Menu</input>
<output>
<command if="taxCondition">Company</command>
<command>Tax</command>
<command>Customer</command>
<command>Vendor</command>
<command>Banking</command>
<command>Reports</command>
<command>Settings</command>
<command>Logout</command>
</output>
</pattern>
</patterns>
你已经试过了什么? – Ajai
粘贴您目前拥有的解析代码并提出具体问题。 – Jasonw
如果您使用xstream,请参阅http://xstream.codehaus.org/上的教程以开始使用。 – Alderath