Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python/libxml2dom questions

Reply
Thread Tools

python/libxml2dom questions

 
 
bruce
Guest
Posts: n/a
 
      07-02-2006
hi paul...

in playing around with the test python app (see below) i've got a couple of
basic questions. i can't seem to find the answers via google, and when i've
looked in the libxml2dom stuff that i downloaded i didn't see answers
either...

for the list in the "for label in d.xpath" how can i find out the size of
the list???? a simple/basic question, but it's driving me up a wall!!!

also, how can i determine what methods are available for a libxml2dom
object?

thanks...

-bruce


 
Reply With Quote
 
 
 
 
Paul McGuire
Guest
Posts: n/a
 
      07-02-2006
"bruce" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi paul...
>
> in playing around with the test python app (see below) i've got a couple

of
> basic questions. i can't seem to find the answers via google, and when

i've
> looked in the libxml2dom stuff that i downloaded i didn't see answers
> either...
>
> for the list in the "for label in d.xpath" how can i find out the size of
> the list???? a simple/basic question, but it's driving me up a wall!!!
>

I'm at a loss. Python ships with sample code. libxml2dom ships with sample
code. Somewhere in there must be code that evaluates the length (hint) of a
list.

What search terms are you googling for? The 3rd link returned from Google,
searching for "python list size" is this one.

http://www.brpreiss.com/books/opus7/html/page82.html

Yes, this is a simple/basic question. It is so simple/basic, that it gets
discussed in just about every Python tutorial within the first 3 pages.

> also, how can i determine what methods are available for a libxml2dom
> object?


Didn't I post a message earlier describing dir and help? You need to do
some basic reading, man!


-- Paul
Give a man a fish and you feed him for a day;
give a man a fish every day and you feed him for the rest of his life.


 
Reply With Quote
 
 
 
 
Barry Kelly
Guest
Posts: n/a
 
      07-02-2006
"bruce" <(E-Mail Removed)> wrote:

> also, how can i determine what methods are available for a libxml2dom
> object?


Have you tried dir(object)? It works great on the command-line
reply-eval-print loop.

-- Barry

--
http://barrkel.blogspot.com/
 
Reply With Quote
 
Stefan Behnel
Guest
Posts: n/a
 
      07-02-2006
bruce wrote:
> in playing around with the test python app (see below) i've got a couple of
> basic questions. i can't seem to find the answers via google, and when i've
> looked in the libxml2dom stuff that i downloaded i didn't see answers
> either...
>
> for the list in the "for label in d.xpath" how can i find out the size of
> the list???? a simple/basic question, but it's driving me up a wall!!!
>
> also, how can i determine what methods are available for a libxml2dom
> object?


Obvious question: Why don't you use lxml? It's pretty well documented.

http://codespeak.net/lxml

For the rest of the questions: please read the Python tutorial on python.org.
It's very helpful for beginners.

Stefan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Few Questions (HW questions already answered by me) padh.ayo@gmail.com C Programming 10 12-06-2006 05:48 PM
Malloc and free questions - learner questions pkirk25 C Programming 50 10-04-2006 02:22 PM
Questions on Canon 300D and etc. questions regarding digital photography Progressiveabsolution Digital Photography 12 03-24-2005 05:18 PM
Newbie questions - Couple of VC++ questions regarding dlls and VB6 Ali Syed C Programming 3 10-13-2004 10:15 PM
Re: Questions....questions....questions Patrick Michael A+ Certification 0 06-16-2004 04:53 PM



Advertisments