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:
|