ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
XML::LibXML::Reader
by Tom Browder other posts by this author
Aug 11 2007 4:02AM messages near this date
view in the new Beta List Site
Re: Get Out the Word on XML::LibXML | Re: XML::LibXML::Reader
& XSLT I love the reader but am having problems getting attribute info.  I also have other q
uestions:
 
1.  When I use readInnerXML and then use it as a string input to a new reader I get complain
ts about extra stuff at the end.  So I have been using readOuterXML and ignoring the parent 
element while parsing.  Is there any better way to isolate looking at an element's children?
 
2. Can you show me exactly how to get the attribute/value pairs from this xml fragment:
 
<parent a='A' b='B'> 
  <child a='A' b='B'> 
    <gchild a='A' b='B'> a</gchild>
  </child> 
</parent> 
 
Thanks so much.
 
-Tom
Thread:
Tom Browder
Petr Pajas

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved