# Bug in SimpleXML

- Thread: https://externals.io/message/7802
- Original archive: https://news-web.php.net/php.internals/7802
- Started by Andi Gutmans on 2004-02-13T13:42:24+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7802 — Andi Gutmans — 2004-02-13T13:42:24+00:00

URL: https://externals.io/message/7802#7802

Hey,

When you do something like:
print $sxe->name->asXML();

asXML() prints the XML for the whole object and not for the node.
I think it's a bug. Can one of the SimpleXML maintainers please take a look 
at this?

Thanks,

Andi

---

## #7807 — Rob Richards — 2004-02-13T15:09:56+00:00

URL: https://externals.io/message/7802#7807 · In reply to: #7802

From: Andi Gutmans

> When you do something like:
> print $sxe->name->asXML();
>
> asXML() prints the XML for the whole object and not for the node.
> I think it's a bug. Can one of the SimpleXML maintainers please take a
look
> at this?

Fixed. Thanks,

Rob
