tag:blogger.com,1999:blog-3939502048416062406.post6992432280955016035..comments2023-07-29T01:40:58.335-07:00Comments on Binod Java Solution: How to parse XML file in ANT Script, read xml file in Ant, how to use Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-3939502048416062406.post-49462348638228633552015-06-29T02:50:27.665-07:002015-06-29T02:50:27.665-07:00Hi.... Have you done your above requirement. i hav...Hi.... Have you done your above requirement. i have a similar kind of requirement i want to modify the student details based in student name can you please suggest me. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-23466050715029147482014-06-13T01:52:16.975-07:002014-06-13T01:52:16.975-07:00Hi
Suppose I have a xml like below
...Hi<br /><br />Suppose I have a xml like below<br /><br /><br /><br /> <br /> <br /><br /> <br /><br /><br /><br /> <br /> <br /> <br /><br />Suppose in apache ant I want the name of the student of the who is from SGS college and whose id is "001" <br />How can I get this ant without using any extra jar like antcontrib.jar and xmltask.jar.Nikhil Borpehttps://www.blogger.com/profile/04629281519351031358noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-42640351464350492222014-06-13T01:52:05.405-07:002014-06-13T01:52:05.405-07:00Hi
Suppose I have a xml like below
...Hi<br /><br />Suppose I have a xml like below<br /><br /><br /><br /> <br /> <br /><br /> <br /><br /><br /><br /> <br /> <br /> <br /><br />Suppose in apache ant I want the name of the student of the who is from SGS college and whose id is "001" <br />How can I get this ant without using any extra jar like antcontrib.jar and xmltask.jar.Nikhil Borpehttps://www.blogger.com/profile/04629281519351031358noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-90013664457502404652014-06-13T01:51:04.406-07:002014-06-13T01:51:04.406-07:00Hi
Suppose I have a xml like below
...Hi<br /><br />Suppose I have a xml like below<br /><br /><br /><br /> <br /> <br /><br /> <br /><br /><br /><br /> <br /> <br /> <br /><br />Suppose in apache ant I want the name of the student of the who is from SGS college and whose id is "001" <br />How can I get this ant without using any extra jar like antcontrib.jar and xmltask.jar.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-57325176226887122172012-10-31T22:35:58.063-07:002012-10-31T22:35:58.063-07:00hi,
how to generate html reports bu using xml fil...hi, <br />how to generate html reports bu using xml files? is it possible with ant?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-82276846848574714182012-09-11T03:21:18.178-07:002012-09-11T03:21:18.178-07:00Thanks for the detailed blog, I have a query, my x...Thanks for the detailed blog, I have a query, my xml file (which I want to read from ANT) is bit complicated :<br /><br /><br /> <br /><br /> <br /><br />I want to read this xml file from ant and the output should be :<br />C:\direc\data\abc.txt<br />C:\direc\data\def.txt<br /><br />and I can't use any ant extensions like xmltask. Any help is greatly appreciated, thanks in advance.<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-30818658498944256382012-07-18T15:13:01.284-07:002012-07-18T15:13:01.284-07:00Hello Suman,
Thanks for this quick tuto, it was v...Hello Suman,<br /><br />Thanks for this quick tuto, it was very useful. However I'd like to do something and it looks liked I cannot find any clue by now. Here is the problem<br /><br />Let's say we add an id property to the Student nodes of you second example ( eg: ). Each student has a different id value.<br />How can I do to display the name and other info of the Student with the id 1.<br /><br />Thanks,<br /><br />LaurentAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-53314483494921203332012-01-30T09:05:09.319-08:002012-01-30T09:05:09.319-08:00http://www.oopsconsultancy.com/software/xmltask/http://www.oopsconsultancy.com/software/xmltask/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-25256159699064044522011-11-02T08:10:09.705-07:002011-11-02T08:10:09.705-07:00Hi Suman,
How to create xml files using Ant scrip...Hi Suman,<br /><br />How to create xml files using Ant script?Is there a task to do it?<br /><br />Regards,<br />SriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-85538873841867052692011-11-02T08:08:27.700-07:002011-11-02T08:08:27.700-07:00Hi Suman,
How to execute .bat and .sh files in an...Hi Suman,<br /><br />How to execute .bat and .sh files in ant script?<br /><br />Regards,<br />SriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-90544186915525377742011-09-26T01:50:19.956-07:002011-09-26T01:50:19.956-07:00${Students.Student.name} output [echo] Name :: Bin...${Students.Student.name} output [echo] Name :: Binod Kumar Suman, it runs only first index not all ... need helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-35154108045458113622010-04-28T06:25:30.921-07:002010-04-28T06:25:30.921-07:00Hi suman,
I am starting with ANT and antform scrip...Hi suman,<br />I am starting with ANT and antform scripting. I have one question, i have one xml file which contains properties like :<br /><br />sorry for the text format but all tags are not displayed if i let "<>"<br /><br />properties.xml<br /><br />Houses<br /> House Name="House1"<br /> Type "Villa" /Type<br /> Description "F3" /Description<br /> /House<br /> House Name="House2"<br /> Type "appart" /Type<br /> Description "F4" /Description<br /> /House<br />/Houses <br /><br />and i use antform in my build.xml to display a SelectProperty containing all House name like :<br /><br />build.xml<br /><br />target name="House_menu" depends="loadDep"<br />antform title="House Selection"<br />selectionProperty label="House :" property="HouseSelected" values="${Houses.House.Name}"/<br />Label House Desctiption : ${${HouseSelected}.Description}/Label<br />Label House Type : ${${HouseSelected}.type}/Label<br /><br />/antform<br /><br />/target<br /><br />I would like to use the property "HouseSelected" to display in Label the associated House information (Description and type) of the selected object.<br /><br />Thanks in advance.Unknownhttps://www.blogger.com/profile/01935021413663128970noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-28754136025734896402010-04-28T06:10:21.824-07:002010-04-28T06:10:21.824-07:00Hi suman,
I am starting with ANT and antform scrip...Hi suman,<br />I am starting with ANT and antform scripting. I have one question, i have one xml file which contains properties like :<br />'<br /><br /><br /> "Villa"<br /> "F3"<br /><br /><br /> "appart"<br /> "F4"<br /><br /> <br />'<br />and i use antform to display a SelectProperty containing all House name like :<br /> <br /><br />I would like to use the property "HouseSelected" to display in TextProperty the associated House information (Description and type) of the selected object.<br /><br />Thanks in advance.Unknownhttps://www.blogger.com/profile/01935021413663128970noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-66531775641338892742010-04-05T07:20:35.112-07:002010-04-05T07:20:35.112-07:00Great maan...
keep it upGreat maan...<br /><br />keep it upPrincehttps://www.blogger.com/profile/06614955565992453664noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-59864243217995084142010-04-02T02:26:50.603-07:002010-04-02T02:26:50.603-07:00Thank you so much. This perfectly suited my need.Thank you so much. This perfectly suited my need.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-26327730062203578672010-02-11T06:18:39.326-08:002010-02-11T06:18:39.326-08:00Hi suman, This is really excellent work. I am usin...Hi suman, This is really excellent work. I am using your script in my project. There is one thing i am not able to fetch. In your studentinfo.xml file there is info about each student. What i want to do is that to fetch the information for that student do some task and so forth for all the entries. <br /><br />Like a kind of IF condition based on the student name. Fetch that student details (roll number etc).<br /><br />Thanks in advance,<br />Regards,<br />RohanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-88968353180946471552010-01-07T00:49:08.925-08:002010-01-07T00:49:08.925-08:00Hi Binod,
This is interesting . I've have a r...Hi Binod,<br /><br />This is interesting . I've have a requirement wherein i need to get the output in this form<br /><br />Student::Name:Binod Kumar Suman,Roll:130,city:bangalore<br /><br />Student::Name:Pramod Modi,Roll:200,City:kolkata<br /><br />Student::Name:xyz,roll:90,city:japan<br /><br />Can we achieve this?How? Because the 1st approach prints all names , all roll, all cities etc, And 2nd approach individually parses through this. Can you please suggest a solutionAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-21148014728492669712009-12-02T10:19:22.779-08:002009-12-02T10:19:22.779-08:00Great Post.
It was exactly what I was needing to...Great Post. <br /><br />It was exactly what I was needing to my project. =)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-59074325604820381112009-09-08T14:09:58.951-07:002009-09-08T14:09:58.951-07:00Exactly what I was looking for. Thanks for the in...Exactly what I was looking for. Thanks for the information.Ray Piercehttp://digitalpierce.comnoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-62177265338607693162009-07-28T05:21:36.840-07:002009-07-28T05:21:36.840-07:00How would you print the roll and the other details...How would you print the roll and the other details?Chandranoreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-90683071136461439862009-06-22T08:26:30.466-07:002009-06-22T08:26:30.466-07:00Yes Jack, you are right. Using xmltask you can get...Yes Jack, you are right. Using xmltask you can get the same result as we got from xmlproperty tag. On your request I posted article on xmltask. This is link to access that post.<br /><br />http://binodsuman.blogspot.com/2009/06/how-to-read-xml-file-and-extract-values.html<br /><br />Keep watching my blog and your any suggestion woule be most welcome to improve this blog. :)<br /><br />Thanks,<br /><br />Binod SumanBinod Sumanhttps://www.blogger.com/profile/08999470051156803457noreply@blogger.comtag:blogger.com,1999:blog-3939502048416062406.post-41008338404212075162009-06-21T23:55:08.080-07:002009-06-21T23:55:08.080-07:00Good Posting. This same example we can do using xm...Good Posting. This same example we can do using xmltask tag in ant script. Please write one blog on xmltask as I searched on net but could not get.<br />Thanks in advacne.<br />Jack :)Anonymousnoreply@blogger.com