[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-21 Thread dominussuus
Thank you again for your help. I've popped the file to http://FileHost.JustFreeSpace.Com/157index.php . A typical file that'll be plugged into this template lives at http://FileHost.JustFreeSpace.Com/940index.htm . With thanks, Borden On 11/06/2008, Rob Richards <[EMAIL PROTECTED]> wrote: > Yo

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
You might want to put a link to a complete example because $page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang'); is how you access it. Rob [EMAIL PROTECTED] wrote: Thank you, Rob, Unfortunately, that didn't work, either (though I'll keep it in mind). The

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread dominussuus
Thank you, Rob, Unfortunately, that didn't work, either (though I'll keep it in mind). The returned string is still empty. I also unsuccessfully fetched the 'xmlns' attribute using getAttribute(). Interestingly, although hasAttributes(void) returns true, hasAttribute('xmlns'), and hasAttribute(

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
Borden Rhodes wrote: I'm having a pig of a time trying to figure this one out: I have an XHTML document which I've loaded into a DOMDocument because I want to add more tags to it. However, since I live in a bilingual country, I want to get the document's xml:lang attribute so I know what langua