Hey folks,
I've written a small configuration parser for a recent project. I
think it's pretty usefull and not that "fat" or "complex" as the
regular python configuration modules like ConfigParser. The file
contains everything you need to know.
http://crac.pcriot.com/dl/config.py
If you have any
I want to say I just have to deal with some regular text input (the input
file is as XML format) so I need to read all the nodes out and get what they
are.
Thanks for your great help though. I should have made my point clearer. :)
On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote:
> Jo Chan,
On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote:
> Jo Chan, 15.04.2010 10:52:
> > I just want to get the content from a XML.
>
> That's not a very specific description of what you want to do. What's "the
> content"? The plain text content? Or do you care about the structure? And
> what parts
Jo Chan, 15.04.2010 10:52:
> I just want to get the content from a XML.
That's not a very specific description of what you want to do. What's "the
content"? The plain text content? Or do you care about the structure? And
what parts of the structure?
> I learn that there are two
> modules in pyth
that BeautifulSoup is a suitable tool to parse XML, and even
presenting it under the headline of "the most popular xml parser module" is
clearly misleading. For most tasks that involve XML as input, BeautifulSoup
is not the right tool.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
BeatifulSoup can be used as one IMO
On Thu, Apr 15, 2010 at 3:50 PM, Stefan Behnel wrote:
> Shashwat Anand, 15.04.2010 11:55:
> > BeautifulSoup
>
> The OP asked for an XML parser.
>
> Stefan
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinf
Shashwat Anand, 15.04.2010 11:55:
> BeautifulSoup
The OP asked for an XML parser.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
BeautifulSoup
On Thu, Apr 15, 2010 at 1:39 PM, Stefan Behnel wrote:
> Jo Chan, 14.04.2010 15:28:
>
> Hi, everyone~~~ I am new.
>> What is the most popular xml parser module used on python? Thanks for
>> answering...
>>
>
> Why do you want to know? Just out of
Jo Chan, 14.04.2010 15:28:
Hi, everyone~~~ I am new.
What is the most popular xml parser module used on python? Thanks for
answering...
Why do you want to know? Just out of curiosity, or are you looking for a
tool that you can use to get a specific job done? If it's the latter, you
may
Hi, everyone~~~ I am new.
What is the most popular xml parser module used on python? Thanks for
answering...
--
--
Best Regards
陈松坚
信息科学与技术学院 中山大学 广州大学城 510006
Chen Songjian
School of Information Science & Technology
Sun Yat-sen(Zhongshan) University, Guangzhou Higher Educa
On Fri, 20 Mar 2009 01:19:38 -0700, Mark Dickinson wrote:
> On Mar 20, 7:26 am, Steven D'Aprano cybersource.com.au> wrote:
>> "All source files mentioned here which are not part of the Python
>> installation are located in the Demo/parser/ directory of the
>> distribution."
>>
>> http://docs.pyth
On Mar 20, 7:26 am, Steven D'Aprano wrote:
> "All source files mentioned here which are not part of the Python
> installation are located in the Demo/parser/ directory of the
> distribution."
>
> http://docs.python.org/library/parser.html#information-discovery
>
> What distribution? What does this
I'm reading the docs for the parser module and I'm confused.
http://docs.python.org/library/parser.html
The doc make a number of references to the file "example.py", and says:
"All source files mentioned here which are not part of the Python
installation are l
arse tree be constructed?And what
parser module should i use?
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
Is there some way to tell parser module (parser.suite function) not to
stop parsing after it have found some syntax error but to proceed with
parsing and construct the abstract syntax tree for rest of the code.
--
http://mail.python.org/mailman/listinfo/python-list
5701570256930.0
> >
> > CQUAD4 7233 2156935702570356940.0
> >
> > the data file is very complex if i consider all complexities)
> >
> > Is is possible to use config parser module insome way for this. I also
> > have few perl
gt;
> CQUAD4 7233 2156935702570356940.0
>
> the data file is very complex if i consider all complexities)
>
> Is is possible to use config parser module insome way for this. I also
> have few perl parser (for some part for some particular tasks) and now
>
Thanks a lot for Dale and Larry,
I have not tried the OOP way yet like you mentioned,
I will try to create a parser soon,
maybe I will post it in the net after that, it may be useful to others
too,
Thanks again
-Jiro
--
http://mail.python.org/mailman/listinfo/python-list
356940.0
>
> the data file is very complex if i consider all complexities)
>
> Is is possible to use config parser module insome way for this. I also
> have few perl parser (for some part for some particular tasks) and now
> changing them to python. (I feel perl regex combination
The Config Parser module is for extracting data from and writing to a
specific format of file, generally known as a config file. As explained in
the documentation, a config file is in the same format as .ini files
frequently found on windows - especially used by older software.
It is a very handy
)
CQUAD4 7231 2156915700570156920.0
CQUAD4 7232 2156925701570256930.0
CQUAD4 7233 2156935702570356940.0
the data file is very complex if i consider all complexities)
Is is possible to use config parser module insome way for
21 matches
Mail list logo