|
Hey all,
Here's an XML snippet:
<appSettings> <add key="val1" value="val2"/>
The XML document is loaded in memory, ready to be parsed.
How would you get and write the value of "val2" to the web page?
Thanks, rodchar
Post Comments:
I'm getting...
Started by rod on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this:
var node = xmlDoc.selectSingleNode("/appSettings/add[@key='val1']"); alert.
|
|
I'm trying to parse a simple XML file but I'm having trouble trying to obtain a value I need. The current error message I'm getting says node is not an object or is null. I'm testing on both I.E. 6, 7, FF 2,3
Here's the XML file:
<bookstore> <...
Started by rod on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Xhttp.send(""); xmlDoc=xhttp.responseXML; alert(xmlDoc.xml)
I suspect you.
Value = xml.find('bookstore appSettings add[key=myKey]').attr('value'); alert(value); }
Edit: I'm alter your code:
// ...
|
|
Saludos a todos, esta es la primera vez que realizo una pregunta en este foro, espero estar haciendolo correctamente, antes que nada agradezco a quienes puedan ayudarme con este problema:
Lo que intento hacer: es enviar informacion desde ajax a php, y...
Started by Rebelion on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at forosdelweb):
) { alert ( "Completo: " + value ) ; } , success : function ( value ) { alert ( value ) ; } } ) ;
De.
|
Ask your Facebook Friends
|
How we can remove a xml node in javascript in asp.net C#?
i tried this but is given me an error...
ScriptManager.RegisterStartupScript(UpdatePanel1,this.GetType(),"RemoveDock", string.Format(@"function _removeDock() { xmlDoc = loadXMLDoc('c:\teste\Config...
Started by SlimBoy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
LoadXMLDoc() { alert("0"); var xhttp; var url = 'c:\teste\Config.xml'; var hiden1 = document.getElementById('HiddenField'); if (window.XMLHttpRequest) { xhttp = new XMLHttpRequest(); xhttp.open('GET', url, true, "", ""); xhttp.send....
|
|
I have the following expression to validate a URL but it gives me a syntax error on the browser. I am no expert in regex expressions so I am not sure what I am looking for. I would also like it to test for http:// and https:// urls.
"url":{ "regex":"/...
Started by Caroline on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
?)\:\/\/)"; //var re = new RegExp(reTxt); alert( "result:" + re.test("http://") + "\nresult:" + re.test("xhttp://") + "\nresult:" + re.test("ftp://") + "\nresult:" + re.test("http:/") + "\nresult:" + re.test reDateTxt = /^[0-9]{1,2}\-[0-....
|