KirillOsenkov / XmlParser

A Roslyn-inspired full-fidelity XML parser with no dependencies and a simple Visual Studio XML language service
Apache License 2.0
328 stars 49 forks source link

About IXmlElement interface #14

Closed jan-johansson-mr closed 7 years ago

jan-johansson-mr commented 7 years ago

Hi there,

I'll suggest an easy extension, but that contributes much, to the interface: the inclusion of Prefix. I often want to know the prefix with an element, but prefix is not available through the interface (so I have to downcast to get the prefix - and get it, if a prefix is available).

If you think it's a good suggestion, I'll can implement it for you, and put a pull request.

Kind regards, Jan

Hi again,

Just realized that by using 'AsSyntaxElement', I can get the 'IXmlElementSyntax' interface, where I indeed have the 'prefix' available...

Thanks, Jan