Hi ,
I have input file as XML. following are input data
#complex.xml
i want to extract data from this file and i tried below query.
cat complex.xml | xml sel -t -m //xref -v "concat(../../protein/name,' ',../../protein/class,' ',./database,' ',./accn)" -n
but it is not giving any output...but this query is working when instead of xmlns i am writing xmlns:xsi="...."
but my input file is having only xmlns="..."
Hi,
I need to extract the start time value (bold, red font) under the '<LogEvent ID="Timer Start">' tag (black bold) from a file with the following pattern. There are other LogEventIDs listed in the file as well, making it harder for me to extract out the specific start time that I need.
.
.... (7 Replies)
Hello Scripting Gurus,
I need help with extracting data from the XML file using shell script.
The data is in a large XML and I need to extract the id values of all completedworkflows. Here is a sample of it. Input and output data is also in the attached text files.
<wfregistry>... (5 Replies)
Hi, I want to get data from Xml file by using sed or awk command. I want to get the following result :
mon titre 1;Createur1;Dossier1
mon titre 1;Createur1;Dossier1
and save it in cvs file (fichier.cvs).
FROM this Xml file (test.xml):
<playlist version="1">
<trackList>
<track>... (1 Reply)
Hi all,
I have the following xml document :
<HEADER><El1>asdf</El1> <El2>3</El2> <El3>asad</El3> <El4>asasdf</El4> <El5>asdf</El5> <El6>asdf</El6> <El7>asdf</El7> <El8>A</El8> <El9>0</El9> <El10>75291028141917</El10> <El11>asdf</El11> <El12>sdf</El12> <El13>er</El13> <El14><El15>asdf... (1 Reply)
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Please help me out to extract the Data from the XML Log files.
So here is the data
ERROR|2010-08-26 00:05:52,958|SERIAL_ID=128279996|ST=2010-08-2600:05:52|DEVICE=113.2.21.12:601|TYPE=TransactionLog... (9 Replies)
Hi friend i have input as following XML file
<?xml version="1.0"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr><MsgId>LBP-RDJ-TE000000-130042430010001001</MsgId><CreDtTm>2013-01-04T03:21:30</CreDtTm></GrpHdr>... (3 Replies)
Hi evry1,
This is my 1st post in this forum.Pls help me
I want to extract some data froma xml file which has 2000 lines using shell scripting. Actually my xml file has some "audio and video codes" which i need to arrange in a column wise format after extracting it using shell scripting.I... (4 Replies)
Hi ,
I have input file as XML. following are input data
#complex.xml
Code:
<?xml version="1.0" encoding="UTF-8"?><TEST_doc xmlns="http://www.w3.org/2001/XMLSchema-instance"> <ENTRY uid="123456"> <protein> <name>PROT001</name> <organism>Human</organism> ... (1 Reply)
Hi Guys,
I am in a need to extract data from a xml file. The XML file format is as below.
<data jsxnamespace="propsbundle" locales="">
<locale>
<!--Error messages starts-->
<record jsxid="CHARPAIR001" jsxtext=" must be selected"></record>
<record... (1 Reply)
Discussion started by: Showdown
1 Replies
LEARN ABOUT DEBIAN
trang
trang(1) General Commands Manual trang(1)NAME
trang - convert between different schema languages for XML
SYNOPSIS
trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] [-i input-param] [-o output-param] input-file ... output-file
DESCRIPTION
trang takes as input a schema written in any of the following formats:
RELAX NG (XML syntax)
RELAX NG (compact syntax)
XML 1.0 DTD
and produces as output a schema written in any of the following formats:
RELAX NG (XML syntax)
RELAX NG (compact syntax)
XML 1.0 DTD
W3C XML Schema
Trang can also infer a schema from one or more example XML documents.
Trang uses an internal representation based on RELAX NG. For each supported input format, there is an input module that converts a schema
in that input format into this internal representation. For each supported output format, there is an output module that converts the
internal representation into a schema in that output format. Thus, any supported input format can be translated to any supported output
format.
Trang requires two command-line arguments: the first is the URI or filename of the schema to be translated; the second is the output file-
name.
Trang infers the input and output modules to be used from the extension of input and output filenames as follows:
.rng RELAX NG (XML syntax)
.rnc RELAX NG (compact syntax)
.dtd XML 1.0 DTD
.xsd W3C XML Schema
.xml XML documents (used as examples from which to infer a schema)
This inference can be overridden using the -I and -O options.
When the input is XML documents used as examples to infer a schema, more than one input file may be specified as arguments. All the input
files are specified before the output file.
OPTIONS -I rng|rnc|dtd|xml
Specifies which input module to use.
-O rng|rnc|dtd|xsd
Specifies which output module to use.
-i input-param
-o output-param
Specifies a parameter for an input (-i) or output (-o) module. The -i and -o options may be used multiple times in order to specify
multiple parameters. There are two kinds of parameter: boolean parameters and string-valued parameters. A string-valued parameter
is specified using the form name=value. A boolean parameter is specified using the form name or no-name. The applicable parameters
depend on the particular input and output module. For details, see the HTML documentation.
SEE ALSO jing(1)
Trang Manual
http://relaxng.org
AUTHOR
James Clark (jjc@jclark.com)
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
@VERSION@ trang(1)