Sponsored Content
Top Forums Shell Programming and Scripting Parsing xml using awk - more help needed Post 302236406 by ghostdog74 on Monday 15th of September 2008 12:21:04 PM
Old 09-15-2008
Quote:
Originally Posted by matrixmadhan
Working with XML files -
using all these tools like awk, shell scripting, sed everything would work
Smilie
xgawk
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Parsing XML dynamic data via awk?

I am trying to use a line of output in an XML file as input in another new XML file for processing purposes via a shell script. Since I am a newbie though, I'm not sure how to do this since the data is different everytime. I am using this technique with static data right now: echo -n "Running... (5 Replies)
Discussion started by: corwin43
5 Replies

2. Shell Programming and Scripting

Help needed in writing awk script for xml source

Hi, i am not able to get an approach for converting xml file to flat file using awk programming. Can anyone help me out. The input xml is like this: <outer> <field1>one</field1> <field2>two</field2> <field3>three<Error Code=777 Description=12345/></field3> <field4>four</field4> </outer>... (2 Replies)
Discussion started by: naren_0101bits
2 Replies

3. Shell Programming and Scripting

parsing xml with awk/sed

Hi people!, I need extract from the file (test-file.txt) the values between <context> and </context> tag's , the total are 7 lines,but i can only get 5 or 2 lines!!:confused: Please look my code: #awk '/context/{flag=1} /\/context/{flag=0} !/context/{ if (flag==1) p rint $0; }'... (3 Replies)
Discussion started by: ricgamch
3 Replies

4. Shell Programming and Scripting

parsing xml using awk

hello , i am trying to parse xml using awk however its a little bit tricky as i want <databases> <source> <host>prod</host> <port>1522</port> <tns>GP1</tns> <user>P11</user>... (6 Replies)
Discussion started by: amit1_x
6 Replies

5. Shell Programming and Scripting

parsing(xml) using nawk/awk

Hi , I have an xml format as shown below: <Info> <last name="sean" first name="john"/> <period="5" time="11"/> <test value="1",test2 value="2",test3 value="3",test4 value="5"> <old> <value1>1</value1> <value2>2</value2> </old> <new> <value1>4</value1> <value2>3</value2> </new>... (1 Reply)
Discussion started by: natalie23
1 Replies

6. Shell Programming and Scripting

Parsing XML in awk : OFS does not work as expected

Hi, I am trying to parse regular XML file where I have to reduce number of decimal points in some xml elements. I am using following AWK command to achive that : #!/bin/ksh EDITCMD='BEGIN { FS = ""; OFS=FS } { if ( $3 ~ "*\\.*" && length(substr($3,1+index($3,"."))) == 15 ) {... (4 Replies)
Discussion started by: martin.franek
4 Replies

7. Shell Programming and Scripting

Help needed for parsing large XML with awk.

My XML structure looks like: <?xml version="1.0" encoding="UTF-8"?> <SearchRepository> <SearchItems> <SearchItem> ... </SearchItem> <SearchItem> ... ... (1 Reply)
Discussion started by: jasonjustice
1 Replies

8. Shell Programming and Scripting

XML parsing using nawk help needed

i need one help, below is one more xml file with diff pattern i tried it but dint get it , iam sure its a peice of cake for you guys. <xn:MeContext id="LSVLKY001"> <xn:ManagedElement id="1"> <un:RncFunction id="1"> <un:UtranCell... (2 Replies)
Discussion started by: tech_frk
2 Replies

9. Shell Programming and Scripting

xml parsing with awk

hi all.. need your help again.. i have xml file and i want to parsing some data from the xml file.. <ex-name="keroco"> <................> <................> <................> <br-name="cincai"> <ship="123456"> <...................> ... (3 Replies)
Discussion started by: buncit8
3 Replies

10. Shell Programming and Scripting

XML Parsing using awk

Hi All, I have a problem to resolve. For following XML file, I need to parse the values based on Tag Name. I would prefer to use this by awk. I have used sed command to replace the tags (s/<SeqNo>//). In this case there can be new tags introduced. So need to parse it based on Tag Name. Any... (9 Replies)
Discussion started by: Tons
9 Replies
pxsl-tools(1)						      General Commands Manual						     pxsl-tools(1)

NAME
pxslcc - PXSL to XML converter SYNOPSIS
pxslcc [options] file DESCRIPTION
This manual page documents briefly the pxslcc command. PXSL is a convenient shorthand for writing markup-heavy XML documents. It provides an alternative denotation for XML that focuses on the mark-up instead of the text, making handling mark-up heavy XML documents easier. Also, PXSL makes use of element defaults that can act as shortcuts or even as macros. pxslcc is a program that takes a PXSL source file and any macro definitions and generates an XML file. OPTIONS
A summary of options is included below. For a complete description, see the README file. -i[NUM] --indent[=NUM] Re-indent XML using NUM spaces per nesting level. -h, --header Insert an comment into the generated XML to warn against editing the XML file directly and to recommend editing the original PXSL source file instead. -x, --xslt Add default element defaults for generating XSLT files. -aFILE, --add=FILE Add the given defaults file. --export Export (print) all of the active defaults. --dump Dump internal parse format (for debugging). --help Print a synopsis of command line options. -v, --version Prints out the program version. SEE ALSO
For more information, see the README file, that can be found on Debian systems at /usr/share/doc/pxsl-tools/README.gz or visit the home page at http://community.moertel.com/ss/space/pxsl. AUTHOR
pxsl-tools was written by Thomas Moertel and Bill Hubauer. This manual page was written by Kari Pahula <kaol@debian.org>, for the Debian project (but may be used by others). 25 Jan 2008 pxsl-tools(1)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy