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

DO NOT RE-OPEN. This is not a bug.
A simple online search would give you more than enough information on
this (since you are ignoring Chregu's advice). This has nothing to do
with SimpleXML or PHP. It is simply how you need to work with XPath and
default namespaces (yes I said DEFAULT NAMESPACES) within any language.


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

[2007-08-18 04:42:30] cpriest at warpmail dot net

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.

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

[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()

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

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