This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read XML file

 
rastas biggs
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one point me in the right direction, I want to read attributes from an XML file, does some one have some example code I can use?

I just want to read the attributes and assign to string or an array.

I'm more interested in getting a value type like "BlokesName_nickName" when I pass a value into a method like name, example below.



<BlokesName name="Bazza">
<BlokesName_nickName>Block Head</BlokesName_nickName>
<BlokesName_favoriteBeer>Stella</BlokesName_favoriteBeer>
<BlokesName name="Bazza">
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our XML forum...
 
pradeep jaladi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Check out some of same from
Xml Samples

I think they can point you in rigth direction
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe following link may be helpful to you upto major extend

XML to Object[] Utility
[ May 27, 2005: Message edited by: Chetan Parekh ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic