About the XML literal of Visual Basic 9.0 quantity and XML later period are boun
来源:
作者:Stand originally
时间:2008-12-21
Tag:
点击:
Dim X = _
<(rootName)>
<%= Select
<Book Author=(b.Author)><%= B.Title %></Book>
From B In Books Where B.ID>5 %>
</>
We use the method with built-in code, include the inquiry that is similar to SQL in inserting XML literal to measure directly, went. Its result is very obvious, was to make the list below. Use XML literal is measured, we are OK special and agile ground is combined and generate us to want XML; is OKly also to copy XML directly stickup in the IDE to VB, be revised slightly and become XML maker of yourself. XML literal quantity still perfects the character such as the Namespace that supports XML. Had VB9, still need XSLT? … of it's hard to say…
XML later period is bound calm
We had the instrument that makes XML now, so Where is the resort that visits XML? Visual Basic 9.0 offerred XML later period to bind calm, we can visit XML with the simplest grammar. Assume we have the Books documentation that a moment ago generated, can visit its certain Book directly with following grammar
It is to cite below extract:
Dim Title = X.Books.Book(0).InnerText
Dim Author = X.Books.Book. @author
' this grammar very be similar to XPath, we still can accomplish XPath / / effect:
For Each Dim Book In X.Books. . .Book
' alls over all previous each Book element
Next
Want 3 to nod only, OK the Book of all administrative levels finds a Books lower level, can all over all previous directly next. Of course we still can be included with inquiry, use SQL grammar will inquire XML documentation. Anyhow, in Visual Basic 9.0 use XML is met is a kind of unprecedented experience.
The new character of Visual Basic 9.0 has introduced now, this is a version that having tremendous progress really, pay attention to the improvement that the user experiences particularly at the same time, maintaining the characteristic that uses easily simply.
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论

