<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_6_thread_7615"  />
<title>rulinux.net - Форум - Development - XML -&gt; ini-like</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Development - XML -&gt; ini-like</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re: XML -&gt; ini-like -&gt; НЕНАВИСТЬ ТУКСОЕДУ</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55166</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55166</guid>
<pubDate>Tue, 20 Jul 2010 08:09:35 +0400</pubDate>
<description><![CDATA[<p>&nbsp;<a href="http://pastebin.org/407628">http://pastebin.org/407628</a></p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55165</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55165</guid>
<pubDate>Tue, 20 Jul 2010 08:06:35 +0400</pubDate>
<description><![CDATA[<p>data.xml</p><p><fieldset><legend>xml</legend><code><br />
<br />
&nbsp;Universal Access &nbsp;<br />
&nbsp;Utility-Accessibility.directory &nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp;Accessibility &nbsp;<br />
&nbsp; &nbsp; &nbsp;Settings &nbsp;<br />
&nbsp; &nbsp;<br />
&nbsp;<br />
<br />
&nbsp;</code></fieldset></p><p> style.xsl</p><p><fieldset><legend>xml</legend><code><br />
<br />
<br />
&nbsp;<br />
<br />
<br />
&nbsp; 0<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp;= &nbsp;<br />
&nbsp; &nbsp; !<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; <br />
<br />
<br />
&nbsp; &nbsp; <br />
<br />
<br />
&nbsp;</code></fieldset></p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55164</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55164</guid>
<pubDate>Tue, 20 Jul 2010 06:19:29 +0400</pubDate>
<description><![CDATA[<p>А что скрывается за style.xsl?</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55163</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55163</guid>
<pubDate>Sat, 17 Jul 2010 00:56:11 +0400</pubDate>
<description><![CDATA[<p><i>> И что? Зачем мне гонять один XML в другой? </i><br> А кто заставляет тебя гонять в XML?</p><p>Вот смотри, сынок:</p><p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1"><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;$ Xalan data.xml style.xsl<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Name =  Universal Access<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Directory =  Utility-Accessibility.directory<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Category =  Accessibility<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Category =  !Settings<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;</ol></fieldset></p><p> <i>> Наверняка уже было написано миллион таких парсеров. Нет ли среди них стоящих, которые применяются хотя бы в двух сторонних проектах?</i><br> Есть, они называются XSLT-процессорами и применяются во множестве самых разных проектов.</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55162</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55162</guid>
<pubDate>Fri, 16 Jul 2010 08:33:56 +0400</pubDate>
<description><![CDATA[<p><i>>нет. движок поступит с ним так-же как и с остальным текстом.</i><br> так же как с текстом вне \begin...\end? пиздец, если в коде есть непонятные парсеру слова - то это нихуя не код и его надо выкинуть. да разработчикам за такое руки надо отрывать!</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55161</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55161</guid>
<pubDate>Fri, 16 Jul 2010 08:29:23 +0400</pubDate>
<description><![CDATA[<p><i>>т.е. если написать внутри "sed s/foo/bar/" оно станет нерабочим?</i><br> нет. движок поступит с ним так-же как и с остальным текстом.</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55160</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55160</guid>
<pubDate>Fri, 16 Jul 2010 08:24:40 +0400</pubDate>
<description><![CDATA[<p><i>>просто для кода есть begin[xxx]{highlight} но поддержки седа там нет.</i><br> т.е. если написать внутри "sed s/foo/bar/" оно станет нерабочим? да разработчикам за такое руки надо отрывать! нахуя мне подсветка, оно должно хотябы код не коверкать</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55159</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55159</guid>
<pubDate>Fri, 16 Jul 2010 08:18:28 +0400</pubDate>
<description><![CDATA[<p>просто для кода есть begin[xxx]{highlight} но поддержки седа там нет.</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55158</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55158</guid>
<pubDate>Fri, 16 Jul 2010 08:13:25 +0400</pubDate>
<description><![CDATA[<p>ты тут вставь. или ты теги вводил, чтоб они не работали?</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55157</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55157</guid>
<pubDate>Fri, 16 Jul 2010 08:03:51 +0400</pubDate>
<description><![CDATA[<p>&nbsp;<a href="http://pastebin.org/399010">http://pastebin.org/399010</a></p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55156</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55156</guid>
<pubDate>Fri, 16 Jul 2010 07:59:41 +0400</pubDate>
<description><![CDATA[<p>ты думаешь самый умный, да? нихуя оно не работает</p><p>попробуй вставь:</p><p>sed 's/\ *aaa\ *\/.*//g; /bbb\ *$/ { s/\ *aaa\ */[/; s/\ *bbb\ */]/; }; /\ *aaa\ *not\ *bbb/ { s/\ *aaa\ *not\ *bbb//g; s/\ *bbb\ */=\!/g; }; s/\ *bbb\ */=/g; s/\ *aaa\ *//g;'</p><p>// заменить ааа на < , a bbb на >  </p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55155</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55155</guid>
<pubDate>Fri, 16 Jul 2010 07:57:24 +0400</pubDate>
<description><![CDATA[<p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1"><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;sed 's/\ *aaa\ *\/.*//g; /bbb\ *$/ { s/\ *aaa\ */[/; s/\ *bbb\ */]/; </ol></fieldset>; /\ *aaa\ *not\ *bbb/ { s/\ *aaa\ *not\ *bbb//g; s/\ *bbb\ */=\!/g; }; s/\ *bbb\ */=/g; s/\ *aaa\ *//g;'}</p><p>// заменить ааа на < , a bbb на >  </p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55154</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55154</guid>
<pubDate>Fri, 16 Jul 2010 07:55:57 +0400</pubDate>
<description><![CDATA[<p>&nbsp;<a href="http://www.lor-ng.org/page.php?id=2">http://www.lor-ng.org/page.php?id=2</a></p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55153</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55153</guid>
<pubDate>Fri, 16 Jul 2010 07:53:17 +0400</pubDate>
<description><![CDATA[<p>все, заебало, это последний раз.</p><p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1"><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;sed 's/\ *\ *$/ { s/\ *\ */]/; </ol></fieldset>; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55152</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55152</guid>
<pubDate>Fri, 16 Jul 2010 07:51:57 +0400</pubDate>
<description><![CDATA[<p>здохни, туксойд!!!</p><p>\begin[lang]{highlight}</p><p>sed 's/\ *\ *$/ { s/\ *\ */]/; }; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55151</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55151</guid>
<pubDate>Fri, 16 Jul 2010 07:50:08 +0400</pubDate>
<description><![CDATA[<p>че за нах?</p><p>\begin[bash]{highlight}</p><p>sed 's/\ *\ *$/ { s/\ *\ */]/; }; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55150</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55150</guid>
<pubDate>Fri, 16 Jul 2010 07:49:18 +0400</pubDate>
<description><![CDATA[<p>че за нах?</p><p>мб так сойдет?</p><p>\begin[bash]{highlight} sed 's/\ *\ *$/ { s/\ *\ */]/; }; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55149</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55149</guid>
<pubDate>Fri, 16 Jul 2010 07:48:21 +0400</pubDate>
<description><![CDATA[<p>мб так сойдет?</p><p>\begin[bash]{highlight} sed 's/\ *\ *$/ { s/\ *\ */]/; }; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55148</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55148</guid>
<pubDate>Fri, 16 Jul 2010 07:47:55 +0400</pubDate>
<description><![CDATA[<p>мб так сойдет? \begin[bash]{highlight} sed 's/\ *\ *$/ { s/\ *\ */]/; }; /\ */ { s/\ *//g; s/\ *>\ */=!/g; }; s/\ *>\ */=/g; s/\ *</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55147</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55147</guid>
<pubDate>Fri, 16 Jul 2010 06:45:42 +0400</pubDate>
<description><![CDATA[<p>И что? Зачем мне гонять один XML в другой? Мне нужно выбросить весь XML-шум и оставить только данные. Наверняка уже было написано миллион таких парсеров. Нет ли среди них стоящих, которые применяются хотя бы в двух сторонних проектах?</p>]]></description>
</item>
<item>
<title>Re: XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55146</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55146</guid>
<pubDate>Thu, 15 Jul 2010 18:43:05 +0400</pubDate>
<description><![CDATA[<p>&nbsp;<a href="http://ru.wikipedia.org/wiki/XSLT">http://ru.wikipedia.org/wiki/XSLT</a></p>]]></description>
</item>
<item>
<title>XML -&gt; ini-like</title>
<link>https://rulinux.net/message.php?newsid=7615&amp;page=1#55145</link>
<guid>https://rulinux.net/message.php?newsid=7615&amp;page=1#55145</guid>
<pubDate>Thu, 15 Jul 2010 18:36:00 +0400</pubDate>
<description><![CDATA[<p>Есть ли какой готовый конвертор для преобразования конфига из XML в ini-like формат? Опять же для использования в консольных скриптах. Как вариант -- из языков высокого уровня.</p><p>Хочу из подобного куска XML-кода</p><p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1"><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;< Menu ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;    < Name > Universal Access < /Name ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;    < Directory > Utility-Accessibility.directory < /Directory ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;    < Include ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;      < And ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;        < Category > Accessibility < /Category ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;        < Not > < Category > Settings < /Category > < /Not ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;      < /And ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;    < /Include ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;  < /Menu ><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;</ol></fieldset></p><p>получить что-то в виде</p><p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1"><li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;[Menu]<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Name=Universal Access<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Directory=Utility-Accessibility.directory<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Category=Accessibility<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;Category=!Settings<li style="background-color:#000000; padding-left: 5px; color: gray">&nbsp;</ol></fieldset></p><p>Как обозначить поле, заключённое в < Not > < /Not > -- вопрос открытый. Можно даже отбрасывать нераспознанные поля.</p>]]></description>
</item>
</channel>
</rss>