From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kendall Shaw Newsgroups: gmane.emacs.help Subject: Re: creating xml files ? Date: Thu, 26 Oct 2017 21:20:19 -0700 Message-ID: <3d4ae240-ec9e-fd5a-c31f-528579cc6edd@kendallshaw.com> References: <0876068A-830F-4CDB-BA45-9784484CDD3F@gmail.com> <86r2tppjl8.fsf@zoho.com> <4CB19167-D17C-44D2-8022-5BA57ABEBF3A@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1509078069 15515 195.159.176.226 (27 Oct 2017 04:21:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 04:21:09 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 06:21:05 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7w8a-0002MV-KC for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 06:20:53 +0200 Original-Received: from localhost ([::1]:55687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7w8h-00028O-M0 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 00:20:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7w8H-000286-R8 for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 00:20:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7w8E-0000CW-M9 for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 00:20:33 -0400 Original-Received: from c.mail.sonic.net ([64.142.111.80]:36820) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7w8E-0000AL-Cj for help-gnu-emacs@gnu.org; Fri, 27 Oct 2017 00:20:30 -0400 Original-Received: from [192.168.1.73] (108-64-77-57.lightspeed.sntcca.sbcglobal.net [108.64.77.57]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id v9R4KJgl006582 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 26 Oct 2017 21:20:23 -0700 In-Reply-To: <4CB19167-D17C-44D2-8022-5BA57ABEBF3A@gmail.com> Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVZz4JZZUhg8spEpbafK+s5AawrGhJOhKSJlJolasP2QnjODX/u+xMyQH5D6zO3ozw8VrCCgxffSSpnxvDWre9sH X-Sonic-ID: C;FgKNJM665xGhf4KfRUfeDw== M;zE38Js665xGhf4KfRUfeDw== X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 64.142.111.80 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114652 Archived-At: On 10/26/2017 06:17 PM, Jean-Christophe Helary wrote: > >> On Oct 27, 2017, at 8:36, Emanuel Berg wrote: >> >> Jean-Christophe Helary wrote: >> >>> Is there a way to create XML files that does >>> not involve concatenating strings? >> $ touch file.xml # :S ??? >> >> Open a file with an .xml extension and it >> should put you in nXML mode which is the/a >> major mode for editing XML. > Thank you Emanuel. > > Fair enough :-) > > What I meant is I'm looking for a way to feed tags/properties/contents to a file in a way that does not involve concatenation. I use nxml to validate XML often enough, but besides for that I have no clear idea how to handle that. > > Jean-Christophe Thank you for asking this question, because I would like to know. I am going to look into: xml-mode that comes with emacs has a print function that takes "nodes" and serializes them as XML text. There are variables that describe what a node is. esxml intends to be sxml (http://okmij.org/ftp/Scheme/SXML.html) for elisp. xmlgen - https://github.com/philjackson/xmlgen Kendall