Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-06-2014, 01:14 PM   #1
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

<DecisionVal>MyDomain:My program:Long name of decision about 50 characters:My view:My version</DecisionVal>

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, 01:01 PM   #2
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....


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 10:23 PM
XMLLINT - when we use in shell mode sashi_hc Ubuntu 0 08-07-2012 05: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 04:50 AM
xmllint munging UTF8 chars in HTML document... workaround? mattp52 Programming 0 01-12-2009 02:08 AM
xmllint against XSD validation kshkid Programming 3 05-25-2007 05:53 AM

All times are GMT -5. The time now is 08:05 AM.

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