Sponsored Content
Full Discussion: Parse String in XML file
Top Forums Shell Programming and Scripting Parse String in XML file Post 302152288 by racbern on Wednesday 19th of December 2007 11:26:40 AM
Old 12-19-2007
Hi Summer Cherry,

I tried your suggestion and it worked..
Thanks a lot for your help.

Regards,
racbern
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to parse a XML file using PERL and XML::DOm

I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
Discussion started by: girigopal
0 Replies

2. Shell Programming and Scripting

Parse XML file

Hi, I need to parse the following XML data enclosed in <a> </a> XML tag using shell script. <X> ..... </X> <a> <b> <c>data1</c> <c>data2</c> </b> <d> <c>data3</c> </d> </a> <XX> ... </XX> (5 Replies)
Discussion started by: viki
5 Replies

3. Shell Programming and Scripting

Parse a string in XML file using shell script

Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it... (46 Replies)
Discussion started by: ayhanne
46 Replies

4. Shell Programming and Scripting

How can I parse xml file?

How can I parse file containing xml ? I am sure that its best to use perl - but my perl is not very good - can someone help? Example below contents of file containing the xml - I basically want to parse the file and have each field contained in a variable.. ie. I want to store the account... (14 Replies)
Discussion started by: frustrated1
14 Replies

5. Emergency UNIX and Linux Support

How to parse the following xml file

Hi, I have the following file Example.xml <?xml version="1.0" encoding="iso-8859-1"?> <html><set label="09/07/29" value="1241.90"/> </html> Can any one help me in parsing this xml file I want to retrive the attribute values of the tag set Example I want to... (3 Replies)
Discussion started by: Raji_gadam
3 Replies

6. Shell Programming and Scripting

parse xml file

Hello all, Given the following extract from a xml file with multiple <JOB> .... </JOB> entries <JOB APPLICATION="APP" APR="0" AUG="0" AUTHOR="AUT" AUTOARCH="0" CMDLINE="/tmp/test1 %%var" CONFIRM="1" CREATION_DATE="20100430" CREATION_TIME="130739" ... (2 Replies)
Discussion started by: cabrao
2 Replies

7. Shell Programming and Scripting

How to parse xml file in variable-string?

In the wake of the post: how-parse-following-xml-file Thank you for the very useful chakrapani response 302355585-post4 ! A close question. How to pass a file to xmllint in variable? For example, let it be: NEARLY_FILE='<?xml version="1.0" encoding="iso-8859-1"?><html><set label="09/07/29"... (0 Replies)
Discussion started by: OleM2k
0 Replies

8. Programming

Parse XML file

How do I get the field info for tags ID, NAME, DESCRIPTION. Below is my current code put I can't get beyond the first_child of the file. use strict; use warnings; use XML::Simplehttp://images.intellitxt.com/ast/adTypes/icon1.png; use... (1 Reply)
Discussion started by: leemalloy
1 Replies

9. Shell Programming and Scripting

Parse XML File.

HI Guys I have Below XML File : <xn:SubNetwork id="XYZ"> <xn:SubNetwork id="C01"> <xn:MeContext id="CO1"> <xn:ManagedElement id="1"> <un:RncFunction id="1"> <un:UtranCell id="NY431"> ... (2 Replies)
Discussion started by: pareshkp
2 Replies

10. Shell Programming and Scripting

Parse xml file

I am trying to create a shell script that will parse an xml file (file attached). awk '/Id v=/ { print }' Test.xml | sed 's!<Id v=\"\(.*\)\"/>!\1!' > output.txt An output.txt file is created but it is empty. It should contain the value 222159 in it. Thanks. (7 Replies)
Discussion started by: cmccabe
7 Replies
EQN(7)						       BSD Miscellaneous Information Manual						    EQN(7)

NAME
eqn -- eqn language reference for mandoc DESCRIPTION
The eqn language is an equation-formatting language. It is used within mdoc(7) and man(7) UNIX manual pages. It describes the structure of an equation, not its mathematical meaning. This manual describes the eqn language accepted by the mandoc(1) utility, which corresponds to the Second Edition eqn specification (see SEE ALSO for references). Equations within mdoc(7) or man(7) documents are enclosed by the standalone '.EQ' and '.EN' tags. Equations are multi-line blocks consisting of formulas and control statements. EQUATION STRUCTURE
Each equation is bracketed by '.EQ' and '.EN' strings. Note: these are not the same as roff(7) macros, and may only be invoked as '.EQ'. The equation grammar is as follows, where quoted strings are case-sensitive literals in the input: eqn : box | eqn box box : text | "{" eqn "}" | "define" text text | "ndefine" text text | "tdefine" text text | "gfont" text | "gsize" text | "set" text text | "undef" text | box pos box | box mark | "matrix" "{" [col "{" list "}" ]* | pile "{" list "}" | font box | "size" text box | "left" text eqn ["right" text] col : "lcol" | "rcol" | "ccol" | "col" text : [^space"]+ | ".*" pile : "lpile" | "cpile" | "rpile" | "pile" pos : "over" | "sup" | "sub" | "to" | "from" mark : "dot" | "dotdot" | "hat" | "tilde" | "vec" | "dyad" | "bar" | "under" font : "roman" | "italic" | "bold" | "fat" list : eqn | list "above" eqn space : [^~ ] White-space consists of the space, tab, circumflex, and tilde characters. If within a quoted string, these space characters are retained. Quoted strings are also not scanned for replacement definitions. The following text terms are translated into a rendered glyph, if available: alpha, beta, chi, delta, epsilon, eta, gamma, iota, kappa, lambda, mu, nu, omega, omicron, phi, pi, psi, rho, sigma, tau, theta, upsilon, xi, zeta, DELTA, GAMMA, LAMBDA, OMEGA, PHI, PI, PSI, SIGMA, THETA, UPSILON, XI, inter (intersection), union (union), prod (product), int (integral), sum (summation), grad (gradient), del (vector dif- ferential), times (multiply), cdot (centre-dot), nothing (zero-width space), approx (approximately equals), prime (prime), half (one-half), partial (partial differential), inf (infinity), >> (much greater), << (much less), -> (left arrow), <- (right arrow), += (plus-minus), != (not equal), == (equivalence), <= (less-than-equal), and >= (more-than-equal). The following control statements are available: define Replace all occurrences of a key with a value. Its syntax is as follows: define key cvalc The first character of the value string, c, is used as the delimiter for the value val. This allows for arbitrary enclosure of terms (not just quotes), such as define foo 'bar baz' define foo cbar bazc It is an error to have an empty key or val. Note that a quoted key causes errors in some eqn implementations and should not be con- sidered portable. It is not expanded for replacements. Definitions may refer to other definitions; these are evaluated recursively when text replacement occurs and not when the definition is created. Definitions can create arbitrary strings, for example, the following is a legal construction. define foo 'define' foo bar 'baz' Self-referencing definitions will raise an error. The ndefine statement is a synonym for define, while tdefine is discarded. gfont Set the default font of subsequent output. Its syntax is as follows: gfont font In mandoc, this value is discarded. gsize Set the default size of subsequent output. Its syntax is as follows: gsize size The size value should be an integer. set Set an equation mode. In mandoc, both arguments are thrown away. Its syntax is as follows: set key val The key and val are not expanded for replacements. This statement is a GNU extension. undef Unset a previously-defined key. Its syntax is as follows: define key Once invoked, the definition for key is discarded. The key is not expanded for replacements. This statement is a GNU extension. COMPATIBILITY
This section documents the compatibility of mandoc eqn and the troff eqn implementation (including GNU troff). - The text string '"' is interpreted as a literal quote in troff. In mandoc, this is interpreted as a comment. - In troff, The circumflex and tilde white-space symbols map to fixed-width spaces. In mandoc, these characters are synonyms for the space character. - The troff implementation of eqn allows for equation alignment with the mark and lineup tokens. mandoc discards these tokens. The back n, fwd n, up n, and down n commands are also ignored. SEE ALSO
mandoc(1), man(7), mandoc_char(7), mdoc(7), roff(7) Brian W. Kernighan and Lorinda L. Cherry, "System for Typesetting Mathematics", Communications of the ACM, 18, 151-157, March, 1975. Brian W. Kernighan and Lorinda L. Cherry, Typesetting Mathematics, User's Guide, 1976. Brian W. Kernighan and Lorinda L. Cherry, Typesetting Mathematics, User's Guide (Second Edition), 1978. HISTORY
The eqn utility, a preprocessor for troff, was originally written by Brian W. Kernighan and Lorinda L. Cherry in 1975. The GNU reimplementa- tion of eqn, part of the GNU troff package, was released in 1989 by James Clark. The eqn component of mandoc(1) was added in 2011. AUTHORS
This eqn reference was written by Kristaps Dzonsons, kristaps@bsd.lv. BSD
September 25, 2011 BSD
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy