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 7836945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:24:14+00:00 2026-06-02T14:24:14+00:00

I am designing a reference implementation for EmotionML (W3C’s language for machine representation of

  • 0

I am designing a reference implementation for EmotionML (W3C’s language for machine representation of emotions) in Python and I would like some design suggestions on data types to XML binding (I guess you can say I am crowdsourcing some design ideas).

I would like suggestions and pointers to some design and code of people who might have already done similar. My tendency is to just use Java path I am familiar of creating objects that correspond to the structures of XML and have them translated into DOM.

OO gives me polymorphism but creates a more intricate object structure, where Python is very good about set representation and use of built in collections.

I am looking for possible more elegant approach. Could I define my own non-object structs and interrogate these and translate into DOM?

How would I represent optional, mandatory attributes, elements using lists and dictionaries?

These are all my design thoughts and dilemmas, not per say cries for help.

I could figure these things on my own, so I am truly soliciting mature, benevolent suggestions from experienced Python designers and developers.

Thanks in advance,
Edmon

  • 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-06-02T14:24:18+00:00Added an answer on June 2, 2026 at 2:24 pm

    Data binding is not very common in the Python world compared to Java or C#. I think this is because Python has so many much better XML APIs that are in use instead of the horrible monstrosity that is the DOM.

    Investigate these APIs to see if they meet your needs:

    • ElementTree (found in the standard library and lxml)
    • Objectify (found in lxml, Amara, 4Suite and Gnosis utils).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while designing my user control, i encountered the following problem: i would like to
Looking for some reference material where i can get some OO designing problems and
while designing my api, i am thinking about how i would like to model
I am designing a new improved Logger component (.NET 3.5, C#). I would like
I'm designing a language, and I'm wondering if it's reasonable to make reference types
When designing a stock management database system for sales and purchases what would be
Im designing my school's website and I kind of want to do like a
When designing a class that has a reference to another object it might be
i'm pretty confused over the following issue and would be grateful for some clarity.
I am designing an API, and some of the methods return null when they

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.