The for loop essentially says "for each item element, do the following."
for循环实际是说“对每个item元素,做以下事情。”
Each item element corresponds to a blog article that matched the search criteria.
每个item元素都对应一篇与搜索条件匹配的博客文章。
Next you create the relevant child elements and attributes of the line-item element.
接下来创建line-item 元素相关的子元素和属性。
The key attribute for the item element is name and is used to check for the field values we are interested in.
item元素的关键属性是name,用于查看我们感兴趣的字段值。
In turn, each item element can have one of the following elements: text, number, datetime, numberlist, and textlist.
每个item元素各自又可以包含以下元素中的一个:text、number、datetime、numberlist和textlist。
Notice also a list item element with id online that shows an image that will be used to indicate to the user whether the application is online or offline.
还要注意一个id为online的列表项元素,该元素显示一个图像,用于向用户表明应用程序是在线还是离线。
The snippet in Listing 11 creates the XML structure by creating a cart element, and an item element and its sub-elements. It populates them with values and adds them to the Document root.
清单11中的代码通过创建一个cart元素、一个item 元素和它的子元素来创建XML结构,然后使用值填充这些子元素并将它们添加到Document 根。
All elements of the ITEM element are optional, however, at least one title or description are needed to validate the element.
ITEM元素的全部元素都是可选的,然而,至少需要一个标题或描述来验证元素。
All elements of the ITEM element are optional, however, at least one title or description are needed to validate the element.
ITEM元素的全部元素都是可选的,然而,至少需要一个标题或描述来验证元素。
应用推荐