Jump to content

Search the Community

Showing results for tags 'getAttribute'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. <?xml version="1.0" encoding="utf-8"?><root><name ######="M" age="15">Tin</name><name ######="F" age="13">Valerie</name><name ######="F" age="14">Valeriana</name><person name="Tin" ######="M" age="15" /></root> Is there a way to get the attribute length in PHP? <?php echo sizeof($xml->name); echo '<br />';echo sizeof($xml->name->attributes()); ?> !!!The word '######' has just been renamed as #### by the siteBut that doesn't matter.!!! I've used simpleXML (confusing...unlike JScript) and tried to use sizeof();It works for tagNames and attributes within a tagName, But if I want to get the length of the attribute 'age' across the xml doc,is it possible?
×
×
  • Create New...