Beginners-problem with xpath filter and XML
- From: trond@xxxxxxxxxxxx
- Date: 1 Aug 2005 13:11:58 -0700
Hello all,
I am building a personal web site in VS2005 as a kind of learing
project for myself, so forgive me if this is a novice question.
I am planning to use an XML file called SiteSettings.xml to hold
site-wide info such as copyright info, site title (e.g. my homepage)
etc. Currently this xml file looks like this:
<?xml version="1.0"?>
<SiteSettings>
<Settings Name="TitleText">
<value>My homepage</value>
</Settings>
</SiteSettings>
U use a datalist and a xmldatasource to display the data. The
xmldatasource lets me supply an xpath filter to display only the data I
want. As Im planning to expand this xml-file as I add more site
settings, I need an xpath that displays only the correct data. I am
trying to build an xpath that simply returns "My homepage" without the
node name or anything, but I am having a hard time making it work -
either it includes the "value" or simply doesn't show up at all..
If anybody has any inputs to either how to construct my Xpath or maybe
if I should go with another XML structure, I would gratly appreciate
it.
Trond Hindenes
Novice vb.net programmer
Norway
.
- Follow-Ups:
- Re: Beginners-problem with xpath filter and XML
- From: Pascal Schmitt
- Re: Beginners-problem with xpath filter and XML
- Prev by Date: Re: Security for Xml File
- Next by Date: Re: XML validation problem (substitutionGroup)
- Previous by thread: Security for Xml File
- Next by thread: Re: Beginners-problem with xpath filter and XML
- Index(es):
Relevant Pages
|