AboutSrini Nagarajan Expertise I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase
Experience Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.
Question Hi Srini, I ran out of follow-ups so they made me ask a new question. :) The last example you gave me works well when using an existing .xml file that lives on the local server. However, I get my XMl output from a remote PHP file on a server I have no control over. Because of that, I need to feed the contents of an XML file into the XMLDOM parser instead of a filename. That's where the hang-up is. See what I mean? All the stuff you showed me works beautifully if I have an actual local filename to feed into the parser, but I don't have that available unfortuantely. :( So again, this is the on thing I've tried so far with no success even though it "should" work in theory:
---
Set mydoc = Server.CreateObject("Microsoft.XMLDOM")
mydoc.loadXML(STRING_VARIABLE_CONTAINING_XML_CODE)
TotalA = mydoc.selectNodes("//dce/response/watchlists/watchlist").length
TotalB = mydoc.selectNodes("/dce/response/watchlists/watchlist").length
TotalC = mydoc.selectNodes("dce/response/watchlists/watchlist").length
---
All 3 total variables end up being 0. :( Hopefully you can help me with this. Thanks again for your assistance Srini. It's appreciated.
Answer Hi,
Sorry for i was away and just checking your email.
when you get the XML from different Server thru URL into STRING_VARIABLE_CONTAINING_XML_CODE, are you getting any data?
Did you display the XML also did you see what is the ERR you are getting?
If your XML comes like this including XML and RESPONSE header