Click here to Skip to main content
15,896,359 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Problem with refill of listview after removal in database Pin
henur14-Apr-07 3:32
henur14-Apr-07 3:32 
GeneralRe: Problem with refill of listview after removal in database Pin
Christian Graus14-Apr-07 13:37
protectorChristian Graus14-Apr-07 13:37 
GeneralRe: Problem with refill of listview after removal in database Pin
henur15-Apr-07 20:14
henur15-Apr-07 20:14 
Questionis any query (in sql server) that i can export data ? Pin
B.A13-Apr-07 23:26
B.A13-Apr-07 23:26 
AnswerRe: is any query (in sql server) that i can export data ? Pin
Colin Angus Mackay13-Apr-07 23:57
Colin Angus Mackay13-Apr-07 23:57 
QuestionSerialization problem Pin
NaNg1524113-Apr-07 23:19
NaNg1524113-Apr-07 23:19 
AnswerRe: Serialization problem Pin
Christian Graus14-Apr-07 0:17
protectorChristian Graus14-Apr-07 0:17 
GeneralRe: Serialization problem Pin
NaNg1524114-Apr-07 1:09
NaNg1524114-Apr-07 1:09 
GeneralRe: Serialization problem Pin
NaNg1524114-Apr-07 1:48
NaNg1524114-Apr-07 1:48 
QuestionHow to check whether my application running under ClickOnce Pin
pashitech13-Apr-07 22:43
pashitech13-Apr-07 22:43 
Questionnetwork stream to byte[] Pin
marwan_siala13-Apr-07 22:41
marwan_siala13-Apr-07 22:41 
AnswerRe: network stream to byte[] Pin
Christian Graus13-Apr-07 22:42
protectorChristian Graus13-Apr-07 22:42 
GeneralRe: network stream to byte[] Pin
marwan_siala13-Apr-07 22:51
marwan_siala13-Apr-07 22:51 
GeneralRe: network stream to byte[] Pin
Christian Graus14-Apr-07 0:05
protectorChristian Graus14-Apr-07 0:05 

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.