All Questions
Tagged with xmlobject-oriented
17 questions
6votes
2answers
2kviews
Parsing XML commands and parameters
I'm C# programmer and started Python recently for a new project. This is a part of my project, and I want your opinion about my code and if it's clean or dirty, too long, has duplicate code, or it's ...
5votes
1answer
81views
Refactoring a class that counts xml dom nodes and caches the result
I saw this entertaining talk by: Bob Martin on clean code and started refactoring a relatively simple class today. I am, by no means, an expert on coding and still learning a lot every day, so I want ...
3votes
3answers
3kviews
XML serialization helper class
Yesterday was JSON serialization, today is XML serialization. I've taken some of the suggestions from there and made modifications, as well as making other modifications that were not suggested but ...
3votes
2answers
467views
PHP Weather class
I am kind of new to object orientation in PHP and I need some experts feedback. This class fetches the weather from this URL. It grabs the weather, temperature and an icon from the current hour. Is ...
3votes
2answers
201views
Loading items from XML document
I'm making a game in Unity and I need to have a inventory/item system, I decided to store my items in simple XML document which I later read from. I'm planning to have different varieties of items and ...
3votes
1answer
508views
Best practice to create XML messages with DOMDocument class in PHP
I want to create XML messages for webservice communication. These messages should be created from a pool of reusable elements. Therefore I have created different classes. A "factory" class, that only ...
3votes
1answer
64views
Documenting and commenting code using xml tags
I am going to rewrite my AddIn I made for the Autodesk Inventor software. It is supposed to do specific task that are not available by default in the program. I am not a programmer but a draftsman ...
3votes
1answer
641views
Generating Settings Objects from Database via Factory Class
In an ASP.NET MVC application (C#) have a factory-like class that generates settings objects of ISettingType for my application. However, some settings are very ...
3votes
0answers
72views
OOP parsing for DB dump XML Python
I am parsing large XML (DB dump). So, the content looks like many different objects with their properties and dependencies (foreign keys). My way to do it - using lxml.etree (iterparse): ...
2votes
1answer
638views
Printing results in XML
I have been writing PHP programs in the MVC pattern for quite some time. But I am not sure if I am doing it right. For instance, I have this PHP file that prints results in XML, and I put this file ...
2votes
1answer
339views
ETL project, handling XML, CSV, and text files
I have completed an ETL project to collect, parse and load files. I decided to make it clean OOP way using interfaces and abstract, but have some questions below. ...
2votes
1answer
114views
Creating objects from xml-data
I've got an XML file with some info about hosts connected to my home network and I would like to create objects containing that info in a neat way, so that I can make some nice front-end application ...
2votes
1answer
124views
Modern HTTP-Requests for login/register system
I am working on a login/register system and want the register and log in process as smooth as possible. One way of making it smoother is in my opinion to make a multi-step login/register. What I ...
2votes
1answer
98views
PHP RSS/XML reader basic class
I write this class to process and output xml/rss feeds. I'm still working on, but any suggestion will be appreciated. As a little trick if the xml file come from an online resource, I've added a ...
1vote
2answers
235views
Synchronizer for importing XML files into a database when folder content changes
I have created a Synchronizer, the purpose of which is to read data from an XML source file and store the result in a DB. I have different source types, for example Student.XML, School.XML, etc. ...