VB -> C#: XmlElement conversion not implemented for non-literals
See original GitHub issueInput code
Dim element As XElement = <SetAttribute XPath=<%= entry.Code %>></SetAttribute>
Erroneous output
XElement element = XElement.Parse("<SetAttribute XPath=<%= entry.Code %>></SetAttribute>");
Expected output
XElement element = new XElement("SetAttribute", new XAttribute("XPath", entry.Code));
Details
Product in use: e.g. web converter
Version in use: newest
Any other relevant information to the issue, or your interest in contributing a fix.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Why does XmlNode to XmlElement works in VB
SelectSingleNode("ui/initial_focus_fields");. Now to resolve this I cast as an XmlElement, but why would that work in vb and not in C#?.
Read more >cannot convert from string to System.Xml.XmlNode error
You have an XmlNode and you get its OuterXml , which is a string , and you then pass that to the XmlElement.AppendChild...
Read more >Pattern-Based XML Literals · Issue #483 · dotnet/vblang
Rather than produce an XElement , this literal produces a strongly-typed ContentPage object initialized correctly with the expected descendants.
Read more >VB: Conversion for ParenthesizedVariableDesignation not ...
CONVERSION ERROR: Conversion for ParenthesizedVariableDesignation not implemented, please report this issue in '(oldValue, newValue)' at ...
Read more >XmlConvert Class (System.Xml)
Encodes and decodes XML names, and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am starting on this issue now.
Also, if I understand the rules correctly
becomes