Friday, December 2, 2011

Re: Django

On 02-12-11 01:39, Victor Hooi wrote:
> Is there an easier way of achieving the main goal - editing XMl
> configuration files through a Django interface? Things I should be aware of?
>

Depends a LOT on the kind of XML files. Are they the document kind,
mixed content all around? Like a HTML file? Or are they the structured
kind with a fixed structure?

Your main problem will probably be mapping the xml structure to a
relational model.

Some brainstorming:

- Look at a nosql backend for Django: a nosql database might store xml
in a more xml-friendly way.

- First convert the xml to json? Might be easier to store?

- Convert the .xsd schema to .rng or something like that: more readable.
And, importantly, easier parseable by a python script: you could write
your own models.py generator this way :-)

- Do you want to store it in separate models or in one big chunk of
xml/json? Depends on how you want to edit.

Reinout

--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment