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.webservices        back       

Thread Index
  1    Dave T
          2    Adrian Moore
          3    Adrian Moore
          4    Adrian Moore
          5    Adrian Moore
                 6    Dave T
                 7    Dave T
                 8    Dave T
                 9    Dave T
                 10    Adrian Moore
                 11    Adrian Moore
                 12    Adrian Moore
                 13    Adrian Moore


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:  

Re: Namespace Declaration   
Hi

Have you considered this...

Dim XmlWithoutNS as String = 
_DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)

Hope this helps
Ad.

"Dave T"  wrote in message 
news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...

>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:Tue, 21 Aug 2007 06:23:11 -0600   Author:  

Re: Namespace Declaration   
Hi

Have you considered this...

Dim XmlWithoutNS as String = 
_DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)

Hope this helps
Ad.

"Dave T"  wrote in message 
news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...

>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:Tue, 21 Aug 2007 06:23:11 -0600   Author:  

Re: Namespace Declaration   
Hi

Have you considered this...

Dim XmlWithoutNS as String = 
_DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)

Hope this helps
Ad.

"Dave T"  wrote in message 
news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...

>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:Tue, 21 Aug 2007 06:23:11 -0600   Author:  

Re: Namespace Declaration   
Hi

Have you considered this...

Dim XmlWithoutNS as String = 
_DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)

Hope this helps
Ad.

"Dave T"  wrote in message 
news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...

>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:Tue, 21 Aug 2007 06:23:11 -0600   Author:  

Re: Namespace Declaration   
That does it.  I sure am curious though why I couldn't get it done with my 
other calls.  Thanks

"Adrian Moore" wrote:


> Hi
> 
> Have you considered this...
> 
> Dim XmlWithoutNS as String = 
> _DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)
> 
> Hope this helps
> Ad.
> 
> "Dave T"  wrote in message 
> news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...
> >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:Tue, 21 Aug 2007 07:04:03 -0700   Author:  

Re: Namespace Declaration   
That does it.  I sure am curious though why I couldn't get it done with my 
other calls.  Thanks

"Adrian Moore" wrote:


> Hi
> 
> Have you considered this...
> 
> Dim XmlWithoutNS as String = 
> _DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)
> 
> Hope this helps
> Ad.
> 
> "Dave T"  wrote in message 
> news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...
> >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:Tue, 21 Aug 2007 07:04:03 -0700   Author:  

Re: Namespace Declaration   
That does it.  I sure am curious though why I couldn't get it done with my 
other calls.  Thanks

"Adrian Moore" wrote:


> Hi
> 
> Have you considered this...
> 
> Dim XmlWithoutNS as String = 
> _DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)
> 
> Hope this helps
> Ad.
> 
> "Dave T"  wrote in message 
> news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...
> >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:Tue, 21 Aug 2007 07:04:03 -0700   Author:  

Re: Namespace Declaration   
That does it.  I sure am curious though why I couldn't get it done with my 
other calls.  Thanks

"Adrian Moore" wrote:


> Hi
> 
> Have you considered this...
> 
> Dim XmlWithoutNS as String = 
> _DALSearchData.GetXml.Replace("xmlns=""""",String.Empty)
> 
> Hope this helps
> Ad.
> 
> "Dave T"  wrote in message 
> news:5066C623-E2CD-434A-994C-3BE63A507241@microsoft.com...
> >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:Tue, 21 Aug 2007 07:04:03 -0700   Author:  

Re: Namespace Declaration   
Dave,

Sometimes the simplest approach works best.

Ad.


> That does it.  I sure am curious though why I couldn't get it done with my
> other calls.  Thanks
Date:Thu, 23 Aug 2007 06:50:00 -0600   Author:  

Re: Namespace Declaration   
Dave,

Sometimes the simplest approach works best.

Ad.


> That does it.  I sure am curious though why I couldn't get it done with my
> other calls.  Thanks
Date:Thu, 23 Aug 2007 06:50:00 -0600   Author:  

Re: Namespace Declaration   
Dave,

Sometimes the simplest approach works best.

Ad.


> That does it.  I sure am curious though why I couldn't get it done with my
> other calls.  Thanks
Date:Thu, 23 Aug 2007 06:50:00 -0600   Author:  

Re: Namespace Declaration   
Dave,

Sometimes the simplest approach works best.

Ad.


> That does it.  I sure am curious though why I couldn't get it done with my
> other calls.  Thanks
Date:Thu, 23 Aug 2007 06:50:00 -0600   Author:  

Google
 
Web dotnetnewsgroup.com


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