We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is not possible to identify and manipulate XText nodes without breaking the original whitespace formatting.
XText
Using XDocument.Parse(String),
XDocument.Parse(String)
… XText nodes can correctly be identified, but whitespace formatting is broken, i.e., whitespace is unsolicitedly added.
Using XDocument.Parse(String, LoadOptions.PreserveWhitespace),
XDocument.Parse(String, LoadOptions.PreserveWhitespace)
… significant XText nodes can not correctly be identified and segregated from insignificant whitespace XText nodes.
See this MRE:
https://github.com/SetTrend/XDocument-MRE
It should be possible to identify and manipulate significant XText nodes without breaking the original whitespace formatting.
See MRE.
.NET 9.0 on Windows 10x64.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-xml See info in area-owners.md if you want to be subscribed.
Sorry, something went wrong.
No branches or pull requests
Description
.NET Runtime System.Xml.Linq.XDocument Issue
It is not possible to identify and manipulate
XText
nodes without breaking the original whitespace formatting.Using
XDocument.Parse(String)
,… XText nodes can correctly be identified, but whitespace formatting is broken, i.e., whitespace is unsolicitedly added.
Using
XDocument.Parse(String, LoadOptions.PreserveWhitespace)
,… significant
XText
nodes can not correctly be identified and segregated from insignificant whitespaceXText
nodes.Reproduction Steps
See this MRE:
https://github.com/SetTrend/XDocument-MRE
Expected behavior
It should be possible to identify and manipulate significant
XText
nodes without breaking the original whitespace formatting.Actual behavior
See MRE.
Configuration
.NET 9.0 on Windows 10x64.
The text was updated successfully, but these errors were encountered: