[XML-SIG] Beginner XML-Question

Brian Wisti wbrian2@uswest.net
Thu, 27 Jul 2000 11:43:08 +0000


--------------E0B915D76FC71FD0C569E24A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Manfred,

I'm still figuring out both Python and XML, but the script you're
looking for is already in the XML-HOWTO:

    http://www.python.org/doc/howto/xml/node9.html

All I've done myself basically uses this sample as a template (adapting
it to build a PencillerFinder class, for example).   I've just purchased
the book "XML Processing With Python," so maybe I'll become more useful
(and helpful) soon.

Good Luck!
Brian Wisti

Manfred Weber wrote:

> Hi,I am absolut beginner...to Python..could anyone just send me a
> simple PythonScript using the xmlLib...Following the XML Starting out
> did not do it. Lets say I use this xml-example: <collection>
>   <comic title="Sandman" number='62'>
>     <writer>Neil Gaiman</writer>
>     <penciller pages='1-9,18-24'>Glyn Dillon</penciller>
>     <penciller pages="10-17">Charles Vess</penciller>
>   </comic>
> </collection> A very simple script that prints out any element (f.e.
> the writer) would do it!Thanx...M.Weber

--------------E0B915D76FC71FD0C569E24A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Hi Manfred,
<p>I'm still figuring out both Python and XML, but the script you're looking
for is already in the XML-HOWTO:
<p>&nbsp;&nbsp;&nbsp; <A HREF="http://www.python.org/doc/howto/xml/node9.html">http://www.python.org/doc/howto/xml/node9.html</A>
<p>All I've done myself basically uses this sample as a template (adapting
it to build a PencillerFinder class, for example).&nbsp;&nbsp; I've just
purchased the book "XML Processing With Python," so maybe I'll become more
useful (and helpful) soon.
<p>Good Luck!
<br>Brian Wisti
<p>Manfred Weber wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Hi,</font></font><font face="Arial"><font size=-1>I
am absolut beginner...to Python..</font></font><font face="Arial"><font size=-1>could
anyone just send me a simple PythonScript using the xmlLib...</font></font><font face="Arial"><font size=-1>Following
the XML Starting out did not do it.</font></font>&nbsp;<font face="Arial"><font size=-1>Lets
say I use this xml-example:</font></font>&nbsp;<font face="Arial"><font size=-1>&lt;collection></font></font>
<br><font face="Arial"><font size=-1>&nbsp; &lt;comic title="Sandman" number='62'></font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; &lt;writer>Neil
Gaiman&lt;/writer></font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; &lt;penciller pages='1-9,18-24'>Glyn
Dillon&lt;/penciller></font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; &lt;penciller pages="10-17">Charles
Vess&lt;/penciller></font></font>
<br><font face="Arial"><font size=-1>&nbsp; &lt;/comic></font></font>
<br><font face="Arial"><font size=-1>&lt;/collection></font></font>&nbsp;<font face="Arial"><font size=-1>A
very simple script that prints out any element (f.e. the writer) would
do it!</font></font><font face="Arial"><font size=-1>Thanx...</font></font><font face="Arial"><font size=-1>M.Weber</font></font></blockquote>

</body>
</html>

--------------E0B915D76FC71FD0C569E24A--