Talk:XML/XPath: Difference between revisions

XML/XPath is missing the XPath
(added a new talk section.)
 
(XML/XPath is missing the XPath)
 
Line 8:
 
However, listing them vertically would facilitate perusing when formatting them with adjustment to the right.   This would be more in the keeping with the original intent (as I view it) of ''perform an action on each "price" element''. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:01, 9 September 2014 (UTC)
 
It would have been more helpful if the actual XPath was provided in the problem description. As currently described, this is not an "XML/XPath" example, just an "XML" example, since there's no xpath semantics requirement. Here are some divergence points caused by this:
:::* Is the code supposed to find the first "item" element regardless of path, as in //item, or the first item element within that specific structure, as in /inventory/section/item? The same apply to the other tasks.
:::* Is the code supposed to print the price elements, as in //price, or the text component of the price element, as in //price/text()?
:::* As for the second task, the third task is also unclear on whether the element or the text component of the element is desired.
 
-- [[User:Dcsobral|Daniel Sobral]] ([[User talk:Dcsobral|talk]]) 20:01, 21 November 2019 (UTC)
Anonymous user