我的XML文件格式如下:
<MyXML>
<Description>
<E1s Id = "Development007" Depend = "" Description = "Sample Content">
<E1 D1 = "include" RefObj = "" Val = "URL" Val1 = "" Val2 = ""></E1>
<E2 ExpD1 = "waitForElementPresent" Target = "link=PFLEGE" ExpVal = ""></E2>
<E1 D1 = "click" RefObj = "skincare" Val = "" Val1 = "" Val2 = ""></E1>
<E2 ExpD1 = "waitForElementPresent" Target = "xpath=(test)[2]" ExpVal = ""></E2>
</E1s>
</Description
<MyXML>
使用Java,我正在尝试创建一个对象并将所有XML数据(包括属性和元素)保存为变量。
请建议我使用适当的解析器和实现此目的的方法。
提前谢谢!
美好的一天!
拉加