Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3347446
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:25:22+00:00 2026-05-18T01:25:22+00:00

For a while I’ve been using a package called gnosis-utils which provides an XML

  • 0

For a while I’ve been using a package called “gnosis-utils” which provides an XML pickling service for Python. This class works reasonably well, however it seems to have been neglected by it’s developer for the last four years.

At the time we originally selected gnosis it was the only XML serization tool for Python. The advantage of Gnosis was that it provided a set of classes whose function was very similar to the built-in Python XML pickler. It produced XML which python-developers found easy to read, but non-python developers found confusing.

Now that the proejct has grown we have a new requirement: We need to be able to exchange XML with our colleagues who prefer Java or .Net. These non-python developers will not be using Python – they intend to produce XML directly, hence we have a need to simplify the format of the XML.

So are there any alternatives to Gnosis. Our requirements:

  • Must work on Python 2.4 / Windows x86 32bit
  • Output must be XML, as simple as possible
  • API must resemble Pickle as closely as possible
  • Performance is not hugely important

Of course we could simply adapt Gnosis, however we’d prefer to simply use a component which already provides the functions we requrie (assuming that it exists).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:25:22+00:00Added an answer on May 18, 2026 at 1:25 am

    So what you’re looking for is a python library that spits out arbitrary XML for your objects? You don’t need to control the format, so you can’t be bothered to actually write something that iterates over the relevant properties of your data and generates the XML using one of the existing tools?

    This seems like a bad idea. Arbitrary XML serialization doesn’t sound like a good way to move forward. Any format that includes all of pickle’s features is going to be ugly, verbose, and very nasty to use. It will not be simple. It will not translate well into Java.

    What does your data look like?

    If you tell us precisely what aspects of pickle you need (and why lxml.objectify doesn’t fulfill those), we will be better able to help you.

    Have you considered using JSON for your serialization? It’s easy to parse, natively supports python-like data structures, and has wide-reaching support. As an added bonus, it doesn’t open your code to all kinds of evil exploits the way the native pickle module does.

    Honestly, you need to bite the bullet and define a format, and build a serializer using the standard XML tools, if you absolutely must use XML. Consider JSON.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While creating a simple client for a REST service which I have stubbed out,
While browsing the source code of the Scala API, I met this package definition
While I grew up using MSWindows, I transitioned to my much-loved Mac years ago.
while working in c/c++, 1.cin/cout or 2.scanf/printf , which one of both , will
While developing with Firebug I keep getting this error. pages[x].css(z-index,x) is not a function
I am using a 3rd-party rotator object, which is providing a smooth, random rotation
While the C# spec does include a pre-processor and basic directives (#define, #if, etc),
While going through university and from following the development of SO, I've heard a
While I've seen rare cases where private inheritance was needed, I've never encountered a
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks: <buildpublisher>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.