Alexandro Colorado | 1 May 08:31 2007

Is this support or development?

I wonder if this is a support list or a development list, I have been in  
this list but most of the post seem related to development of frameworks  
on top of XML.

If I have questions regarding the use of the xml modules such as  
elementTree, SAX, DOM, xerces-type parsers, is this the right list to ask  
about it?

thanks.

--

-- 
Alexandro Colorado
OpenOffice.org
Community Contact // Mexico
http://www.openoffice.org

Twitter: http://www.twitter.com/jza
Jabber: jza <at> jabber.org
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

"Martin v. Löwis" | 1 May 17:43 2007
Picon

Re: Is this support or development?

> If I have questions regarding the use of the xml modules such as  
> elementTree, SAX, DOM, xerces-type parsers, is this the right list to ask  
> about it?

Yes, that's the right list.

Martin
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Stefan Behnel | 1 May 18:39 2007
Picon

link to lxml on the XML software page

Hi,

I would like to see a link to lxml from the Python XML software page
http://pyxml.sourceforge.net/topics/software.html

It is one of the technically leading XML libraries for Python, so I believe
that it deserves a three step link from the Python home page. Something in the
lines of

------------------------
lxml_ - a fast, pythonic, ElementTree_ compatible Python wrapper around
        libxml2_ and libxslt_. lxml supports various XML standards like XPath,
        XSLT, XMLSchema and RelaxNG. It is a highly flexible framework that
        provides a Python data binding API and even supports user defined
        XML APIs.

.. _lxml: http://codespeak.net/lxml/
.. _ElementTree: http://effbot.org/zone/element-index.htm
.. _libxml2: http://xmlsoft.org/
.. _libxslt: http://xmlsoft.org/XSLT/
------------------------

Thanks, and best regards,
Stefan
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Anastasios Hatzis | 2 May 22:22 2007
Picon

Re: XMI, MOF and UML

On Sunday 29 April 2007 20:25, Martin v. Löwis wrote:
> > Have anyone of you already worked on XMI transformation? I'm going to
> > re-engineer my lightweight MDA tool pyswarm SDK*), especially adding
> > support of XMI formats of other UML tools. Currently the tool does only
> > import XMI 2.1 files created with MagicDraw. It seems my plan means
> > plenty of work, including UML and MOF implementations. So I wanted to
> > know if someone in this list has experience with import/export of XMI
> > files and mapping between different XMI versions and the UML or MOF
> > versions they are representing.
>
> Martin Karlsch (www.karlsch.org) has written a framework called Frodo,
> which includes XMI support. You should contact him about details.
>

Martin,

thank you for your notice. I will contact Martin Karlsch as soon as I have 
ordered the mess in my mind. ;)

I found his master thesis and (with some surprise) have seen your name along 
with Markus Hillebrand's. Last week he mentioned such project (I'm sure now 
that he referred to frodo). However, I had the feeling that probably it is 
too challenging for my skill level, but I will try to understand the basic 
principles, at least.

BTW, I have replaced PyXML Sax2 reader with xml.dom.minidom from Python 
standard library, as you suggested on 2007-02-07 in this list. Hasn't been 
much work to change and the new version (0.7.1) runs fine. I also noticed 
that with minidom's parse() the generator is ~ 5 times faster than before, 
where all time-saving seems to be originated from the XML parsing.
(Continue reading)

Ar18 | 8 May 03:54 2007
Picon
Picon

HTML Processing

I would like to investigate (and possibly implement it) the possibility of using Python for processing
html pages.

The actual work would look something like this:
* Retrieve pages from the net that are in any number of formats such as XML, XHML, HTML, HTML, with major
errors in it
* Create a usable DOM for the files (considering the fact that they may have malformed html) OR...  extract
the stuff I need directly from the potentially malformed html.
* If the DOM route is used, then I would need something to retrieve stuff from certain areas of the DOM.
Additional features needed:

I wonder, is this a good place to talk about this?

I know the goal is XML, but I think this still fits.  What libraries should I be looking into to do things like
this?  I would prefer to look at all the options, if possible.
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Gloria W | 8 May 04:35 2007
Picon
Picon

Re: HTML Processing

Ar18 <at> comcast.net wrote:
> I would like to investigate (and possibly implement it) the possibility of using Python for processing
html pages.
>
> The actual work would look something like this:
> * Retrieve pages from the net that are in any number of formats such as XML, XHML, HTML, HTML, with major
errors in it
> * Create a usable DOM for the files (considering the fact that they may have malformed html) OR...  extract
the stuff I need directly from the potentially malformed html.
> * If the DOM route is used, then I would need something to retrieve stuff from certain areas of the DOM.
> Additional features needed:
>
> I wonder, is this a good place to talk about this?
>
> I know the goal is XML, but I think this still fits.  What libraries should I be looking into to do things like
this?  I would prefer to look at all the options, if possible.
> _______________________________________________
> XML-SIG maillist  -  XML-SIG <at> python.org
> http://mail.python.org/mailman/listinfo/xml-sig
>
>   
I wrote an application to do just this. I found that the existing 
xml.dom module had some serious bugs, has not been touched since 2004, 
and had no easy way of creating and inserting subtrees in the DOM, or 
working with subsets of the DOM. This looks like it was written, then 
abandoned for some reason. Not sure why.
I tried to use the elementree from effbot, but also with no success. It 
is not DOM compliant, and it's nesting is odd. For example, text 
appearing after a <p>...</P. tag on the same line is stuffed into a 
'tail variable of the same node, instead of being made into a sibling 
(Continue reading)

Juan Carlos Mendez | 9 May 06:48 2007
Picon

Question on PyXML

Hello everyone.

I'm trying to run InkScape in Mac Os X (a vector graphics  
application).  The prepackaged application runs fine, in general.   
However, many of its modules use a python script named inkex.py,  
which fails with the message that it requires PyXML.

I tried searching for the solution, but it seems to me the XML  
support in Python has changed a bit and perhaps you can help me  
understand what the current best solution is.

It seems PyXML is deprecated or no longer maintained according to its  
SourceForge page.
I believe Python 2.5 (which is what I'm running on the Mac) has some  
of the XML support already built in.

The inkex.py script tries to import the following:
try:
     import xml.dom.ext
     import xml.dom.minidom
     import xml.dom.ext.reader.Sax2
     import xml.xpath
except:
     sys.exit('The inkex.py module requires PyXML. Please download  
the latest version from <http://pyxml.sourceforge.net/>.')

Of these, minidom seems to be present, but the others aren't:

Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
(Continue reading)

Dave Kuhlman | 15 May 20:40 2007

ANN: User methods for generateDS.py

User Methods
============

generateDS.py now has the ability to add user methods to the
classes it generates.

The user provides definitions (source) for the methods to be added
and (for each method) a regular expression to identify the names
of classes to which the method should be added.  Then, the
--user-methods command line flag is used to instruct generateDS.py
to add the specified methods to the classes generated in the
superclass file.

A class variable (_member_data_items) providing information about
the member data items of each generated class has also been added.

There is a sample file (gends_user_methods.py in the distribution)
that provides examples of:

- walking the document object tree,
- accessing member data items using the _member_data_items class
  variable,
- getting and setting the values of member data items, and
- determining the type of member data items.

You can read more about this capability in the "User Methods"
section of the documentation:

    http://www.rexx.com/~dkuhlman/generateDS.html#user-methods

(Continue reading)

"Martin v. Löwis" | 17 May 11:43 2007
Picon

Re: Question on PyXML

> Any ideas or pointers will be very much appreciated

You would have to port the application to the standard Python
library. That should work fine for most aspects. The only
problematic issue is xpath: Python currently does not include
an xpath implementation. Depending on what xpath expressions
are used, you may be able to reformulate the queries directly
in DOM.

Regards,
Martin
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Stylus Studio | 21 May 06:25 2007
Picon

[Announce] Stylus Studio 2007 Release 2 Now Available

[Announce] Dear XML-SIG  <at>  PYTHON,

Stylus Studio 2007 Release 2, is now available for free trial download
or online purchase. Here are some of highlights:

* Query Plan: A new query plan utility in the XQuery Editor lets you
visualize query execution plans and gain insight into how DataDirect
XQuery will execute your XQuery application, including seeing the type
of SQL statements that are used to access relational data, when XML
streaming is being used, which temporary tables are being created,
when variables are being called, etc. Query plan support is available
for any XQuery that uses the DataDirect XQuery processor.

* Support for Grouping Data Sources in XML Publisher: In Stylus Studio
2007 XML Enterprise Suite, Release 2, XML Publisher lets you create
more advanced reports through support for grouping data from nodes in
one or more data sources. Using the new Create Relationship Dialog
Box, you visually define relationships between different data sources,
or between different data islands within the same source and then add
those relationships to your XML reports using simple drag-and-drop
functionality. For more information, visit:
http://www.stylusstudio.com/videos/report-generation/xmlpublisher-070504.html

* Support for Gigabyte Size XML Files: Stylus Studio 2007 XML
Enterprise Suite, Release 2 implements new optimizations that permit
the editing of gigabyte-size XML documents.

* Bundled DataDirect XML Converters 3.0: DataDirect XML Converters are
high-performance Java and .NET components that provide bi-directional,
programmatic access to virtually any non-XML file including EDIFACT,
(Continue reading)


Gmane