I have the Next XML
var xml = new XElement( "clients",
new XElement("clien t",
new XAttribute("id" ,1),
new XElement( "name", "Luis"),
new XElement( "country",
"Portugal")
),
new XElement("clien t",
new XAttribute("id" ,2),
new XElement( "name", "John"),
new XElement( "country",
"England")
),
new XElement("clien t",
new XAttribute("id" ,3),
new XElement( "name", "Edwin"),
new XElement( "country", "Costa
Rica")
),
new XElement("clien t",
new XAttribute("id" ,4),
new XElement( "name",
"Paulo"),
new XElement( "country",
"Portugal")
)
);
And I nedd one code to move between nodes but Without use Foreach or
While, Only I Can do next.
var firstClient = xml.Element("cl ient");
Debug.WriteLine (firstClient);
var ancestor = firstClient.Nex tNode;
Debug.WriteLine (ancestor);
But with this don`t move more than "id",2 Please Help
Thanks
Edcha 0 1793 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marcin Zmyslowski |
last post by:
Hello!
I use data.read and data.getValue(Id_column) to get the value of
specified column. Unfortunately there are some differences between
VBScript and Visual Basic (MS Access) and I cannot move to the first and
last record of data. I searched archieves and I couldn`t find any
example how to do it. I use MS SQL Server 2000 as a server and I wrote a
sql query where I used data.reader. Could you give me the example how to
modify the code...
|
by: tony010409020622 |
last post by:
I just spent 4 months taking a dotnet class where i learned very
little. One of the things I did not learn is this: What are the
dotnet equivilents of commands such as:
Adodc1.Recordset.AddNew
Adodc1.Recordset.Update
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.MoveNext
Adodc1.Recordset.Delete
|
by: Duncan |
last post by:
Hi,
I have been passed a class to work with, but am having some problems. I do
not know the origin of the code, and am having problems with some
functionality.
The VB class implements IEnumerable, which I understand allows for fwd only
movement through the custtom collection. This work fine and I am able to use
"For Each" loops without issue. However, the class has MoveFirst(),
MoveLast() etc methods within it, but these do not appear...
|
by: MLH |
last post by:
The error occurred in line #5130. Ideas as to why?
qryITSLetterList returns 1 single record - but I don't
think that should be a problem. Hmmm???
5100 Dim MyDB As Database, rstITSLttrs As Recordset,
rstOtherTable As Recordset
5110 Set MyDB = CurrentDb()
5120 Set rstITSLttrs = MyDB.OpenRecordset("qryITSLetterList",
dbOpenForwardOnly)
5130 rstITSLttrs.MoveFirst
|
by: MLH |
last post by:
Here's a blurb cut from A97 HELP on BOF/EOF:
When you open a Recordset object that contains at least one record,
the first record is the current record and the BOF and EOF properties
are False; they remain False until you move beyond the beginning or
end of the Recordset object by using the MovePrevious or MoveNext
method, respectively.
From that HELP blurb, it would seem that the .MoveFirst in the lines
below is simply not needed....
| |
by: klaydze |
last post by:
i have here my lines of codes. how can i use the RECORDSET.MOVELAST in VB.NET. because i need to use the rs.movelast so that my pointer will go to the last record in my database.
this line of code will increment the id depending on what is the value of the txtctr.if the value of txtctr=3 then my id will be 0001,0002,0003.
Dim objDataAdapter As New SqlDataAdapter
Dim objCommand As New SqlCommand
Dim objDataSet As...
|
by: MLH |
last post by:
160 Dim DB As Database, Rst As Recordset, QD As QueryDef
170 Set DB = CurrentDb()
180 Set QD = DB.CreateQueryDef("", MySQL)
190 Set Rst = QD.OpenRecordset(dbOpenDynaset)
HOW TO COUNT RECORDS IN Rst BEFORE NEXT LINE?
200 Rst.MoveFirst
|
by: edcha |
last post by:
I have the Next XML
var xml = new XElement( "clients",
new XElement("client",
new XAttribute("id",1),
new XElement( "name", "Luis"),
new XElement( "country",
"Portugal")
),
new XElement("client",
|
by: edcha |
last post by:
I have the Next XML
var xml = new XElement( "clients",
new XElement("client",
new XAttribute("id",1),
new XElement( "name", "Luis"),
new XElement( "country",
"Portugal")
),
new XElement("client",
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |