Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Expert PHP and MySQL
| Search | Today's Posts | Mark Forums Read
BOOK: Expert PHP and MySQL
This is the forum to discuss the Wrox book Expert PHP and MySQL by Andrew Curioso, Ronald Bradford, Patrick Galbraith; ISBN: 9780470563120
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert PHP and MySQL 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
  #1 (permalink)  
Old June 7th, 2012, 12:13 PM
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: Newark, DE, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML documents with namespaces

I am trying to work with an XML document with namespace declarations

In testing my PHP code I am getting the error message: "URI UBLCatalogDocument is not absolute"

Can someone help?

Thanks - Skip

Code:
 
<?php 
$doc = new DOMDocument(); 
$doc->load( 'UBLCatalog.xml' ); 
$Items = $doc->getElementsByTagNameNS( "UBLCommonAggregateComponents","Item" ); 
foreach( $Items as $Item ) 
{ 
  $descriptions = $Item->getElementsByTagNameNS( "UBLCommonBasicComponents","Description" ); 
  $description = $descriptions->item(0)->nodeValue; 
   
   
   
  echo "<b>$description\n</b><br>"; 
  } 
?>


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML, Namespaces and XSLT, Oh, My! mphare XSLT 5 August 4th, 2010 02:27 PM
cant reach data in xml with namespaces TPP XSLT 1 March 24th, 2006 11:47 AM
Confused about XML namespaces planoie XSLT 2 June 2nd, 2005 04:23 AM
XML Namespaces billy_bob_the_3rd XML 1 January 31st, 2005 03:41 PM
.NET and XML Namespaces - NamespaceManager billy_bob_the_3rd XML 1 December 15th, 2004 08:51 AM





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