05-29-2009
this is xml from which i want to read attribute 'transaction' and 'document_mode' and put it in some variables in shell script
Xml :
<PURCHASE_10 partner="food" version="1.50" timestamp="2009-03-10T09:56:55" transaction="PURCHASEORDER" document_mode="abc">
</PURCHASE_10>
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there any shell command to clean an html tag of its attributes. For ex <p align ="center"> with <p>.
Thanks for your help!! (2 Replies)
Discussion started by: parshant_bvcoe
2 Replies
2. Shell Programming and Scripting
Hi,
I have a file contains attribute value pair like..
..name=erick rollno=583.0 pass=recon..
From the above line, i need to grep for only "rollno" and store "rollno=583.0" in a variable.
Pls suggest (6 Replies)
Discussion started by: skraja1982
6 Replies
3. Shell Programming and Scripting
Greetings,
I am very new to the UNIX shell scripting and would like to learn. However, I am currently stuck on how to process the below sample of code from an XML file using UNIX comands:
<ATTRIBUTE NAME="Memory" VALUE="512MB"/>
<ATTRIBUTE NAME="CPU Speed" VALUE="3.0GHz"/>
<ATTRIBUTE... (5 Replies)
Discussion started by: JesterMania
5 Replies
4. Shell Programming and Scripting
Hi All,
Please help me out in resolving this..
<secondTag enabled='true' processName='test1' pidFile='/tmp/test1.pid' />
From the above tag, I'm trying to retrieve the value of enabled and pidFile attributes by means of processName attribute.
Would be thankful in resolving this..... (5 Replies)
Discussion started by: mjavalkar
5 Replies
5. Shell Programming and Scripting
Hi,
I've got a situation where I need to read the values from XML tags in a file. Please find the sample xml code below:
<entity>
<name>Testing</name>
<number>11</number>
<template>testing.testing</template>
</entity>
<entity>
<name>Development</name>
<number>13</number>... (13 Replies)
Discussion started by: mjavalkar
13 Replies
6. UNIX for Advanced & Expert Users
Hi unix Gurus,
I am really new to Unix Scripting. Please help me to create a shell script which reads the xml file and from that i need to fetch a particular information.
For example
<SOURCE BUSINESSNAME ="" DATABASETYPE ="Teradata" DBDNAME ="DWPROD3" DESCRIPTION ="" NAME... (2 Replies)
Discussion started by: SmilePlease
2 Replies
7. Shell Programming and Scripting
Hi,
I have a file service.xml which has following content:
<?xml version="1.0" encoding="UTF-8"?>
<Service Ver="2.31.13"/>
I want to read the value of Ver (that is 2.31.13) and assign to a variable which i further use.
Please help me in that. (3 Replies)
Discussion started by: laxmikant15
3 Replies
8. Shell Programming and Scripting
<Start>
<Header>
This is header section
</Header>
<Body>
<Body_start>
This is body section
<a>
<b>
<c>
<st>111</st>
</c>
<d>
<st>blank</st>
</d>
</b>
</a>
</Body_start>
<Body_section>
This is body section (3 Replies)
Discussion started by: RJG
3 Replies
9. Shell Programming and Scripting
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
Discussion started by: pchang
19 Replies
LEARN ABOUT CENTOS
locale::po4a::guide
Locale::Po4a::Guide(3) User Contributed Perl Documentation Locale::Po4a::Guide(3)
NAME
Locale::Po4a::Guide - convert Guide XML documents from/to PO files
DESCRIPTION
The po4a (PO for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext
tools on areas where they were not expected like documentation.
Locale::Po4a::Guide is a module to help in the translation of the Gentoo Linux documentation in the Guide XML format into other [human]
languages.
This format is documented here: http://www.gentoo.org/doc/en/xml-guide.xml
STATUS OF THIS MODULE
This module is fully functional, as it relies in the Locale::Po4a::Xml module. This only defines the translatable tags and attributes.
The only known issue is that it doesn't include files with the <include href="..."> tag, but you can translate all those files alone, and
it's usually better to have them separated.
SEE ALSO
Locale::Po4a::TransTractor(3pm), Locale::Po4a::Xml(3pm), po4a(7)
AUTHORS
Jordi Vilalta <jvprat@gmail.com>
COPYRIGHT AND LICENSE
Copyright (c) 2004 by Jordi Vilalta <jvprat@gmail.com>
This program is free software; you may redistribute it and/or modify it under the terms of GPL (see the COPYING file).
perl v5.16.3 2014-06-10 Locale::Po4a::Guide(3)