Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
QuestionPlaying contineous sound file on word document1 Pin
sulabh202014-Apr-07 2:27
sulabh202014-Apr-07 2:27 
QuestionAdding Bullets using c# code Pin
sulabh202014-Apr-07 2:20
sulabh202014-Apr-07 2:20 
AnswerRe: Adding Bullets using c# code Pin
Sathesh Sakthivel14-Apr-07 4:46
Sathesh Sakthivel14-Apr-07 4:46 
Questionhow to Create setup with .net Framework Pin
Nkuttynasi14-Apr-07 2:00
Nkuttynasi14-Apr-07 2:00 
AnswerRe: how to Create setup with .net Framework Pin
Christian Graus14-Apr-07 2:14
protectorChristian Graus14-Apr-07 2:14 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi14-Apr-07 3:02
Nkuttynasi14-Apr-07 3:02 
GeneralRe: how to Create setup with .net Framework Pin
Christian Graus14-Apr-07 13:39
protectorChristian Graus14-Apr-07 13:39 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi16-Apr-07 6:24
Nkuttynasi16-Apr-07 6:24 
AnswerRe: how to Create setup with .net Framework Pin
sulabh202014-Apr-07 2:34
sulabh202014-Apr-07 2:34 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi14-Apr-07 2:55
Nkuttynasi14-Apr-07 2:55 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi14-Apr-07 2:57
Nkuttynasi14-Apr-07 2:57 
GeneralRe: how to Create setup with .net Framework Pin
Jaiprakash M Bankolli14-Apr-07 4:07
Jaiprakash M Bankolli14-Apr-07 4:07 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi16-Apr-07 6:21
Nkuttynasi16-Apr-07 6:21 
GeneralRe: how to Create setup with .net Framework Pin
Jaiprakash M Bankolli16-Apr-07 6:42
Jaiprakash M Bankolli16-Apr-07 6:42 
AnswerRe: how to Create setup with .net Framework Pin
sulabh202015-Apr-07 18:18
sulabh202015-Apr-07 18:18 
GeneralRe: how to Create setup with .net Framework Pin
Nkuttynasi16-Apr-07 6:12
Nkuttynasi16-Apr-07 6:12 
Questionpanel to image Pin
haseeb_saeed14-Apr-07 1:15
haseeb_saeed14-Apr-07 1:15 
AnswerRe: panel to image Pin
Luc Pattyn14-Apr-07 1:32
sitebuilderLuc Pattyn14-Apr-07 1:32 
GeneralRe: panel to image Pin
haseeb_saeed14-Apr-07 23:13
haseeb_saeed14-Apr-07 23:13 
GeneralRe: panel to image Pin
Luc Pattyn15-Apr-07 0:09
sitebuilderLuc Pattyn15-Apr-07 0:09 
Questionxpath not working [modified] Pin
praveenkumar palla14-Apr-07 1:01
praveenkumar palla14-Apr-07 1:01 
Questionxpath not working Pin
praveenkumar palla14-Apr-07 1:01
praveenkumar palla14-Apr-07 1:01 
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">





then

>>>>>>>>>>>>>>>>>>>>namespace is EncryptDecrypt

XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Application.StartupPath + @"\laserProp.xml");
XmlNamespaceManager mgr = new XmlNamespaceManager(xmldoc.NameTable);
mgr.AddNamespace(string.Empty, "urn:MyNamespace");
XmlNodeList xmlnodelist;
XmlElement ele = xmldoc.DocumentElement;
xmlnodelist= ele.SelectNodes("//lasers//laser//properties//tabular//property",mgr);

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



<lasers 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"

xmlns="urn:MyNamespace">
<properties 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 also tried with urn:EncryptDecrypt but no result

praveenkumar palla
AnswerRe: xpath not working Pin
Christian Graus14-Apr-07 1:09
protectorChristian Graus14-Apr-07 1:09 
QuestionProblem with refill of listview after removal in database Pin
henur13-Apr-07 23:48
henur13-Apr-07 23:48 
AnswerRe: Problem with refill of listview after removal in database Pin
Christian Graus14-Apr-07 0:12
protectorChristian Graus14-Apr-07 0:12 

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.