DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 13:26:02 -0700,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    Dave T


Namespace Declaration   
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
Date:Mon, 20 Aug 2007 13:26:02 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us