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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:53:52+00:00 2026-06-10T05:53:52+00:00

How should colander be used for xml deserialization? Docs say that it can even

  • 0

How should colander be used for xml deserialization? Docs say that it can even be used for xml deserialization and validation, but I didn’t find any good examples for that in docs or on the web!

If anyone has used colander for xml deserialization can you just put a snippet here on its usage? It would be very helpful.

  • 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-10T05:53:54+00:00Added an answer on June 10, 2026 at 5:53 am

    Look at colander as a tool for ‘deserialization/validation from a python dictionary‘. A dict in Python can be formed from any structured data format, I guess.

    In one of my projects I validate POST (webob.multidict) data and a JSON file and use the same lines of code:

    recipe_schema = RecipeSchema()
    try:
        appstruct = recipe_schema.deserialize(cstruct)
    ...
    

    cstruct is always a dict, as mentioned above – sometimes made of processed Multidict, sometimes made of json.load(json_data).

    So, transform XML to dict first and then validate the dict with colander.

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

Sidebar

Related Questions

Should be simple enough but I can't see it. You can find out the
should be a easy one but I want to add say one,one,one or two,two,two
Should application expect the unexpected when fetching data from database? Lets say that we
Should a static class/method/property be used in a unit test development environment, given that
Should we declare the private fields as volatile if the instanced are used in
Should numerical attributes in XML be quoted? <root> <node size=45 /> <foo bar=1.2> <baz
Should I merge those tables into one table? Is there any tricky alternative? Table
Should I include/require_once the parent class that I am extending in PHP? for example
Should the File class be used systematically when dealing with files or are there
Should immediate=true never be used when dealing with an AJAXified JSF 2.0 component? The

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.