Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - reading xml
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

reading xml

 Post Reply Post Reply
Author
briandware View Drop Down
Newbie
Newbie
Avatar

Joined: 25 June 2003
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote briandware Quote  Post ReplyReply Direct Link To This Post Topic: reading xml
    Posted: 25 June 2003 at 9:33am
i have been looking at articles on xml, and they have been very helpful.
 
the one question i have is that when i attach to an xml file, it comes in with the hyphens (-) to collapse or expand the view.  when i take these out, it works great, but with these in, it does not work at all.  is there a way to have these stripped out on the import?  her is a sample of my code.  any help at all would be greatly appreciated.
 
thanks,
brian
 
Dim xmlObj, sql
Set xmlObj = Server.CreateObject("Microsoft.XMLDOM")
xmlObj.async = False
 
xmlUrl = "c:/inetpub/wwwroot/doe/xml/weather2.xml"
xmlObj.async=false 
 
xmlObj.load (xmlUrl)

if xmlObj.ParseError.errorCode = 0 then
 Dim day0h, day0l, day0s, day0d
 day0h = xmlObj.documentElement.childNodes(2).childNodes(0).text
 day0l = xmlObj.documentElement.childNodes(2).childNodes(1).text
 day0s = xmlObj.documentElement.childNodes(3).text
 day0d = xmlObj.documentElement.childNodes(4).text
else
 Response.write ("error reading data")
end if
 
Set xmlObj = Nothing
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.