Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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?

 
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.