Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common Interface needed for all node types, to facilitate logging #926

Open
tomwjaw opened this issue Nov 24, 2022 · 3 comments
Open

Common Interface needed for all node types, to facilitate logging #926

tomwjaw opened this issue Nov 24, 2022 · 3 comments

Comments

@tomwjaw
Copy link

tomwjaw commented Nov 24, 2022

I ran into a problem, where I am trying to create logging for checking validity of XML data.
It would be very convenient if all node types and attribute had a common interface or base class, which holds the name, file line number, type identifier and possibly reference to the value, so that a logging function can be made independent of the type being sent for logging. I can implement the change and post back for review.

@leethomason
Copy link
Owner

XMLNode is the common base class.

@tomwjaw
Copy link
Author

tomwjaw commented Jan 18, 2023

Except XMLNode is not a base class for the XMLAttribute

@ajtruckle
Copy link

ajtruckle commented Jan 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants