{"id":262,"date":"2011-02-13T12:27:35","date_gmt":"2011-02-13T11:27:35","guid":{"rendered":"http:\/\/www.open4me.de\/?p=262"},"modified":"2011-02-13T12:30:05","modified_gmt":"2011-02-13T11:30:05","slug":"xml-dateien-formatieren","status":"publish","type":"post","link":"https:\/\/www.open4me.de\/index.php\/2011\/02\/xml-dateien-formatieren\/","title":{"rendered":"XML-Dateien formatieren"},"content":{"rendered":"<p>Ich stand heute vor dem Problem, die content.xml aus einer <a href=\"http:\/\/de.wikipedia.org\/wiki\/OpenDocument\">odt<\/a>-Datei per Editor \u00e4ndern zu m\u00fcssen.<\/p>\n<p>Leider sind alle XML-Element ohne Zeilenumbr\u00fcche oder andere Formatierungen (Einr\u00fcckungen, &#8230;) in der Datei enthalten.<\/p>\n<p>Abhilfe schafft unter Linux das Programm <a href=\"http:\/\/xmlsoft.org\/xmllint.html\">xmllint<\/a>, das Zeichenumbr\u00fcche hinzuf\u00fcgt und die einzelnen Elemente passend einr\u00fcckt. Die Nutzung ist simpel:<\/p>\n<blockquote><p>xmllint -format alteDatei.xml &gt; neueDatei.xml<\/p><\/blockquote>\n<p>Unter Ubuntu kann das Programm im Paket libxml2-utils gefunden werden.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ich stand heute vor dem Problem, die content.xml aus einer odt-Datei per Editor \u00e4ndern zu m\u00fcssen. Leider sind alle XML-Element ohne Zeilenumbr\u00fcche oder andere Formatierungen (Einr\u00fcckungen, &#8230;) in der Datei enthalten. Abhilfe schafft unter Linux das Programm xmllint, das Zeichenumbr\u00fcche hinzuf\u00fcgt und die einzelnen Elemente passend einr\u00fcckt. Die Nutzung ist simpel: xmllint -format alteDatei.xml &gt; &hellip; <a href=\"https:\/\/www.open4me.de\/index.php\/2011\/02\/xml-dateien-formatieren\/\" class=\"more-link\"><span class=\"screen-reader-text\">XML-Dateien formatieren<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[19,21,22,20,18],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-utils","tag-formatieren","tag-libreoffice","tag-odt","tag-openoffice","tag-xml"],"_links":{"self":[{"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":4,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.open4me.de\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}