Hi, How can I check what node type is the actual, while parsing XML in PHP4? I mean is there some way to do check, like if the parser got to an Element, Attribute, EndElement or others (Text, CDATA) ? To answer to use PHP5 will not help, as I need to parse an XML with PHP4 for a reason.I am re-writing a custom XML parser in PHP (from .NET) and will appreciate any help.The parser builds up an array like version of the XML, so whenever got to a node is building the array. thanks Ben