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