Click here to Skip to main content
15,891,745 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Recommed XML Editor Pin
led mike5-Feb-09 4:37
led mike5-Feb-09 4:37 
Questionjavascript and xml Pin
reta.me4-Feb-09 7:44
reta.me4-Feb-09 7:44 
AnswerRe: javascript and xml Pin
Curtis Schlak.26-Feb-09 16:00
Curtis Schlak.26-Feb-09 16:00 
QuestionDom JavaScript..Namespace Pin
Amr M. K.4-Feb-09 2:31
Amr M. K.4-Feb-09 2:31 
QuestionNeed some tips on designing my XML Pin
benjamin yap3-Feb-09 4:40
benjamin yap3-Feb-09 4:40 
AnswerRe: Need some tips on designing my XML Pin
Jon Rista4-Feb-09 6:41
Jon Rista4-Feb-09 6:41 
AnswerRe: Need some tips on designing my XML Pin
Tony Pottier16-Feb-09 3:43
Tony Pottier16-Feb-09 3:43 
QuestionselectNode returns 0 if XML contains '&' [modified] Pin
Arindam Tewary1-Feb-09 21:31
professionalArindam Tewary1-Feb-09 21:31 
If I have a XML like this which I am loading into javascript using DomDocument object. Please note that this XML is having an "ampersand".

<DataSet>
	<Row>
		<NDOCUMENTID>499</NDOCUMENTID>
		<TDESCRIPTION>my &amp; god</TDESCRIPTION>
		<TDISPLAYNAME>my god</TDISPLAYNAME>
		<TTITLE>my god</TTITLE>
		<NPARENT_DOC_ID>0</NPARENT_DOC_ID>
		<NPARENT_FOLDER_ID>496</NPARENT_FOLDER_ID>
	</Row>
	<Row>
		<NDOCUMENTID>501</NDOCUMENTID>
		<TDESCRIPTION>Level 2Folder</TDESCRIPTION>
		<TDISPLAYNAME>Level 2Folder</TDISPLAYNAME>
		<TTITLE>Level 2Folder</TTITLE>
		<NPARENT_DOC_ID>0</NPARENT_DOC_ID>
		<NPARENT_FOLDER_ID>500</NPARENT_FOLDER_ID>
	</Row>
</DataSet>


After loading into javascript DomDocument object selectNodes() returns 0.

var objXML = new ActiveXObject("MSXML2.DomDocument");
. . . .  // some code to load the above XML into objXML
objFolderNodes = objXML.selectNodes("//DataSet/Row[NPARENT_FOLDER_ID = '496']"); 

alert("objFolderNodes.length :"+objFolderNodes.length);


Please note that if I remove the '&', above code working fine.

Any help is appreciated. Thanks in advance.

Thanks,
Arindam D Tewary

modified on Monday, February 2, 2009 3:37 AM

AnswerRe: selectNode returns 0 if XML contains '&' Pin
led mike4-Feb-09 5:14
led mike4-Feb-09 5:14 
QuestionHow to use createdocumentfragment(.NET) function to add a document fragment containing namespace prefix? Pin
cool_mars29-Jan-09 4:09
cool_mars29-Jan-09 4:09 
AnswerRe: How to use createdocumentfragment(.NET) function to add a document fragment containing namespace prefix? [modified] Pin
George L. Jackson30-Jan-09 8:50
George L. Jackson30-Jan-09 8:50 
Questionusing intellisense in XSLT editor in VS2008 Pin
Member 197996529-Jan-09 2:50
Member 197996529-Jan-09 2:50 
QuestionNot getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 3:56
crystal915428-Jan-09 3:56 
AnswerRe: Not getting ANY help from this site on XSLT Pin
led mike28-Jan-09 4:39
led mike28-Jan-09 4:39 
GeneralRe: Not getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 4:57
crystal915428-Jan-09 4:57 
GeneralRe: Not getting ANY help from this site on XSLT Pin
led mike28-Jan-09 5:00
led mike28-Jan-09 5:00 
GeneralRe: Not getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 5:13
crystal915428-Jan-09 5:13 
GeneralRe: Not getting ANY help from this site on XSLT Pin
led mike28-Jan-09 5:22
led mike28-Jan-09 5:22 
GeneralRe: Not getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 5:46
crystal915428-Jan-09 5:46 
GeneralRe: Not getting ANY help from this site on XSLT Pin
crystal915428-Jan-09 5:59
crystal915428-Jan-09 5:59 
GeneralRe: Not getting ANY help from this site on XSLT Pin
led mike28-Jan-09 6:08
led mike28-Jan-09 6:08 
GeneralRe: Not getting ANY help from this site on XSLT Pin
indian14330-Jan-09 6:41
indian14330-Jan-09 6:41 
Questionxslt: sort xml by child attribute and copy to new xml Pin
crystal915426-Jan-09 13:46
crystal915426-Jan-09 13:46 
AnswerRe: xslt: sort xml by child attribute and copy to new xml Pin
George L. Jackson28-Jan-09 6:02
George L. Jackson28-Jan-09 6:02 
QuestionHow do I read this XML file? Pin
MaWeRic25-Jan-09 22:59
MaWeRic25-Jan-09 22:59 

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.