How to create Django Models based on DTD file/XML -
i new xml , dtd files. need on how create models in order upload xml file in it. files have work can found under these 2 links:
the dtd file looks this:
<?xml version="1.0" encoding="utf-8"?> <!element whole (entity+)> <!attlist whole date cdata #required > <!element entity (name+, address*, birth*, passport*, citizen*)> <!attlist entity id cdata #required type (e | p) #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied remark cdata #implied > <!element name (lastname?, firstname?, middlename?, wholename?, gender?, title?, function?, language?)> <!attlist name id cdata #required entity_id cdata #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied > <!element lastname (#pcdata)> <!element firstname (#pcdata)> <!element middlename (#pcdata)> <!element wholename (#pcdata)> <!element gender (#pcdata)> <!element title (#pcdata)> <!element function (#pcdata)> <!element language (#pcdata)> <!element address (number?, street?, zipcode?, city?, country?, other?)> <!attlist address id cdata #required entity_id cdata #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied > <!element number (#pcdata)> <!element street (#pcdata)> <!element zipcode (#pcdata)> <!element city (#pcdata)> <!element country (#pcdata)> <!element other (#pcdata)> <!element birth (date?, place?, country?)> <!attlist birth id cdata #required entity_id cdata #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied > <!element date (#pcdata)> <!element place (#pcdata)> <!element passport (number?, country?)> <!attlist passport id cdata #required entity_id cdata #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied > <!element citizen (country?)> <!attlist citizen id cdata #required entity_id cdata #required legal_basis cdata #implied reg_date cdata #implied pdf_link cdata #implied programme cdata #implied >
so if me model creation in order upload xml file using dtd, owe lot!
thank you!
Comments
Post a Comment