|
Hi PIEBALDconsult,
the expression is not working when the value contains "%". for example, value is 10.34% and wrote the expression as below
"/Data/page/content[.='10.34%']"
Above expression returns zero results.
I tried as below, still not working. please correct it.
"/Data/page/content[.='<![CDATA[10.34%]]']"
|
|
|
|
|
|
sorry, where should I use %.. can you tell me in detail..
|
|
|
|
|
I tried this..
rawData.SelectNodes("/RawData/page/text[.='1.820%']");
still zero results
|
|
|
|
|
Well, that doesn't match what you posted originally, is this a new bit of XML?
|
|
|
|
|
no, its the same, I just changed the names
"/Data/page/content[.='1.820%']");
|
|
|
|
|
I found that the problem is not with "%". The values is having extra spaces as " 10.34%"
So the below expression is not working.
"/Data/page/content[.='10.34%']". Please guide me to solve this issue. Thanks in advance
<Data>
<page>
<content> 10.34%</content>
</page>
</Data>
|
|
|
|
|
Issued solved with the below expression
"/Data/page/content[normalize-space(.)='10.34%']".
|
|
|
|
|
Excellent.
|
|
|
|
|
I would like to convert the text data to uppercase and I wrote the expression as below
"/RawData/page/text[upper-case(.)='ABC']"
its throwin exception "XsltContext is needed for this query because of an unknown function"
Reference:
http://www.w3schools.com/xpath/xpath_functions.asp[^]
|
|
|
|
|
I don't know, and it's not not in the book I have. Try the XML / XSL forum. Good luck.
|
|
|
|
|
Hi all,
I wanted to create a table trhough c# code and add bind each row of it from the values from the database
Pls help me...Thanks In advance
Reogeo2008
|
|
|
|
|
What environment? Web, Windows, Mobile?
No comment
|
|
|
|
|
|
Its called DataBinding. Read about it.
No comment
|
|
|
|
|
You want to programatically create and fill a DataTable? I do that all the time.
See the ExecuteSQL method in:
Database Connector[^]
|
|
|
|
|
What do you mean by 'bound'? If you get a DataTable through a DataAdapter (i.e. by executing a SQL query), it will come pre-filled with the correct database values, and you don't need to bind it. If you want live updating or two way binding, then you're starting to look at entity modelling frameworks, like NHibernate or whatever the new Microsoft one is – but that's massive overkill for most applications.
|
|
|
|
|
BobJanova wrote: that's massive overkill for most applications
And severe underkill for many others.
|
|
|
|
|
Hi experts,
there is an application for which I created a setup project in Visual Studio 2008 Standard Edition. The setup is to be burnt onto CD.
After being inserted in a CD drive, setup shall start automatically. I created an "Autorun.inf" that should be in the CD root directory along with the setup.exe.
I can copy it there before burning the CD, but I would prefer it to be copied automatically during setup project build.
How can I make a file to be copied to setup project's bin\release directory (Not the application directory but the one with setup.exe, setup.msi, DotNetFX and WindowsInstaller3_1)?
Ciao,
luker
modified 13-Oct-11 5:02am.
|
|
|
|
|
I don't know what this has to do with C#, but you could copy your file manually or just set its build properties to custom and use a copy statement which is executed during the project build process.
|
|
|
|
|
My fault. I'm used to code in C# but in this case the Visual Studio forum seems more appropriate. Let's continue there[^].
Ciao,
luker
|
|
|
|
|
Hi All,
I want to zip a folder in C# without any third party dll. Can any body help me out.
Thanks,
Sunil G.
|
|
|
|
|
not sure what version of .Net but take a look at the following:
ZipPackage Class
hope it helps.
|
|
|
|
|
C# Zip Files and/or Folders[^] could help you out.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
If you actually want to make a ZIP compatible file, I strongly recommend SharpZipLib. It's a third party DLL but so what? ... you are almost certainly already deploying more than one file, unless there is a really good reason not to use a library you should do so. It's free and doesn't have license restrictions that stop you using it.
|
|
|
|