DomXML question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thejasondean
Forum Newbie
Posts: 1
Joined: Thu Jan 26, 2006 2:35 am

DomXML question

Post by thejasondean »

Hi people. I'm trying to parse an XML document using DomXML.
Some tags have attributes in the following style:
<Cell ss:Index="13"><Data ss:Type="Number">65</Data></Cell>

i'm trying to get the ss:Index value using
$node->get_attribute("ss:Index")
Yet it returns nothing at all

I also tried $node->get_attribute("ss")
and
$node->get_attribute("Index")
but still i can't get anything...

Is that a real attribute or am I missing something ?
If it is so, is it the correct way of getting the attribute ?

Any help is welcome
Post Reply