<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: why elements in XML can&#8217;t be numbers</title>
	<link>http://uucode.com/blog/2005/04/11/why-elements-in-xml-cant-be-numbers/</link>
	<description>advocating olpa's open source developments</description>
	<pubDate>Sat, 06 Sep 2008 01:03:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: olpa</title>
		<link>http://uucode.com/blog/2005/04/11/why-elements-in-xml-cant-be-numbers/#comment-15577</link>
		<dc:creator>olpa</dc:creator>
		<pubDate>Sun, 03 Aug 2008 02:48:08 +0000</pubDate>
		<guid>http://uucode.com/blog/2005/04/11/why-elements-in-xml-cant-be-numbers/#comment-15577</guid>
		<description>Because it breaks the semantics of XPath. An expression inside brackets is evaluated as XPath and casted to boolean. The first XPath is a valid XPath: expression in the brackets evaluated to a string "1", which in turn casted to true. You are not allowed to interpret "1" as a child name.</description>
		<content:encoded><![CDATA[<p>Because it breaks the semantics of XPath. An expression inside brackets is evaluated as XPath and casted to boolean. The first XPath is a valid XPath: expression in the brackets evaluated to a string &#8220;1&#8243;, which in turn casted to true. You are not allowed to interpret &#8220;1&#8243; as a child name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://uucode.com/blog/2005/04/11/why-elements-in-xml-cant-be-numbers/#comment-15576</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Fri, 01 Aug 2008 14:24:00 +0000</pubDate>
		<guid>http://uucode.com/blog/2005/04/11/why-elements-in-xml-cant-be-numbers/#comment-15576</guid>
		<description>Well, that's a good explanation... but shouldn't the element names be within "'"? 

So, the path should be something like:

/World/Widgets['1'] : for the child element
/World/Widgets[1] : for the first widget</description>
		<content:encoded><![CDATA[<p>Well, that&#8217;s a good explanation&#8230; but shouldn&#8217;t the element names be within &#8220;&#8216;&#8221;? </p>
<p>So, the path should be something like:</p>
<p>/World/Widgets[&#8217;1&#8242;] : for the child element<br />
/World/Widgets[1] : for the first widget</p>
]]></content:encoded>
	</item>
</channel>
</rss>
