microsoft / XmlNotepad

XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents.
https://microsoft.github.io/XmlNotepad/
MIT License
968 stars 207 forks source link

Introducing Namespace-aware XML Parsing and Manipulation with XmlHelpers #315

Closed Jvr2022 closed 1 year ago

Jvr2022 commented 1 year ago

This pull request includes various bug fixes, new features, and code improvements to the XmlHelpers class in the XmlNotepad namespace. The changes aim to enhance the functionality, readability, and maintainability of the code. The key improvements and additions include:

Resolved bugs related to namespace handling, including missing namespace detection and generation of namespace declarations.

Added support for the GetNamespaceScope method, which retrieves the namespace scope of a given XML node.

Refactored the code for better readability and clarity.

Removed unnecessary code duplication and improved code organization.