Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 12th, 2005, 01:04 PM
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default xml namespace and asp

Ok i have the following ebay api response
Code:
<GeteBayOfficialTimeResponse  xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2005-08-12T02:33:09.184Z</Timestamp>
    <Ack>Success</Ack>
    <CorrelationID>00000000-00000000-00000000-00000000-00000000-00000000-0000000000</CorrelationID>
    <Version>421</Version>
    <Build>e421_core_Bundled_1630320_R1</Build>
</GeteBayOfficialTimeResponse>
And im using the following asp code to load the doc and display the info from the Timestamp.
Code:
<%
xmlNamespace = "urn:ebay:apis:eBLBaseComponents:"
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = false
xmlDoc.load("1.xml")
xmlDoc.setProperty"SelectionNamespaces","xmlns:b='urn:ebay:apis:eBLBaseComponents'"
set y = xmlDoc.selectNodes("//b:Timestamp/text()")

For each x in y
Response.Write(y)
Next
%>
I receive no error but i believe my issue is in the bolded above can anyone tell me the proper way to do this?

Reply With Quote
  #2 (permalink)  
Old August 12th, 2005, 01:12 PM
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry moved to asp xml forum

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transforming XML From One Namespace to Another mail4kaja XSLT 1 November 10th, 2008 10:14 AM
Extended namespace not showing in xml lsindhu XSLT 1 January 18th, 2008 05:17 AM
convert XML to XMl - Another Namespace question bonekrusher XSLT 2 July 10th, 2007 07:32 AM
xml validation-namespace is problem asap XML 2 April 26th, 2006 02:56 AM
XML Namespace and ASP SelectNodes werD420 Classic ASP XML 1 August 13th, 2005 04:41 AM



All times are GMT -4. The time now is 07:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.