FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Checking equal number of <div> and </div>
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Checking equal number of <div> and </div> [message #171308 is a reply to message #171304] Thu, 30 December 2010 09:16 Go to previous messageGo to previous message
RMP is currently offline  RMP
Messages: 6
Registered: December 2010
Karma:
Junior Member
Can you use DOMXPath::query and run "/descendant-or-self::div" on it?

Or DOMXPath::evaluate with "count(/descendant-or-self::div)" ?

Dunno if it works.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ignoring Case on directories
Next Topic: Calculate the distance between 2 points
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 10:53:42 GMT 2024

Total time taken to generate the page: 0.04521 seconds