Random832 schrieb am 24.06.2016 um 15:09:
> On Fri, Jun 24, 2016, at 02:39, dieter wrote:
>> You want an incremental parser if the XML documents are so huge that
>> you must process them incrementally rather than have a data structure
>> representing the whole document (in memory). Incremental pars
On Friday, June 24, 2016 at 8:44:49 PM UTC-4, Sayth Renshaw wrote:
> On Friday, 24 June 2016 07:03:18 UTC+10, David Shi wrote:
> > Which one is the best XML-parser?
> > Can any one tell me?
> > Regards.
> > David
>
> Most use lxml http://lxml.de/index.html
&g
On Thursday, June 23, 2016 at 11:03:18 PM UTC+2, David Shi wrote:
> Which one is the best XML-parser?
> Can any one tell me?
> Regards.
> David
Lxml offers lxml.etree.iterparse
(http://lxml.de/tutorial.html#event-driven-parsing), an important combination
of the memory savings of
On Friday, 24 June 2016 07:03:18 UTC+10, David Shi wrote:
> Which one is the best XML-parser?
> Can any one tell me?
> Regards.
> David
Most use lxml http://lxml.de/index.html
Sayth
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, 24 June 2016 07:03:18 UTC+10, David Shi wrote:
> Which one is the best XML-parser?
> Can any one tell me?
> Regards.
> David
xml parser most use lxml http://lxml.de/index.html
Sayth
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, 24 June 2016 07:03:18 UTC+10, David Shi wrote:
> Which one is the best XML-parser?
> Can any one tell me?
> Regards.
> David
Most would use lxml
sayth
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, 24 June 2016 07:03:18 UTC+10, David Shi wrote:
> Which one is the best XML-parser?
> Can any one tell me?
> Regards.
> David
Most use lxml
Sayth
--
https://mail.python.org/mailman/listinfo/python-list
Lxml
--
https://mail.python.org/mailman/listinfo/python-list
t; pass
> else:
> inbuf = ""
> try:
> chunk += next(it)
> except StopIteration:
> break
>
pass
else:
inbuf = ""
try:
chunk += next(it)
except StopIteration:
break
# trigger a decode error if chunk contains junk
json.loads("[" + chunk)
It could easily be converted to an analogous XML parser.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jun 24, 2016, at 02:39, dieter wrote:
> You want an incremental parser if the XML documents are so huge that
> you must process them incrementally rather than have a data structure
> representing the whole document (in memory). Incremental parsers
> for XML are usually called "SAX" parsers.
David Shi via Python-list writes:
> Which one is the best XML-parser?
"best" is not an absolute term but depends on criteria/conditions.
There are essentially two kinds of parsers: incremental parsers
which parse the structure and report events for everything they see
and no
Which one is the best XML-parser?
Can any one tell me?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
On 08/31/2012 08:21 AM, Stefan Behnel wrote:
> Florian Lindner, 31.08.2012 14:03:
>> I plan to use the etree.ElementTree XML parser to parse a config file
>> in which the order of the elements matter, e.g.:
>>
>>
>>
>>
>>
>> is not equal to:
Florian Lindner, 31.08.2012 14:03:
> I plan to use the etree.ElementTree XML parser to parse a config file
> in which the order of the elements matter, e.g.:
>
>
>
>
>
> is not equal to:
>
>
>
>
>
> I have found different answers to the question
Hello,
I plan to use the etree.ElementTree XML parser to parse a config file
in which the order of the elements matter, e.g.:
is not equal to:
I have found different answers to the question if order matters in XML
documents. So my question here: Does it matters (and is more or less
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
Shashwat Anand, 15.04.2010 12:29:
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.
BeatifulSoup can be used as one IMO
But it is not an XML parser according to the XML spec. So giving the
impression
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
>
-
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
MacRules wrote:
> I have a python program doing XML data prasing and write the result to 2
> data files; which will be loaded to MySQL.
> [...]
> Is there a python profiler just like for C program?
> And tell me which functions or modules take a long time.
In case you want to do this because you n
Paul Boddie wrote:
On 19 Sep, 21:19, MacRules wrote:
Is there a python profiler just like for C program?
And tell me which functions or modules take a long time.
Can you show me URL or link on doing this task?
Having already looked at combining Python profilers with KCachegrind
(as suggested
On 19 Sep, 21:19, MacRules wrote:
>
> Is there a python profiler just like for C program?
> And tell me which functions or modules take a long time.
>
> Can you show me URL or link on doing this task?
Having already looked at combining Python profilers with KCachegrind
(as suggested by Andrew Dal
MacRules schrieb:
I have a python program doing XML data prasing and write the result to 2
data files; which will be loaded to MySQL.
I ran this.
$ python dealmaker.py
... read data
loop through records
... XML parsing
... write to file1.dat
... write to file2.date
done
Is there a python prof
I have a python program doing XML data prasing and write the result to 2
data files; which will be loaded to MySQL.
I ran this.
$ python dealmaker.py
... read data
loop through records
... XML parsing
... write to file1.dat
... write to file2.date
done
Is there a python profiler just like for
RC wrote:
> By default the
>
> document = xml.dom.minidom.parse(inputFileName.xml)
>
> This will convert all the & to &
> But I want to convert the & back to &
>
> Is there a module or method in Python?
> I know there is such method in PHP, but I am
> new in Python.
>>> from xml.sax import sax
By default the
document = xml.dom.minidom.parse(inputFileName.xml)
This will convert all the & to &
But I want to convert the & back to &
Is there a module or method in Python?
I know there is such method in PHP, but I am
new in Python.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-
On 16 Aug., 02:21, Rex <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am a Python programmer facing my first small XML project. I am
> looking to find a simple tool to take an XSD file and convert the XSD
> tree structure to another text format (e.g. an adjacency matrix for
> the tree's graph), or conve
Hi,
On Fri, 15 Aug 2008 17:21:56 -0700, Rex wrote:
> What tool should I use?
For easy stuff ElementTree (bundled with Python 2.5 but also available to
older versions), for more complex stuff lxml (which extends the ET API,
so the learning curve is incremental).
regards,
Marek
--
http://mail.p
Hello,
I am a Python programmer facing my first small XML project. I am
looking to find a simple tool to take an XSD file and convert the XSD
tree structure to another text format (e.g. an adjacency matrix for
the tree's graph), or convert one xml file format definition into
another, non-xml one.
> Hi,
>
> Basic XML questions,
>
> I have a .xml file I want to validate against a .xsd file...
>
> Does the Python base distribution come with a validating XML parser?
>
> I want to make sure the elements in my xml file vs. the elements
> defined in my xsd are a mat
Hi,
Basic XML questions,
I have a .xml file I want to validate against a .xsd file...
Does the Python base distribution come with a validating XML parser?
I want to make sure the elements in my xml file vs. the elements
defined in my xsd are a match.
I could parse both XML and xsd elements to
>
> May I suggest you ask in the blender list?
>
Will do that and report back. Thank you!
Manuel
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
> Could it be that I have to install the same python version Blender was
> compiled with?
I have no idea.
May I suggest you ask in the blender list?
HTH,
--
Miki <[EMAIL PROTECTED]>
http://pythonwise.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 14, 8:14 pm, Miki <[EMAIL PROTECTED]> wrote:
> Python is using an external library for SAX (expat IIRC).
> I *guess* the Python that comes with Blender don't have this library.
>
I don't know... I didnt install any external libraries for sax. I
think python comes with a standard sax librar
Hello,
> but when I copy the script into blender and run it I get:
>
> [code]Compiled with Python version 2.5.
> Checking for installed Python... got it!
> Traceback (most recent call last):
> File "Text", line 27, in
> File "H:\Python25\lib\xml\sax\__init__.py", line 93, in make_parser
>
Hi,
I need to parse xml files for the Blender Game Engine. ATM I am trying
to get this script running in the BGE. This is my first script and I
dont have much experience programming...
import xml.sax
class PnmlHandler(xml.sax.ContentHandler):
def __init__(self):
self.inPlace=0
d
Hello,
Can any one help for error in following code.
actually i want to map the element name with its data between start and end
tag , but i am unable to do so.
here is the code which i am trying for please do reply if i am not on right
track.
import xml.sax.handler
class BookHandler(xml.sax.ha
Let's try http://pyxml.sourceforge.net/
Cheers
Python Articles at http://pyarticles.blogspot.com/> Date: Sat, 26 May 2007
10:02:06 +0200> From: [EMAIL PROTECTED]> Subject: Re: Xml parser> To:
python-list@python.org> > XiaQ wrote:> > You can use DOM> >
ht
XiaQ wrote:
> You can use DOM
> http://diveintopython.org/, Chapter 9
> "ashish" wrote
>> Hi All,
>>
>> I want to know weather is there any api available in python for parsing
>> xml(XML parser)
>>
>> Regards
>> Ashish
Sure, you can use
You can use DOM
http://diveintopython.org/, Chapter 9
"ashish" wrote
> Hi All,
>
> I want to know weather is there any api available in python for parsing
> xml(XML parser)
>
> Regards
> Ashish
>
--
http://mail.python.org/mailman/listinfo/python-list
On May 25, 7:04 am, "Amit Khemka" <[EMAIL PROTECTED]> wrote:
> On 5/24/07, ashish <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I want to know weather is there any api available in python for parsing
> > xml(XML parser)
>
> Checkout
On 5/24/07, ashish <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I want to know weather is there any api available in python for parsing
> xml(XML parser)
Checkout cElementTree .
Cheers,
--
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the wor
ashish skrev:
> Hi All,
>
> I want to know weather is there any api available in python for parsing
> xml(XML parser)
I have had very good succes with lxml
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I want to know weather is there any api available in python for parsing
xml(XML parser)
Regards
Ashish
--
http://mail.python.org/mailman/listinfo/python-list
Kirk Strauser wrote:
> We're looking for a current, supported, validating XML parser. Since it
> seems like there are a few thousand out there, I though we'd see what
> everyone else is using.
You are asking for lxml, right?
http://codespeak.net/lxml/
> Bonus points
We're looking for a current, supported, validating XML parser. Since it
seems like there are a few thousand out there, I though we'd see what
everyone else is using.
Bonus points if it can do something like:
>>> foo = XMLParser("""
Larry Bates wrote:
> I don't know if it meets ALL of your requirements but this might
> help:
>
> http://www.reportlab.org/pyrxp.html
AFAIK, there is no XML Schema support in PyRXP.
This is really bad enough.
GPL is not an option for us, and a commercial
licence is less good than e.g. MIT or LGP
Magnus Lycka wrote:
> I'm looking for some library to parse XML code
> much faster than the libs built into Python 2.4
> (I'm stuck with 2.4 for quite a while) and I
> also need XML Schema validation, and would
> appreciate support for e.g. XPath and XInclude.
> I also want an API which is more Pyt
Magnus Lycka wrote:
> I'm looking for some library to parse XML code
> much faster than the libs built into Python 2.4
> (I'm stuck with 2.4 for quite a while) and I
> also need XML Schema validation, and would
> appreciate support for e.g. XPath and XInclude.
> I also want an API which is more Pyt
I'm looking for some library to parse XML code
much faster than the libs built into Python 2.4
(I'm stuck with 2.4 for quite a while) and I
also need XML Schema validation, and would
appreciate support for e.g. XPath and XInclude.
I also want an API which is more Pythonic than
e.g. a thin wrapper o
Paul McGuire wrote:
> >>> doc.childNodes[0].childNodes = sorted(
> ... [n for n in doc.childNodes[0].childNodes
> ... if n.nodeType==doc.ELEMENT_NODE],
> ... key=lambda n:n.nodeName)
> >>> print doc.toprettyxml()
>
>
>
> goodbye
>
>
>
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
This is what I posted, but it's not what I typed. I entered some very long
lines at the console, and the newsgroup software, when wrapping the text,
pre
Paul McGuire wrote:
...
> Here is a snippet from an interactive Python session, working with the
> "batteries included" xml.dom.minidom. The solution is not necessarily in
> the parser, it may be instead in what you do with the parsed document
> object.
>
> This is not a solution to your actual
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi everyone,
>
> I am a total newbie to XML parsing. I've written a couple of toy
> examples under the instruction of tutorials available on the web.
>
> The problem I want to solve is this. I have an XML snippet (in a
> string) that
Diez B. Roggisch wrote:
> You can sort them by obtaining them as tree of nodes, e.g. using element
> tree or minidom.
>
> But you should be aware that this will change the structure of your document
> and it isn't always desirable to do so - e.g. html pages would look funny
> to say the least if
[EMAIL PROTECTED] wrote:
> Hi everyone,
>
> I am a total newbie to XML parsing. I've written a couple of toy
> examples under the instruction of tutorials available on the web.
>
> The problem I want to solve is this. I have an XML snippet (in a
> string) that looks like this:
>
>
> hello
Hi everyone,
I am a total newbie to XML parsing. I've written a couple of toy
examples under the instruction of tutorials available on the web.
The problem I want to solve is this. I have an XML snippet (in a
string) that looks like this:
hello
goodbye
and I want to alphabetize not only
[EMAIL PROTECTED] wrote:
> Well, I'm fairly new to Python and have encountered a strange error while
> reading an XML document in Python. I used the SAX parser, and my input XML is
> fairly large with 30 records. I extract about 25 fields from each record
> and spit out a csv file. The str
Hello,
Well, I'm fairly new to Python and have encountered a strange error
while reading an XML document in Python. I used the SAX parser, and my input XML
is fairly large with 30 records. I extract about 25 fields from each record
and spit out a csv file. The strange thing is that af
65 matches
Mail list logo