Hi Ulf Dittmer,
thanks, just i am getting some idea on XML.
i have some problem in my project.
let me explain my project first
in my project i am hardcoding some values(tags with values) in one XML file that file i am showing below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Order>
<Manifest>
<Item>
<NAME>
<Name> Name</Name>
<Namelength>5</Namelength>
<Beginlength>10</Beginlength>
<Contains>10,20,30</Contains>
<Storequalification>nothing </Storequalification>
<Suffix>:</Suffix>
</NAME>
</Item>
</Manifest>
</Order>
i am doing my project using struts framework.
now i will tell my probelm.
1) I want read the tag names(i.e name,namelength,Beginlength,Contains) dynamically in struts action class, like if one array contains 10 values means we use for loop and we will print all the 10 values,like this i want to read only all the tag names which are in XML file.
2) I want read the tags like name,namelength,Beginlength,Contains etc.....
along with the values of the tags in the action class(struts action class),without hardcoding the tag names.
please provide the solution for this problem with some examples.
Thanks
Kademane guru