Click here to Skip to main content
15,888,039 members
Home / Discussions / C#
   

C#

 
QuestionHow to Add selectedindex event to dynamically created dropdownbox Pin
jaganil13-Apr-07 21:32
jaganil13-Apr-07 21:32 
QuestionHow to select menu by click button? Pin
code gadder13-Apr-07 20:29
code gadder13-Apr-07 20:29 
AnswerRe: How to select menu by click button? Pin
mghiassi14-Apr-07 7:36
mghiassi14-Apr-07 7:36 
GeneralRe: How to select menu by click button? Pin
code gadder14-Apr-07 16:11
code gadder14-Apr-07 16:11 
AnswerRe: How to select menu by click button? Pin
mghiassi14-Apr-07 7:59
mghiassi14-Apr-07 7:59 
QuestionimageCombobox Help Pin
pashitech13-Apr-07 20:14
pashitech13-Apr-07 20:14 
AnswerRe: imageCombobox Help Pin
Christian Graus14-Apr-07 0:18
protectorChristian Graus14-Apr-07 0:18 
Questionxpath is not functioning when i validate my xmlfile Pin
pashitech13-Apr-07 20:05
pashitech13-Apr-07 20:05 
Hi all,
till i am using xpath for all the manipulations with my xmlfile, and i am happy that its working properly, But whenever i try to Validate my XMLfile(XMLfile.xml)with XSD, My Xpath is not working
Here below i'm explaining my scenario clearly.

Initially XML file is like this


<lasers>
<laser lasername="Laser1" modelname="Nufern v1.0" serialno="1" manufacturername="Nufern v1.0" maximumpower="200w">
<properties">
CW-Waveform.jpg
<wavetypes>
<wavetype name="CW Ramp" url="ramp.html" isavailable="true">
<wavetype name="CW Analog" url="analog.html" isavailable="true">

<tabular>
<property id="228" name="BRM" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="true" units="C" gauge="false" thresholdval="10">
<property id="200" name="Output power" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="false" units="C" gauge="true" thresholdval="10">





and then This is Xpath

xmlDocument xmldoc=new xmlDocument();
xmldoc.load(xmlfilepath);
xmlnodelist nodelist=xmldoc.SelectNodes("lasers/laser/properties/tabular/property[@name='BRM']");//xpath

Is working fine but, to validate xml with xsd i made changes to the xml as


<lasers<b> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:MyNamespace" xsi:schemaLocation="urn:MyNamespace laserProp.xsd">
<laser lasername="Laser1" modelname="Nufern v1.0" serialno="1" manufacturername="Nufern v1.0" maximumpower="200w" <b="">xmlns="urn:MyNamespace">
<properties <b="">xmlns="urn:MyNamespace">
CW-Waveform.jpg
<wavetypes>
<wavetype name="CW Ramp" url="ramp.html" isavailable="true">
<wavetype name="CW Analog" url="analog.html" isavailable="true">

<tabular>
<property id="228" name="BRM" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="true" units="C" gauge="false" thresholdval="10">
<property id="200" name="Output power" currval="0" prgbar="true" selected="true" min="0" max="100" pwd="false" units="C" gauge="true" thresholdval="10">





Now the same xpath is not working
I've tried in several ways but i am with no result, please help me.
thnx in advance

prashanth,
s/w Engineer,
Syfnosys.

AnswerRe: xpath is not functioning when i validate my xmlfile Pin
Christian Graus13-Apr-07 20:06
protectorChristian Graus13-Apr-07 20:06 
GeneralRe: xpath is not functioning when i validate my xmlfile Pin
pashitech13-Apr-07 20:19
pashitech13-Apr-07 20:19 
GeneralRe: xpath is not functioning when i validate my xmlfile Pin
Christian Graus13-Apr-07 20:52
protectorChristian Graus13-Apr-07 20:52 
GeneralRe: xpath is not functioning when i validate my xmlfile Pin
Stefan Troschuetz13-Apr-07 20:57
Stefan Troschuetz13-Apr-07 20:57 
Questionsearch in datagrid Pin
salon13-Apr-07 20:03
salon13-Apr-07 20:03 
AnswerRe: search in datagrid Pin
Christian Graus13-Apr-07 20:08
protectorChristian Graus13-Apr-07 20:08 
GeneralRe: search in datagrid Pin
salon13-Apr-07 20:13
salon13-Apr-07 20:13 
GeneralRe: search in datagrid Pin
Christian Graus13-Apr-07 20:51
protectorChristian Graus13-Apr-07 20:51 
AnswerRe: search in datagrid Pin
sujithkumarsl13-Apr-07 22:39
sujithkumarsl13-Apr-07 22:39 
GeneralRe: search in datagrid Pin
salon13-Apr-07 22:46
salon13-Apr-07 22:46 
QuestionRE:MD5 in C# (Same as PHP) Pin
P.T.R.K13-Apr-07 19:24
P.T.R.K13-Apr-07 19:24 
AnswerRe: RE:MD5 in C# (Same as PHP) Pin
Christian Graus13-Apr-07 19:48
protectorChristian Graus13-Apr-07 19:48 
Questionimport csv file into SqlServer ce Pin
EBHamilton13-Apr-07 16:33
EBHamilton13-Apr-07 16:33 
QuestionEmbed windows Media Player Pin
musicDiva13-Apr-07 14:05
musicDiva13-Apr-07 14:05 
AnswerRe: Embed windows Media Player Pin
Christian Graus13-Apr-07 20:08
protectorChristian Graus13-Apr-07 20:08 
QuestionFile Creation Pin
max2929713-Apr-07 12:01
max2929713-Apr-07 12:01 
AnswerRe: File Creation Pin
sthotakura13-Apr-07 12:38
sthotakura13-Apr-07 12:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.