[Mono-bugs] [Bug 343869] New: XPathNavigator.ValueAs() throws NotImplementedException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Nov 24 00:13:46 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=343869
Summary: XPathNavigator.ValueAs() throws NotImplementedException
Product: Mono: Class Libraries
Version: 1.2.5
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: novell at erik.prutser.cx
QAContact: mono-bugs at ximian.com
CC: novell at erik.prutser.cx
Found By: ---
Description of Problem:
In mono-1.2.5.1 System.Xml.XPath.XPathNavigator.ValueAs(System.Type type,
IXmlNamespaceResolver nsResolver) throws a NotImplementedException. This is a
problem as it breaks our generic XPath querying application that works
perfectly on .Net 2.0.
Steps to reproduce the problem:
1.
Compile and run the attached test application:
$ gmcs ConfigurationDirectory.cs Program.cs -out:test.exe
$ mono test.exe
Unhandled Exception: System.NotImplementedException: The requested feature is
not implemented.
at System.Xml.XPath.XPathNavigator.ValueAs (System.Type type,
IXmlNamespaceResolver nsResolver) [0x00000]
at System.Xml.XPath.XPathItem.ValueAs (System.Type type) [0x00000]
at ConsoleApplication1.ConfigurationDirectory.QueryList[String]
(System.String query, IXmlNamespaceResolver namespaces) [0x00000]
at ConsoleApplication1.Program.Main (System.String[] args) [0x00000]
On .Net the application's XPath query executes properly, selecting 2 elements:
C:\>test.exe
2 elements found.
Actual Results:
XPathNavigator.ValueAs() throws NotImplementedException
Expected Results:
Return the selected element converted to the specified data type.
How often does this happen?
Always.
The attached test app illustrates the problem by loading a namespaced,
schema-validated xml file and running an XPath 1.0 query on it to select
multiple elements and then converting the value of each element to a
configurable type.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list