I have a XML file that is managed by other programs, I am writing a web service such that users are able to query this file. In essence i am using a xml based database instead of using sql as the model database in Django.
how do i do this? all the tutorials that i find use a sql database in the backend. is ther开发者_如何学编程e a way to use the xml file as a database.
There's a package to do just this available here. I haven't tried it, but looking through the source, it seems to be doing pretty much what you're asking.
Also the django-xml app gives you a Model interface to your XMLs.
Use XPath with lxml to find specific nodes within the document.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论