Beginners-problem with xpath filter and XML



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

.



Relevant Pages

  • Re: Flexible __autoload scheme
    ... > Berislav Lopac wrote: ... >> above, or finding in an XML file using XPath and SimpleXML, assuming ... Because array must be iterated through, while a DOM document can be searched ... via XPath by a simple /*/classname (or something; ...
    (comp.lang.php)
  • Re: DBIx::XML::DataLoader
    ... of tables that correspond to the structure of the XML file. ... obviously not all columns in the database are keys or indeces. ... have no idea what XPATH is, let alone what to do with it. ...
    (comp.lang.perl.misc)
  • Re: How to dynamically resize an array?
    ... array a large value eg. 40 as it is unlikely any season of a TV series ... will have that many episodes. ... The only other way would be to read the xml file twice, ... Once you load the XML document, use XPATH query statements to find ...
    (microsoft.public.dotnet.languages.vb)
  • Re: getting XPath in REXML to dive deeper
    ... Gavin Kistner wrote: ... I've learned a bit about XPath and how REXML can use it. ... a sample XML file whose root element is. ...
    (comp.lang.ruby)