{"id":2371,"date":"2010-07-10T11:11:00","date_gmt":"2010-07-10T11:11:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/07\/10\/editing-xml-documents-in-emacs-using-nxml-mode\/"},"modified":"2023-08-25T17:23:31","modified_gmt":"2023-08-25T15:23:31","slug":"editing-xml-documents-in-emacs-using-nxml-mode","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/07\/10\/editing-xml-documents-in-emacs-using-nxml-mode\/","title":{"rendered":"editing XML documents in emacs using nxml-mode"},"content":{"rendered":"<p>\t\t\t\tOne good reason for not not authoring in XML is not having a suitable editor or IDE.\u00a0I personally use and recommend emacs and <a href=\"http:\/\/en.wikipedia.org\/wiki\/James_Clark_(programmer)\">James Clark<\/a>&#8216;s\u00a0<a href=\"http:\/\/www.thaiopensource.com\/nxml-mode\/\">nxml-mode<\/a>.\u00a0I create and modify all sorts of XML documents this way.\u00a0If you supply nxml-mode with the right schema for your document, nxml-mode can even help you with tag completion and document validation.\u00a0nxml-mode makes use of schemas in <a href=\"http:\/\/www.relaxng.org\/\">RELAX-NG<\/a>, co-created by <a href=\"http:\/\/en.wikipedia.org\/wiki\/James_Clark_(programmer)\">James Clark<\/a>.\u00a0RELAX-NG schemas are rather easily created, if not yet just available, as for DocBook, DocBook Website, DocBook Slides, and many, many other XMLs.<\/p>\n<div>\n<div>\n&#8220;<a href=\"http:\/\/www.thaiopensource.com\/relaxng\/trang.html\">Trang<\/a>&#8221; is <b>your<\/b> tool for creating a RELAX-NG schema:<\/p>\n<ul>\n<li>if you want to convert a DTD into a RELAX-NG schema,<\/li>\n<li>if you want to derive a RELAX-NG schema from a couple of XML files of a specific kind,<\/li>\n<li>\u2026<\/li>\n<\/ul>\n<p>I have done that a dozen times, it <b>does<\/b> work.<\/p>\n<p><a href=\"http:\/\/www.gnu.org\/software\/emacs\/manual\/nxml-mode.html\">Here<\/a>\u00a0you find nxml-mode&#8217;s manual page.<\/p>\n<\/div>\n<div>Your mileage may vary \u2026<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>One good reason for not not authoring in XML is not having a suitable editor or IDE.\u00a0I personally use and recommend emacs and James Clark&#8216;s\u00a0nxml-mode.\u00a0I create and modify all sorts of XML documents this way.\u00a0If you supply nxml-mode with the right schema for your document, nxml-mode can even help you with tag completion and document [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[101,103,382,495,666,726],"tags":[1360],"class_list":["post-2371","post","type-post","status-publish","format-standard","hentry","category-docbook","category-docbook-website","category-nxml-mode","category-relax-ng","category-uncategorized","category-xml","tag-trang"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-Cf","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=2371"}],"version-history":[{"count":1,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2371\/revisions"}],"predecessor-version":[{"id":12646,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2371\/revisions\/12646"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=2371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=2371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=2371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}