ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: Чем распарсить xml в bash скрипте?
Date: Tue, 18 Sep 2007 16:14:01 +0400
Message-ID: <46EFC109.4090003@solin.spb.ru> (raw)
In-Reply-To: <20070918120521.GT13893@osdn.org.ua>

Michael Shigorin пишет:
> On Tue, Sep 18, 2007 at 03:41:02PM +0400, Aleksey Avdeev wrote:
>> Чем удобно парсить xml в bash скриптах?
> 
> Зависит, но, наверное, нормальным парсером для нормального языка
> с подходящим уровнем поддержки структур данных.

  Из xml мне нужны только текстовые строки расположенные по заданнаым
адресам. Лелею надежду, что у нас есть утилита способная из от туда
вытащить... Полноценная обработка xml мне не требуется (только ro
избранных мест).

> 
> На Ruby весьма удобно работать с XML при помощи REXML.
> 
>> Если решить задачу в лоб, то выдрать содержимое нужных секций
>> я смогу с помощью awk.
> 
> Помнится, morozov@ уже грустно шутил по поводу разбора xml 
> awk'ом в сизифе... (что-то про alternatives имени inger@
> в какой-то из реализаций, не помню подробностей)

  Догадываюсь. Но в данном случаи -- оно возможно.

-- 

С уважением. Алексей.




  reply	other threads:[~2007-09-18 12:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 11:41 Aleksey Avdeev
2007-09-18 11:56 ` Alexey Rusakov
2007-09-18 12:15   ` Aleksey Avdeev
2007-09-18 11:58 ` Kirill A. Shutemov
2007-09-18 12:05   ` Aleksey Avdeev
2007-09-18 12:24     ` Mykola S. Grechukh
2007-09-18 12:22       ` Aleksey Avdeev
2007-09-18 12:46         ` Mykola S. Grechukh
2007-09-18 12:05 ` Michael Shigorin
2007-09-18 12:14   ` Aleksey Avdeev [this message]
2007-09-18 12:43     ` Alexander Bokovoy
2007-09-18 13:19 ` Sergey Bolshakov
2007-09-18 14:18 ` Андрей Черепанов
2007-09-18 15:37 ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46EFC109.4090003@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git