I have about 1200 xml files I need to deploy from a 6.4 XML version to 9.0 version of a DTD. So I need a sed command to do lots of of replacements of random variables.
The keyword line is <AUTOEDIT EXP then is will have a variable followed by an equals sign. From that point on I need to break the line again.
Example
I know the last part but I'm stuck on how to handle the unknown variable name part. So its carried over on the replace.
Hello folks
I want to extract data between certain tag in XML file using 'sed'
<xml>
.........
..........
<one>XXXXXXXXXXXXXXXXXXXX</one>
......
Anyone ?Thank you (7 Replies)
Hi All,
I have this(.xml) file as:
<!-- define your instance here -->
<instance name='ins_C2Londondev' user='' group='' fullname='B2%20-%20London%20(dev)' >
<property>
</property>
</instance>
I want output as:
<!-- define your instance here -->
<instance... (3 Replies)
I have an xml file:
<AutoData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>
and I have to remove the portion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" only.
I tried using sed... (10 Replies)
I've been trying to remove some lines of a xml file that looks like this:
<parent>
<child>name1</child>
<lots_of_other tags></lots_of_other_tags>
</parent>
<parent>
<child>name2</child>
<lots_of_other tags></lots_of_other_tags>
</parent>
<parent>
<child>name3</child>
... (5 Replies)
Hi,
During an installation process in a bash script I need to do 2 things with 2 XML files. Does the use of sed affect in any way the XML file ?
1.Add to a section in <ServerListeners> section
<ServerListener>
<BaseClass>myapp.module.WowConfigurator</BaseClass>
</ServerListener>
The... (2 Replies)
hello,
new to this forum. but i have a requirement to extract the value from multiple xml node and print out the values to new file with comma seperated. would like to know how this would be done using either sed/perl or some unix script. an example would be tremendous...
sample input file:... (2 Replies)
I have a large xml file as shown below:
<input>
<blah>
<blah>
<atr="blah blah value = "">
<blah>
<blah>
</input>
..2nd chunk...
..3rd chunk...
...4th chunk...
All lines between <input> and </input> is one 'order' and this 'order' is repeated... (14 Replies)
Hi ! I'm working into my first bash script to make some xml modification and it's going to make me crazy lol .. so I decide to try into this forum to take some ideas from people that really know about this!
This is my situation I've and xml file with a lots of positional values with another tags... (9 Replies)
hi,
please help, i have an xml file, e.g:
...
<tag> test text
asdas="${abc}"
xvxvbs:asdas${222}sdad
asasa="${aa_bb_22}"
</tag>
...
i want to extract all "${...}", e.g:
${abc}
${222}
${aa_bb_22}
thank you. (2 Replies)
Discussion started by: gioni
2 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)