Concept Framework 2.0 documentation Contents | Index

standard.lib.xml.xmlNodeGetBase

Name Version Deprecated
xmlNodeGetBase version 1.0 no

Prototype:
string xmlNodeGetBase(number doc, number cur)

Parameters:
doc      an XML document handle
node      the XML node

Description:
Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use {xmlDocumentGetBase} for this

Returns:
Return the base URL as a string, or an empty string if cannot be retrieved.

Documented by Eduard Suica by adapting from http://xmlsoft.org/, generation time: Fri Jan 21 18:06:23 2011 GMT(c)2011 RadGs Software