473,698 Members | 2,923 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to solve this " problem

Hello,

I am accessing a value in a XML value:
news.Load(Serve r.MapPath("xml/ news.rss"))
newslabel.Text = CType(news.Sele ctSingleNode("r ss version="2 .0
"/channel/title").InnerTe xt, String)

The XML file:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>News</title>
<description>.. .</description>
<item>
<title>...</title>
<description>.. .</description>
</item>
...
</channel>
</rss>

If I take the <rss version="2.0"> and use:
newslabel.Text =
CType(news.Sele ctSingleNode("c hannel/title").InnerTe xt, String)

Can you tell me how to solve this? The problem is in my node path when I
have ("rss version=&quot;2 .0&quot;/channel/title")

I used =&quot; instead of " to try to fix the problem but it didn't
work.

Thanks,
Miguel

Nov 19 '05 #1
1 1296
Shapper wrote:
Hello,

I am accessing a value in a XML value:
news.Load(Serve r.MapPath("xml/ news.rss"))
newslabel.Text = CType(news.Sele ctSingleNode("r ss version=&quot;2 .0
&quot;/channel/title").InnerTe xt, String)

The XML file:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>News</title>
<description>.. .</description>
<item>
<title>...</title>
<description>.. .</description>
</item>
...
</channel>
</rss>

If I take the <rss version="2.0"> and use:
newslabel.Text =
CType(news.Sele ctSingleNode("c hannel/title").InnerTe xt, String)

Can you tell me how to solve this? The problem is in my node path
when I have ("rss version=&quot;2 .0&quot;/channel/title")

I used =&quot; instead of " to try to fix the problem but it didn't
work.

Thanks,
Miguel


use

SelectSingleNod e("/rss[@version='2.0']/channel/title")

or just

SelectSingleNod e("/rss/channel/title")
Hans Kesting
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2905
by: Jon | last post by:
Hi all! In a insert-trigger I have two joins on the table named inserted. Obviously this construction gives a name collition beetween the two joins (since both joins starts from the same table) Ofcourse I thougt the using bla JOIN bla ON bla bla bla AS a_different_name would work, but it does not. Is there a nice solution to this problem?
7
2004
by: Shapper | last post by:
Hello, I have an ASP:ImageButton where I want to call a function and pass a string: OnClick="Change_Photo("John")" I am having problems with "". I tried
0
1242
by: Campaniço | last post by:
Hi Can anyone help me with this problem. ------------------------------ PDA Transportes.exe TypeLoadException FormTransMain::.ctor+0x2c FormTransMain::Main+0x5
13
1493
by: Mark | last post by:
always wondered how a computer might go about doing this... i'm taking calculus at university... and we went over newton's method. i found this interesting... ------------------------------ #include <cstdlib> #include <iostream> #include <cmath> using namespace std;
0
2788
by: mrajsenkumar | last post by:
Hi I am using windowsCE 5.0, here i am try to deploy the project. but i got error message - "Connection failed. Device is not ready." tell me how to solve this problem.very urgent. i am using vs2005.
1
1916
by: rocksoft | last post by:
Hi, i got error "class not registered" when i try to create web setup and deployment project to my web application. i'm used Asp.net and c# to my application, i created web setup and deployment project many times to my application, but i getting this error now.please anybody try to help me out, if anybody solve this problem really million thanks to them. Thanks.
17
12058
by: khajeddin | last post by:
the problem is: Create a class HugeInteger which use 40-element array of digits to store integers as larg as 40 digits each.Provide methods input, output, add, subtract how to add to arrays ?
4
1638
by: namalapavan | last post by:
hii , i am getting and error while installing oracle9i on RHEL AS 4.0 .i am sure that somebody here would be able to solve my problem.kindly reply so that i can send you the detailed error report. "Error in setting permissions of file/directory" while installing JRE 1.1.8.1.0 Thank you & Have a nice day. namalapavan@gmail.com
1
4038
by: brboga | last post by:
Hello, VBA gives an error on the indicated line. "tblparameters" is a database which exists. Option Compare Database Option Explicit Sub fill_parameters()
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
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...
1
8902
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,...
0
8873
tracyyun
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...
0
7740
agi2029
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...
0
5862
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();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.