473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What am I missing with Xpath

Ty
I have a data bound combo box. It is bound to a XML file.

The XML file is structured like so,
<Software>
<Name>Test1</Name>
<Name>Test1</Name>

</Software>

I set the Xpath expression in the Data source control to \Software\Name
\* this gives me a invalid token error

I tried \Name\*
and \Name
and Name
and \\Software\*

Name
is the only one that does not throw an error but there is nothing in
the combo box.

What am I doing wrong?

Thanks

Ty
Mar 19 '08 #1
2 933
Ty
On Mar 19, 6:54*am, Ty <tbar...@lewistownhospital.orgwrote:
I have a data bound combo box. It is bound to a XML file.

The XML file is structured like so,
* *<Software>
* * * * *<Name>Test1</Name>
* * * * *<Name>Test1</Name>

* </Software>

I set the Xpath expression in the Data source control to \Software\Name
\* this gives me a invalid token error

I tried \Name\*
and \Name
and Name
and \\Software\*

Name
is the only one *that does not throw an error but there is nothing in
the combo box.

What am I doing wrong?

Thanks

Ty
Correction

Data Bound DropDown List
Mar 19 '08 #2
Ty wrote:
I have a data bound combo box. It is bound to a XML file.

The XML file is structured like so,
<Software>
<Name>Test1</Name>
<Name>Test1</Name>

</Software>

I set the Xpath expression in the Data source control to \Software\Name
\* this gives me a invalid token error

I tried \Name\*
and \Name
and Name
and \\Software\*
Use a slash not a backslash e.g. /Software/Name/text()

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Mar 19 '08 #3

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

Similar topics

0
by: bdinmstig | last post by:
I am building various framework components for my team to use in development, and one of those components is a Facade for reading/writing user preferences. The idea is that preference settings...
1
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
4
by: Clarence | last post by:
Hi - I have a problem and here is the verbose version of what I am trying to do (better too much info than not enough). I am searching through about 4,700 XML files containing company contact...
4
by: Son KwonNam | last post by:
In XSLT, is this possible to get value from xml using XPath which is in XSLT variable? I mean XPath strings can be dynamic while XSL Transforming. If possible, How?? Because I'm not a...
1
by: Naga | last post by:
Hello, Thanks for the response Oleg. Now I need to know few answers. How do I get the value of a node using the xpath. I want the value of the MessageID and ResultCode from secondxml. And using...
5
by: laks | last post by:
Hi I have the following xsl stmt. <xsl:for-each select="JOB_POSTINGS/JOB_POSTING \"> <xsl:sort select="JOB_TITLE" order="ascending"/> This works fine when I use it. But when using multiple...
5
by: Gnic | last post by:
Hi , I have an XmlDocument instance, I want to find a node in the xml, but I don't know it's path until runtime, for example <aaa> <bbb name="x"/> <aaa attr="y"> <ccc>sometext</ccc> </aaa>
3
by: werD | last post by:
Hello I have an xml document that im currently using a forward only .net repeater on and using some xpath queries to display the data The xml is quite simple <?xml version="1.0"...
2
by: Grant Merwitz | last post by:
Hi, i'm not sure if this is the appropriate topic. But here goes: I am currently bulding a site menu from a xml file. I have an attribute that indicates whether an option is active or not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...

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.