D
Dave T
I have a typed dataset that I'm returning from a webservice which has the
xmlns="SomeURI" attribute defined
My CLASSIC ASP front end developer can't get her xsl to work with that
namespace declaration so I'm trying to get rid of it. The closest I can get
is xmlns="" and I can do that a hundered different ways.
Does anyone know how to get rid of it all together?
=======================
if it helps, here are the various things I've tried
Private Function GetXMLFromDataset() As System.Xml.XmlDocument
Dim _xml As New System.Xml.XmlDocument
_xml.LoadXml(_DALSearchData.GetXml)
'_xml.DocumentElement.Attributes.RemoveNamedItem("xmlns")
'_xml.DocumentElement.RemoveAttribute("xmlns")
'_xml.Attributes.RemoveNamedItem("xmlns")
'Dim _XMLAttributes As System.Xml.XmlAttributeCollection
'_XMLAttributes = _xml.XmlAttributeCollection
'_XMLAttributes.RemoveNamedItem("xmlns")
'Dim _DocElement As System.Xml.XmlElement = _xml.DocumentElement
'Dim _Attributes As System.Xml.XmlAttributeCollection =
_DocElement.Attributes
'_Attributes(0).RemoveAll()
'If _xml.DocumentElement.NamespaceURI.Length > 0 Then
' _xml.DocumentElement.Attributes.ItemOf(0).RemoveAll()
'End If
'If _xml.DocumentElement.NamespaceURI.Length > 0 Then
' _xml.DocumentElement.SetAttribute("xmlns", Nothing)
'End If
Return _xml
End Function
xmlns="SomeURI" attribute defined
My CLASSIC ASP front end developer can't get her xsl to work with that
namespace declaration so I'm trying to get rid of it. The closest I can get
is xmlns="" and I can do that a hundered different ways.
Does anyone know how to get rid of it all together?
=======================
if it helps, here are the various things I've tried
Private Function GetXMLFromDataset() As System.Xml.XmlDocument
Dim _xml As New System.Xml.XmlDocument
_xml.LoadXml(_DALSearchData.GetXml)
'_xml.DocumentElement.Attributes.RemoveNamedItem("xmlns")
'_xml.DocumentElement.RemoveAttribute("xmlns")
'_xml.Attributes.RemoveNamedItem("xmlns")
'Dim _XMLAttributes As System.Xml.XmlAttributeCollection
'_XMLAttributes = _xml.XmlAttributeCollection
'_XMLAttributes.RemoveNamedItem("xmlns")
'Dim _DocElement As System.Xml.XmlElement = _xml.DocumentElement
'Dim _Attributes As System.Xml.XmlAttributeCollection =
_DocElement.Attributes
'_Attributes(0).RemoveAll()
'If _xml.DocumentElement.NamespaceURI.Length > 0 Then
' _xml.DocumentElement.Attributes.ItemOf(0).RemoveAll()
'End If
'If _xml.DocumentElement.NamespaceURI.Length > 0 Then
' _xml.DocumentElement.SetAttribute("xmlns", Nothing)
'End If
Return _xml
End Function