- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to read tag values from xml file?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 02:59 AM
тАО09-19-2008 02:59 AM
I have to generate report out of xml file.
xml file is like :
********************************************
*******************************************
Out of many tags i want to read tag like
Can some one suggest how to read these tags.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 03:01 AM
тАО09-19-2008 03:01 AM
Re: How to read tag values from xml file?
grep "
I think grep is the right tool go grab what you want and process it into reports.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 03:13 AM
тАО09-19-2008 03:13 AM
Re: How to read tag values from xml file?
Thanks,
I have bit tricy part to do like.
How to read these two values lie under
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 03:43 AM
тАО09-19-2008 03:43 AM
SolutionIf the input predictably as shown, then you can hack a solution with awk or perl like:
$ awk -F'[<>]' '/
001 0345
So this looks for records between send and /sender, and splits based on < or >.
Thus the tag become $1, the value $3.
But please do yourself a favor and google for '+perl +xml' and check out some general purpose solution like the perl XML::Simple.
This things will hand odd line breaks, single lines input, deeper nesting, and so on.
http://articles.techrepublic.com.com/5100-10878_11-5363190.html
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 04:03 AM
тАО09-19-2008 04:03 AM
Re: How to read tag values from xml file?
Many thanks,
I will explore it more.
Thanks