10-13-2006
Thanks for your input.
Corona688, you said "My wild guess would be that XML Spy is saving them in something crazy like 16-bit Unicode" and I think that's it. (Don't know how to test it though?
After further experimentation, I've discovered that this only happens when I save it encoded as UTF-16 (i.e. the declaration is <?xml version="1.0" encoding="UTF-16"?>).
When Encoding = UTF-16
Saved in DreamWeaver - file is accessible to grep
Saved in XmlSpy - not accessible to grep
When Encoding = UTF-8
Saved in DreamWeaver - accessible to grep
Saved in XmlSpy - accessible to grep
So if XmlSpy is saving them in 16-bit unicode, can I use grep with them, or do I need to turn to something else?
Cheers
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a problem when i grep for a particular field among all fhe files in the directory.
if i do an ls -l field *
i can find it.
however at the moment the number of files in the directory are close to 28000 and it returns an
ksh: /usr/bin/grep: arg list too long
Assuming i... (2 Replies)
Discussion started by: manualvin
2 Replies
2. Shell Programming and Scripting
Hi
I want to get the value between to XML tags as follows
<EAN>12345</EAN>
so i would want to return 12345. i have tried sed and awk but can't do it.
can anyone help? (9 Replies)
Discussion started by: handak9
9 Replies
3. Shell Programming and Scripting
I want to search the below XML pattern in the XML files, but the XML files would be in a .GZ files,
<PRODID>LCTO84876</PRODID>
<PARTNUMBER>8872AC1</PARTNUMBER>
<WWPRODID>MODEL84876</WWPRODID>
<COUNTRY>US</COUNTRY>
<LANGUAGE>1</LANGUAGE>
What's the command/script to search it ? :confused: (2 Replies)
Discussion started by: saravvij
2 Replies
4. Shell Programming and Scripting
Hi all,
I have a file resp_cde.ats which has values as:-
APPDIR=C:\Program Files\Cogny\cert
PUBSDIR=C:\Program Files\Cognoy\cert\documentation
TOURDIR=C:\Program Files\Cognoy\cert\tour
DATADIR=C:\Program Files\Cognoy\cert\data
Now I use the grep command in a shell script:-
x=`grep... (2 Replies)
Discussion started by: vikasrout
2 Replies
5. Shell Programming and Scripting
I have a .xml file similar to the following:
<Column>
<Name>FIELD1</Name>
<Title>CO.</Title>
</Column>
<Column>
<Name>FIELD2</Name>
<EditField>TextBox</EditField>
<ColumnSpan0>4</ColumnSpan0>
<Title>NORMAL</Title>
... (12 Replies)
Discussion started by: jl487
12 Replies
6. UNIX for Dummies Questions & Answers
I have 2 XML Data files with a tag named PARTICIPATION_TYPE and i am trying to grep for that and getting unique values. However one of the xml data file data is not aligned properly like below.
File 1: (works fine when i do grep) grep "PARTICIPATION_TYPE" file1.xml | sort -u
Data:
....... (3 Replies)
Discussion started by: Ariean
3 Replies
7. UNIX for Dummies Questions & Answers
I have an xml file with header as below.
<Provider xmlns="http://www.xyzx.gov/xyz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xyzx.gov/xyz xyz.xsd" SCHEMA_VERSION="2.5" PROVIDER="5">
I want to get the schema version here that is 2.5 and put in a... (7 Replies)
Discussion started by: Ariean
7 Replies
8. Shell Programming and Scripting
Dear community,
I have a big XML log file containing several rows splitted by tag: <ActivityLogRecord> and </ActivityLogRecord>. An example below.
What I need is read the file and extract some value from each tags and put them into one line (each line for every <ActivityLogRecord> tag).
So... (5 Replies)
Discussion started by: Lord Spectre
5 Replies
9. Shell Programming and Scripting
Hi,
I have the below tag/s in my xml.
<foreign-server name="MOHTASHIM_SERVER">
What will be the easist way to extract MOHTASHIM_SERVER without the double quotes "" from the above tag?
Desired Output: (10 Replies)
Discussion started by: mohtashims
10 Replies
10. UNIX for Beginners Questions & Answers
I have a simple xml file,need the output with the <value> tag and <result> tag
text.xml
<test-method status="FAIL" duration="45">
<value>
Id=C18
</value>
<result>
wrong paramter
</result>
</test-method>
<test-method status="FAIL" duration="45">
<value>
Id=C19
</value>
<result>
Data... (5 Replies)
Discussion started by: DevAakash
5 Replies
LEARN ABOUT DEBIAN
itstool
ITSTOOL(1) General Commands Manual ITSTOOL(1)
NAME
itstool - convert between XML and PO using ITS
SYNOPSIS
itstool [OPTIONS] [XMLFILES]
itstool -m <MOFILE> [OPTIONS] [XMLFILES]
DESCRIPTION
itstool extracts messages from XML files and outputs PO template files, then merges translations from MO files to create translated XML
files. It determines what to translate and how to chunk it into messages using the W3C Internationalization Tag Set (ITS).
To extract messages from XML files FILES and output them to OUT.pot:
itstool -o OUT.pot FILES
After merging with existing translations or translating strings, generate an MO file with msgfmt(1), then output translated files to the
directory DIR:
itstool -m OUT.mo -o DIR FILES
ITS definitions are loaded from the built-in rules, rules embedded in the source XML files, files passed with the -i option, and ITS
attributes in the source XML files. Later definitions take precedence.
OPTIONS
Extracting
-o FILE
--out=FILE
output PO template to the file OUT
Merging
-m FILE
--merge=FILE
merge from an MO file FILE and output XML files
-l LANG
--lang=LANG
explicitly set the language code output to XML
-o FILE
--out=FILE
output XML files in the directory OUT
Common
-i ITS
--its=ITS
load the ITS rules in the file ITS (can specify multiple times)
AUTHOR
Shaun McCance <shaunm@gnome.org>
SEE ALSO
More documentation for itstool is maintained online. For more information, see:
http://itstool.org/documentation/
itstool 1.1.3 May 2011 ITSTOOL(1)