ID:               42325
 User updated by:  cpriest at warpmail dot net
 Reported By:      cpriest at warpmail dot net
-Status:           Bogus
+Status:           Open
 Bug Type:         SimpleXML related
 Operating System: Windows
 PHP Version:      5.2.4RC2
 New Comment:

Okay, this is a little frustrating here, I don't have infinite amount
of time to get a bug report through to you.

I am trying to use the DEFAULT NAMESPACE.  I couldn't use
registerXPathNamespace() if I wanted to, there is no prefix or namespace
to declare to use it with.

PLEASE READ THE REPORT.


Previous Comments:
------------------------------------------------------------------------

[2007-08-17 19:52:49] [EMAIL PROTECTED]

This is not a help desk. Thats how XPath and default namespaces work.

------------------------------------------------------------------------

[2007-08-17 16:30:49] cpriest at warpmail dot net

Why is this bogus?  Does anyone actually even read these reports?

------------------------------------------------------------------------

[2007-08-17 14:45:18] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php



------------------------------------------------------------------------

[2007-08-17 14:35:16] cpriest at warpmail dot net

I'm not sure I understand why I would have to call
registerXPathNamespace() to use a default namespace?  I thought one of
the reasons to use SimpleXML was to parse XML documents.

If I make the one default namespace
(xmlns="http://zzz.com/webservices";) a non-default such as xmlns:test=,
then it properly queries the /result value.

To do what you're suggestion I would have to parse the XML document
myself looking for the namespace I would want to query against.

The code below also works if you simply remove the xmlns="" attribute. 
Are you sure that I'm supposed to be using registerXPathNamespace()

------------------------------------------------------------------------

[2007-08-17 07:01:04] [EMAIL PROTECTED]

You have to register default namespaces with

http://ch2.php.net/manual/en/function.simplexml-element-
registerXPathNamespace.php




------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42325

-- 
Edit this bug report at http://bugs.php.net/?id=42325&edit=1

Reply via email to