By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,857 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Using Python

P: n/a
Hi Guys,

I am new to this language and i need some help...

I am trying to create a script that will go into a log file and bring
me back the xml from an order...

For example:

go into Log1.xml and extract order number 2 from top to bottom and
extract it into a txt file...

Does anyone know how i can create this type of script or has like a
sample that i can use.. I am having a hard time starting the script..

hope someone can help

Thanks agian

Nov 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
hg
beemer328i2004 wrote:
Hi Guys,

I am new to this language and i need some help...

I am trying to create a script that will go into a log file and bring
me back the xml from an order...

For example:

go into Log1.xml and extract order number 2 from top to bottom and
extract it into a txt file...

Does anyone know how i can create this type of script or has like a
sample that i can use.. I am having a hard time starting the script..

hope someone can help

Thanks agian
You might want to start here: http://diveintopython.org/

hg

Nov 29 '06 #2

P: n/a
beemer328i2004 wrote:
Hi Guys,

I am new to this language and i need some help...

I am trying to create a script that will go into a log file and bring
me back the xml from an order...

For example:

go into Log1.xml and extract order number 2 from top to bottom and
extract it into a txt file...

Does anyone know how i can create this type of script or has like a
sample that i can use.. I am having a hard time starting the script..

hope someone can help

Thanks agian
You should also review this module for parsing your XML:

http://effbot.org/zone/element-index.htm

elementree is now part of the standard library.

Note: It would also help if you would post contents of log1.xml
so others could see what you are working with. You should also
post whatever python code you have tried so far.

-Larry
Nov 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.