This will parse your document and populate a shell array, provided the number of unique "names" isn't larger than the shell will support. It does make the assumption that <playlist> and </playlist> tags do not have a newline between them.
You can access the list with [icode]${playlists[$i]}[/code], here is a sample loop that just prints them out:
If you don't want to collect them in an array, you can read the awk output in a while loop:
Hi Frnds
I Want to pull xml's from logs based on the below condition.In each log having so many xml's it's taking so much of time to search all logs manually...can u please provide solution
USER:ECMINT CONV:GETARPLNICHUBTST
<CardNbr>376703134104004</CardNbr>
</Envelope>
Response XML:... (3 Replies)
Hi I have certain environmenet variables defined in .profile:
export DBNAME="mydb"
export DBHOST="devbox.us.abc.com"
export DBPORT="1111"
export PASSWORD="mypwd"
export MMUSER="myid"
I also have an xml file defined like:
<CONFIG>
<DEFAULTS operator="oraread">
<PROPERTY... (2 Replies)
I'm new to shell scripting and am trying to write a small script that pulls a substring out of a file that has a few lines of text in it. The file will eventually have a lot of text, I just put a few lines in it for testing purposes.
Anyway, this is what I have so far...
#!/bin/ksh
... (4 Replies)
Hi All,
I need to pull the data from a file from 2 set of directories & should be mailed.
I have a code , it is failing for some reason. Do somebody correct me where my script is going wrong.
Directories:
1st Set of Directory /176_PS/Transactions/**/syslog.log
** : prd1
prd2... (2 Replies)
Created a korn shell script, everything is is working except this section, the variable $SYSINFO is being set, but the NASIP & NASDEV are failing, it appears to be treating the config.xml file config directory and xml as the file. Need a second set of eyes to tell me where I am messing up.
#... (3 Replies)
greetings,
i have an executable that reads its config from an xml file. this executable needs to be started as the current user. there is a line in the xml file that contains the following:
<option name="USER_ID" value="myuserid"/>the current value is an actual user id (mine) as it was... (3 Replies)
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)
HI All,
I have to split a xml file into multiple xml files and append it in another .xml file. for example below is a sample xml and using shell script i have to split it into three xml files and append all the three xmls in a .xml file. Can some one help plz.
eg:
<?xml version="1.0"?>... (4 Replies)
Hello,
I have the following variables set in my env
echo $MY_XSD_FILE
/home/jak/sample.xsd
echo $MY_INTERVAL_VALUE
4
I want to insert them between the xml tags in my xml file
cat sample.xml
:::::::::::::::
:::::::::::::::
<property name="FILE"></property>
:::::::::::::::::::::::... (2 Replies)
I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies
LEARN ABOUT DEBIAN
jing
jing(1) General Commands Manual jing(1)NAME
jing - validate an XML document using a RELAX NG schema
SYNOPSIS
jing [-cfit] [-e encoding] rng-file [xml-file...]
DESCRIPTION
If rng-file is a correct RELAX NG schema and each xml-file is a well-formed XML document that is valid with respect to rng-file, then jing
will be silent and terminate with a status of 0. Otherwise, jing will report one or more errors to the standard output and will terminate
with a status of 1. Both rng-file and xml-file can be filenames or URIs.
OPTIONS -c Uses the compact syntax for the schema.
-e enc Uses the encoding enc to read the schema.
-f Checks that the document is feasibly valid. A document is feasibly valid if it could be transformed into a valid document by insert-
ing any number of attributes and child elements anywhere in the tree. This is equivalent to transforming the schema by wrapping
every data, list, element and attribute element in an optional element and then validating against the transformed schema. This
option may be useful while a document is still under construction. This option also disables checking that for every IDREF there is
a corresponding ID.
-i Disables checking of ID/IDREF/IDREFS. By default, Jing enforces the constraints imposed by RELAX NG DTD Compatibility with respect
to ID/IDREF/IDREFS.
-t Prints the time used by Jing for loading the schema and for validation.
SEE ALSO trang(1)
http://relaxng.org
AUTHOR
James Clark (jjc@jclark.com)
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
@VERSION@ jing(1)