LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-06-2014, 12:14 PM   #1
sashi_hc
LQ Newbie
 
Registered: Aug 2012
Posts: 6
Blog Entries: 1

Rep: Reputation: Disabled
XMLLINT problem


I have an XML file that look like this - let us call it decision.xml

<Decision>
<DecisionValWrapper>
<DecisionKey>RuleName</DecisionKey>
<DecisionVal>MyDomain:My program:Long name of decision about 50 characters:My view:My version</DecisionVal>
<DecisionType>String</DecisionType>
</DecisionValWrapper>
<Decision>

Now when I say grep (without any arguments) inside the shell of xmllint, it outputs a shortened form of the DecisionVal contents.

What should I do to get the entire contents? I have used --huge option, and also the --nocompact option

ie -> xmllint -shell --huge --nocompact decision.xml
followed by grep
 
Old 02-07-2014, 12:01 PM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
grep does not work correctly with XML's
how about switching to Sanjo's bgrep? its grep but with support for xml/php/cgi and so on.....
should be available in testing repo....
 
  


Reply

Tags
shell, short, string, truncate, xmllint


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault error on schema validation using xmllint GopalNithi Programming 4 11-09-2012 09:23 PM
XMLLINT - when we use in shell mode sashi_hc Ubuntu 0 08-07-2012 04:16 PM
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 03:50 AM
xmllint munging UTF8 chars in HTML document... workaround? mattp52 Programming 0 01-12-2009 01:08 AM
xmllint against XSD validation kshkid Programming 3 05-25-2007 04:53 AM


All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration