OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Xpath Question

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: Xpath Question
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Fri, 25 Jul 2003 10:42:34 -0700
  • Thread-index: AcNS1CHE28vlQkgJTW6ygfzxkNBZQQ==
  • Thread-topic: Xpath Question

One of our devs just made me question all that's right in the world with
the question below. Given the following XML 

<pre>
  <b>bold</b>
  <i>italic</i>
</pre>

what is the result of the following XPath expression
"count(/pre/child::node())" ?

Is the answer 2 or 5? 


-- 
PITHY WORDS OF WISDOM 
Herblock's Law: if it is good, they will stop making it.


This posting is provided "AS IS" with no warranties, and confers no
rights. 






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS