in reply to Re: xmlns and XML::LibXML
in thread xmlns and XML::LibXML
I cannot see how to use. XML::LibXML::XPathContext
The man page says:
registerNs $xpc->registerNs($prefix, $namespace_uri) Registers namespace $prefix to $namespace_uri.
But I do not know in advance what the prefix will be.
<?xml version="1.0" encoding="utf-8" ?> <propfind xmlns="DAV:"> <propname/> </propfind>
Is valid and
<?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop xmlns:R="http://ns.example.com/boxschema/"> <R:bigbox/> <R:author/> <R:DingALing/> <R:Random/> </D:prop> </D:propfind>
is valid too.
Worik
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: xmlns and XML::LibXML
by Anonymous Monk on Jun 02, 2015 at 03:33 UTC | |
|
Re^3: xmlns and XML::LibXML
by ikegami (Patriarch) on Jun 02, 2015 at 13:11 UTC | |
|
Re^3: xmlns and XML::LibXML
by Anonymous Monk on Jun 02, 2015 at 09:28 UTC |