-
Notifications
You must be signed in to change notification settings - Fork 20
Nodes RegisterNamespace
Thomas Weinert edited this page Jul 12, 2018
·
3 revisions
void registerNamespace(string $prefix, string $namespace);
Registers a namespace for the Nodes instance. The namespace will be registered on the attached Xpath instance. If the document property contains a FluentDOM\DOM\Document, the namespace will be registered here, too.
$fd = new FluentDOM\Nodes(
'<foo:message xmlns:foo="urn:foo">Hello World!</foo:message>'
);
$fd->registerNamespace('bar', 'urn:foo');
echo $fd->find('//bar:message')[0];
Hello World!
- Home
- Getting Started
- Tasks
- Plugins
- Functions
- Lists
- Creator (5.1)
- CSS Selectors
- Convertors
- Loaders
- Serializers (5.1)
- Transformers (5.1)
- Extended DOM
- XMLReader (6.1)
- XMLWriter (6.1)
- Interfaces