<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums &#187; Tag: XML - Recent Posts</title>
		<link>http://pnotepad.org/forums/tags/xml</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 23:46:59 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/tags/xml" rel="self" type="application/rss+xml" />

		<item>
                        <title>XML configuration files beautified (simon)</title>
			<link>http://pnotepad.org/forums/topic/5096#post-7528</link>
			<pubDate>Tue, 04 Jan 2011 14:52:20 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7528@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Thanks Nux, I'll take a look. People have managed to get all of PN building with express, it's a bit fiddly. Have a search on here and you should turn up some instructions.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML configuration files beautified (Nux)</title>
			<link>http://pnotepad.org/forums/topic/5096#post-7525</link>
			<pubDate>Sun, 26 Dec 2010 22:43:58 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">7525@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;Added an issue here with a proposed patch:&#60;br /&#62;
&#60;a href=&#34;https://code.google.com/p/pnotepad/issues/detail?id=1146&#34; rel=&#34;nofollow&#34;&#62;https://code.google.com/p/pnotepad/issues/detail?id=1146&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Note that I've only tested the code on Visual C++ Express 2008 as a separate test project. I was not sure if I would be able to compile PN at all on an Express edition...
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>File formats (simon)</title>
			<link>http://pnotepad.org/forums/topic/5091#post-7455</link>
			<pubDate>Wed, 10 Nov 2010 16:41:29 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7455@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;There is no DTD for these files, but the syntax is simple and stable - open one up and see what you've got!
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML configuration files beautified (simon)</title>
			<link>http://pnotepad.org/forums/topic/5096#post-7451</link>
			<pubDate>Wed, 10 Nov 2010 16:36:18 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7451@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Currently GenX the tool we use for writing the XML does not support beautified writing (it's designed to output canonical XML). It's something I'd be willing to accept a patch for, but won't have time to work on any time soon.&#60;/p&#62;
&#60;p&#62;It may not be that difficult to do, as it should be a case of finding where end element writing is handled in genx.c and add indent/line breaks. Care would need to be taken over indents where the inner content of an element is text - changing the output to use indent or line break there would change the content of the file.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML configuration files beautified (Nux)</title>
			<link>http://pnotepad.org/forums/topic/5096#post-7441</link>
			<pubDate>Tue, 02 Nov 2010 13:36:21 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">7441@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi.&#60;/p&#62;
&#60;p&#62;Is it possible to setup PN so that it saves all (or most) of it's configuration files in a beautified version (or at least with line breaks).&#60;/p&#62;
&#60;p&#62;The point is to allow users to edit files by hand and use diff tools for project configuration files (both for things like CVS/SVN and synchronising user settings between computers).&#60;/p&#62;
&#60;p&#62;If it's not implemented would you say it would be hard or easy to implement?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>File formats (jb)</title>
			<link>http://pnotepad.org/forums/topic/5091#post-7432</link>
			<pubDate>Mon, 18 Oct 2010 19:10:27 +0000</pubDate>
			<dc:creator>jb</dc:creator>
			<guid isPermaLink="false">7432@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I am new to Programmer's Notepad. How would I find the XML structure (DTD) of a .pnproj file
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tag around selected text (simon)</title>
			<link>http://pnotepad.org/forums/topic/5050#post-7306</link>
			<pubDate>Thu, 19 Aug 2010 10:43:12 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7306@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;So this is a very basic implementation of what you're looking for as a PN script. I don't have time to add the extras, but hopefully you could do so based on this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;import pn, scintilla

@script(&#38;quot;Surround With&#38;quot;, &#38;quot;Xml&#38;quot;)
def RecordedScript():
	doc = pn.CurrentDoc()
	sci = scintilla.Scintilla(doc)
	text = sci.SelText
	surround = pn.InputBox(&#38;quot;HTML/XML Surround With&#38;quot;, &#38;quot;Type the tag name...&#38;quot;)
	text = &#38;quot;&#38;lt;&#38;quot; + surround + &#38;quot;&#38;gt;&#38;quot; + text + &#38;quot;&#38;lt;/&#38;quot; + surround + &#38;quot;&#38;gt;&#38;quot;
	sci.ReplaceSel(str(text))&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This needs modifying to ignore attributes, and to support short tags too.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Tag around selected text (Nux)</title>
			<link>http://pnotepad.org/forums/topic/5050#post-7291</link>
			<pubDate>Thu, 12 Aug 2010 14:54:52 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">7291@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi.&#60;/p&#62;
&#60;p&#62;I often use PN to edit xml-like files. An option to auto-close tags is nice, but not sufficient if you already have a text which must be enclosed in tags. I could use text-clips for that, but I would like to be able do that with keyboard like this:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Select text.&#60;/li&#62;
&#60;li&#62;Press some key (e.g. CTRL+SHIFT+T) → dialog with an input appears.&#60;/li&#62;
&#60;li&#62;Write tag name (and optional attrs after space).&#60;/li&#62;
&#60;li&#62;Press ENTER → tag is inserted around selected text.&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;Similar script in JS:&#60;br /&#62;
&#60;a href=&#34;http://pl.wikipedia.org/wiki/Wikipedysta:Nux/htag.js&#34; rel=&#34;nofollow&#34;&#62;http://pl.wikipedia.org/wiki/Wikipedysta:Nux/htag.js&#60;/a&#62;&#60;br /&#62;
(look for &#34;htag.insert&#34; function)&#60;/p&#62;
&#60;p&#62;Extra:&#60;br /&#62;
Recognition of short tags:&#60;br /&#62;
case 'img':&#60;br /&#62;
case 'meta':&#60;br /&#62;
case 'link':&#60;br /&#62;
case 'br':&#60;br /&#62;
case 'hr':&#60;br /&#62;
case 'input':&#60;/p&#62;
&#60;p&#62;Optional autocomplete for tags in the input would be great.&#60;/p&#62;
&#60;p&#62;I'm not very Python friendly, but maybe some has something like that already (or can do it based on JS)?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML intelligent commenting and XML autoformat (simon)</title>
			<link>http://pnotepad.org/forums/topic/4894#post-7036</link>
			<pubDate>Mon, 07 Jun 2010 08:54:55 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7036@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;As for auto-format I usually set up HTML Tidy to use as a tool to format XML.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML intelligent commenting and XML autoformat (simon)</title>
			<link>http://pnotepad.org/forums/topic/4894#post-7035</link>
			<pubDate>Mon, 07 Jun 2010 08:54:36 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">7035@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;It's not currently supported, but should be possible. It's certainly possible with a script using PyPN. You could try this, or file a request here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://code.google.com/p/pnotepad/issues/entry&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/pnotepad/issues/entry&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML intelligent commenting and XML autoformat (Kugel)</title>
			<link>http://pnotepad.org/forums/topic/4894#post-7029</link>
			<pubDate>Sun, 06 Jun 2010 20:59:37 +0000</pubDate>
			<dc:creator>Kugel</dc:creator>
			<guid isPermaLink="false">7029@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I would like to ask if there is a way to auto format (reindent) xml in PN2?&#60;/p&#62;
&#60;p&#62;Another question is if there is any support for intelligent commenting? XML has only 1 commenting option &#60;code&#62;&#38;lt;!-- --&#38;gt;&#60;/code&#62; and I would love to have xml commenting done as in Visual Studio. Selected text -&#38;gt; stream comment, selected whole row (more rows) -&#38;gt; block comment nothing selected -&#38;gt; line comment. All on the same short cut.&#60;/p&#62;
&#60;p&#62;Is that possible?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Text Clip Schema (manngo)</title>
			<link>http://pnotepad.org/forums/topic/506#post-1766</link>
			<pubDate>Sat, 03 Jan 2009 03:47:43 +0000</pubDate>
			<dc:creator>manngo</dc:creator>
			<guid isPermaLink="false">1766@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I am writing (or modifying) a few text clips. I have modeled my work on existing clips, but is there a DTD or Schema to help me see what I can do?&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>How do you create an XML file for &#039;tools&#039; (jfunk)</title>
			<link>http://pnotepad.org/forums/topic/158#post-580</link>
			<pubDate>Mon, 22 Jan 2007 01:20:51 +0000</pubDate>
			<dc:creator>jfunk</dc:creator>
			<guid isPermaLink="false">580@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;That worked.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>How do you create an XML file for &#039;tools&#039; (simon)</title>
			<link>http://pnotepad.org/forums/topic/158#post-579</link>
			<pubDate>Fri, 19 Jan 2007 10:01:16 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">579@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Use the GUI to edit the file, and look at the changes made, you can send the GUI-edited file out. When you add new tools they'll be added to the UserTools.xml file in your Users\UserName\Application Data\Echo Software\PN2 directory.&#60;/p&#62;
&#60;p&#62;If you need more information let me know, I'm sure there was a thread about it on the discuss list a while back.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>How do you create an XML file for &#039;tools&#039; (jfunk)</title>
			<link>http://pnotepad.org/forums/topic/158#post-578</link>
			<pubDate>Fri, 19 Jan 2007 07:12:48 +0000</pubDate>
			<dc:creator>jfunk</dc:creator>
			<guid isPermaLink="false">578@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Are there instructions on creating your own XML file in the tools folder?&#60;/p&#62;
&#60;p&#62;I have the Programmers notepad2 that came with the WinAVR package. I was able to copy and then modify the WinAVR.xml file for the most part but I can't get the 'shortcut' attribute to work. I also want to move some of the tools out of 'global' so they will only work with the specific file type but that dosn't seem to work either. I wan't to use the XML file instead of the &#34;GUI's tools-&#38;gt;options&#34; since there are multiply computers that need this configuration ( some of which are out of state/country ).
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML transform tool (simon)</title>
			<link>http://pnotepad.org/forums/topic/64#post-245</link>
			<pubDate>Fri, 26 May 2006 08:42:44 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">245@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I use xsltproc to do XML transforms, and occasionally saxon or xalan. You could then use %? to ask for the XSLT file to run your current file against.&#60;/p&#62;
&#60;p&#62;Not the perfect workflow but it's reasonable.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>XML transform tool (neotoxic)</title>
			<link>http://pnotepad.org/forums/topic/64#post-243</link>
			<pubDate>Wed, 24 May 2006 14:22:36 +0000</pubDate>
			<dc:creator>neotoxic</dc:creator>
			<guid isPermaLink="false">243@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Is there a tool that will allow PN to do an XSLT transform on and XML file... I wouldn't of thought it would take much doing if there isn't one out there.&#60;/p&#62;
&#60;p&#62;I guess, ideally, you just need to be able to specify 2 files to a tool that would process the transformation and pass the response back to the output window.&#60;/p&#62;
&#60;p&#62;Couple this with the 'auto-closing' tag feature I understand is currently being developed, and I think that you will have an excellent XML  / XSLT development environment.
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Window handle parameter (simon)</title>
			<link>http://pnotepad.org/forums/topic/62#post-241</link>
			<pubDate>Mon, 22 May 2006 15:38:40 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">241@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I presume this is the Textpad plugin called XMLTidy? You can do what this tool does using HTMLTidy (which is what XMLTidy wraps up).&#60;/p&#62;
&#60;p&#62;Add a tool like this:&#60;br /&#62;
command: tidy.exe&#60;br /&#62;
params: -iq -xml --newline LF --tab-size 4&#60;/p&#62;
&#60;p&#62;On the Console I/O page select both:&#60;br /&#62;
&#34;Pass my selection to this tool using standard input&#34; and &#34;Capture output&#34; and select &#34;Replace my selection&#34; from the box beneath capture output.&#60;/p&#62;
&#60;p&#62;This will in-place tidy your XML!&#60;/p&#62;
&#60;p&#62;You can get the tidy program from &#60;a href=&#34;http://tidy.sourceforge.net/&#34; rel=&#34;nofollow&#34;&#62;http://tidy.sourceforge.net/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Window handle parameter (latipak)</title>
			<link>http://pnotepad.org/forums/topic/62#post-238</link>
			<pubDate>Fri, 19 May 2006 08:57:02 +0000</pubDate>
			<dc:creator>latipak</dc:creator>
			<guid isPermaLink="false">238@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I am trying too use a tool (xmltidy) that requires the window handle of the window i am trying to pass. What Parameter should I use?&#60;/p&#62;
&#60;p&#62;What Parameter for the clipboard?&#60;/p&#62;
&#60;p&#62;If not possible, is there another way to format XML automatically?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

