473,373 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,373 software developers and data experts.

HOWTO Overcome missing namespace declaration in root node

I am having a problem deserializing XML when the root node is missing a
namespace declaration. My Type has an XmlTypeAttribute with a namespace
defined. If I attempt to deserialize the XML, I get the dreaded

<elementname xmlns=''> was not expected

exception. If I comment out the XmlTypeAttribute, it works just fine. Just
so you know, when I instantiate an instance of an XmlSerializer, I pass a
default namespace to the ctor. Unfortunately that doesn't seem to work.

So, how can I get the XmlSerializer to accept XML that is missing namespace
declarations?

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT
Nov 12 '05 #1
6 8301
David,

Can you post:

* The serialization class
* the tag of the root element, including all namespace definitions
* the line of code where you instantiate the XmlSerializer

--
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I am having a problem deserializing XML when the root node is missing a
namespace declaration. My Type has an XmlTypeAttribute with a namespace
defined. If I attempt to deserialize the XML, I get the dreaded

<elementname xmlns=''> was not expected

exception. If I comment out the XmlTypeAttribute, it works just fine. Just so you know, when I instantiate an instance of an XmlSerializer, I pass a
default namespace to the ctor. Unfortunately that doesn't seem to work.

So, how can I get the XmlSerializer to accept XML that is missing namespace declarations?

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT

Nov 12 '05 #2
Chris,
Look inline below:

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh Daily™
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:eN*************@TK2MSFTNGP12.phx.gbl...
David,

Can you post:

* The serialization class
[System.Xml.Serialization.XmlTypeAttribute(Namespac e=TransferManifest.DEFAUL
T_NAMESPACE)]
[System.Xml.Serialization.XmlRootAttribute(Namespac e=TransferManifest.DEFAUL
T_NAMESPACE, IsNullable=false, ElementName="transfermanifest")]
public class TransferManifest {

public const string DEFAULT_NAMESPACE =
"http://codenoevil.com/TransferManifest.xsd";

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

#region XML (de)serialization code
public static TransferManifest ReadXml(string xml)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest));

xmlSerializer.UnknownNode+= new
XmlNodeEventHandler(XmlSerializer_UnknownNode);
xmlSerializer.UnknownAttribute+= new
XmlAttributeEventHandler(XmlSerializer_UnknownAttr ibute);

try
{
TransferManifest transferManifest =
(TransferManifest)xmlSerializer.Deserialize(
new StringReader(xml)
);

return transferManifest;
}
catch(Exception ex)
{
throw new ApplicationException("TransferManifest failed to deserialize: "
+ ex.Message, ex);
}
}

public static string WriteXml(TransferManifest transferManifest)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest), DEFAULT_NAMESPACE);

StringWriter stringWriter = new StringWriter();

xmlSerializer.Serialize(stringWriter, transferManifest);

return stringWriter.ToString();
}

private static void XmlSerializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
Debug.WriteLine("Unknown Node:" + e.Name + "\t" + e.Text);
}

private static void XmlSerializer_UnknownAttribute
(object sender, XmlAttributeEventArgs e)
{
System.Xml.XmlAttribute attr = e.Attr;
Debug.WriteLine("Unknown attribute " +
attr.Name + "='" + attr.Value + "'");
}
#endregion
}

* the tag of the root element, including all namespace definitions
<transfermanifest>
* the line of code where you instantiate the XmlSerializer
Look inside the WriteXml() method above.

--
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I am having a problem deserializing XML when the root node is missing a
namespace declaration. My Type has an XmlTypeAttribute with a namespace
defined. If I attempt to deserialize the XML, I get the dreaded

<elementname xmlns=''> was not expected

exception. If I comment out the XmlTypeAttribute, it works just fine.

Just
so you know, when I instantiate an instance of an XmlSerializer, I pass a default namespace to the ctor. Unfortunately that doesn't seem to work.

So, how can I get the XmlSerializer to accept XML that is missing

namespace
declarations?

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT


Nov 12 '05 #3
David,

The code you posted works fine for me with this code:

TransferManifest mfst = new TransferManifest();
string xml = TransferManifest.WriteXml( mfst );
mfst = TransferManifest.ReadXml( xml );

but I removed the three array type properties

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

because I didn't have the class definitions.

The root element

<transfermanifest>

you posted would not deserialize because it's missing the XML namespace that
you declared with the XmlRoot and XmlType attributes. The root element needs
a namespace declaration like this:

<transfermanifest xmlns=http://codenoevil.com/TransferManifest.xsd>

which your code produces.

You could either post more code, or follow the instructions at [0] on how to
debug deserialization.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Chris,
Look inline below:

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:eN*************@TK2MSFTNGP12.phx.gbl...
David,

Can you post:

* The serialization class

[System.Xml.Serialization.XmlTypeAttribute(Namespac e=TransferManifest.DEFAUL T_NAMESPACE)]
[System.Xml.Serialization.XmlRootAttribute(Namespac e=TransferManifest.DEFAUL T_NAMESPACE, IsNullable=false, ElementName="transfermanifest")]
public class TransferManifest {

public const string DEFAULT_NAMESPACE =
"http://codenoevil.com/TransferManifest.xsd";

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

#region XML (de)serialization code
public static TransferManifest ReadXml(string xml)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest));

xmlSerializer.UnknownNode+= new
XmlNodeEventHandler(XmlSerializer_UnknownNode);
xmlSerializer.UnknownAttribute+= new
XmlAttributeEventHandler(XmlSerializer_UnknownAttr ibute);

try
{
TransferManifest transferManifest =
(TransferManifest)xmlSerializer.Deserialize(
new StringReader(xml)
);

return transferManifest;
}
catch(Exception ex)
{
throw new ApplicationException("TransferManifest failed to deserialize: " + ex.Message, ex);
}
}

public static string WriteXml(TransferManifest transferManifest)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest), DEFAULT_NAMESPACE);

StringWriter stringWriter = new StringWriter();

xmlSerializer.Serialize(stringWriter, transferManifest);

return stringWriter.ToString();
}

private static void XmlSerializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
Debug.WriteLine("Unknown Node:" + e.Name + "\t" + e.Text);
}

private static void XmlSerializer_UnknownAttribute
(object sender, XmlAttributeEventArgs e)
{
System.Xml.XmlAttribute attr = e.Attr;
Debug.WriteLine("Unknown attribute " +
attr.Name + "='" + attr.Value + "'");
}
#endregion
}

* the tag of the root element, including all namespace definitions
<transfermanifest>
* the line of code where you instantiate the XmlSerializer


Look inside the WriteXml() method above.

--
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I am having a problem deserializing XML when the root node is missing a namespace declaration. My Type has an XmlTypeAttribute with a namespace defined. If I attempt to deserialize the XML, I get the dreaded

<elementname xmlns=''> was not expected

exception. If I comment out the XmlTypeAttribute, it works just fine.

Just
so you know, when I instantiate an instance of an XmlSerializer, I pass a
default namespace to the ctor. Unfortunately that doesn't seem to

work.
So, how can I get the XmlSerializer to accept XML that is missing

namespace
declarations?

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT



Nov 12 '05 #4
Chris,
I am well aware of _why_ the exception occurs. Now I need a way to work
around it. How can I provide a "hint" to the XmlSerializer that if the root
node has either an empty xmlns, or none at all, that the root node namespace
_should_ be something, and it's OK if the node is missing the declaration.

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh Daily™
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
David,

The code you posted works fine for me with this code:

TransferManifest mfst = new TransferManifest();
string xml = TransferManifest.WriteXml( mfst );
mfst = TransferManifest.ReadXml( xml );

but I removed the three array type properties

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

because I didn't have the class definitions.

The root element

<transfermanifest>

you posted would not deserialize because it's missing the XML namespace that you declared with the XmlRoot and XmlType attributes. The root element needs a namespace declaration like this:

<transfermanifest xmlns=http://codenoevil.com/TransferManifest.xsd>

which your code produces.

You could either post more code, or follow the instructions at [0] on how to debug deserialization.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Chris,
Look inline below:

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:eN*************@TK2MSFTNGP12.phx.gbl...
David,

Can you post:

* The serialization class

[System.Xml.Serialization.XmlTypeAttribute(Namespac e=TransferManifest.DEFAUL
T_NAMESPACE)]

[System.Xml.Serialization.XmlRootAttribute(Namespac e=TransferManifest.DEFAUL
T_NAMESPACE, IsNullable=false, ElementName="transfermanifest")]
public class TransferManifest {

public const string DEFAULT_NAMESPACE =
"http://codenoevil.com/TransferManifest.xsd";

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

#region XML (de)serialization code
public static TransferManifest ReadXml(string xml)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest));

xmlSerializer.UnknownNode+= new
XmlNodeEventHandler(XmlSerializer_UnknownNode);
xmlSerializer.UnknownAttribute+= new
XmlAttributeEventHandler(XmlSerializer_UnknownAttr ibute);

try
{
TransferManifest transferManifest =
(TransferManifest)xmlSerializer.Deserialize(
new StringReader(xml)
);

return transferManifest;
}
catch(Exception ex)
{
throw new ApplicationException("TransferManifest failed to

deserialize: "
+ ex.Message, ex);
}
}

public static string WriteXml(TransferManifest transferManifest)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest), DEFAULT_NAMESPACE);

StringWriter stringWriter = new StringWriter();

xmlSerializer.Serialize(stringWriter, transferManifest);

return stringWriter.ToString();
}

private static void XmlSerializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
Debug.WriteLine("Unknown Node:" + e.Name + "\t" + e.Text);
}

private static void XmlSerializer_UnknownAttribute
(object sender, XmlAttributeEventArgs e)
{
System.Xml.XmlAttribute attr = e.Attr;
Debug.WriteLine("Unknown attribute " +
attr.Name + "='" + attr.Value + "'");
}
#endregion
}

* the tag of the root element, including all namespace definitions
<transfermanifest>
* the line of code where you instantiate the XmlSerializer


Look inside the WriteXml() method above.

--
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> I am having a problem deserializing XML when the root node is missing a > namespace declaration. My Type has an XmlTypeAttribute with a namespace > defined. If I attempt to deserialize the XML, I get the dreaded
>
> <elementname xmlns=''> was not expected
>
> exception. If I comment out the XmlTypeAttribute, it works just
fine. Just
> so you know, when I instantiate an instance of an XmlSerializer, I

pass
a
> default namespace to the ctor. Unfortunately that doesn't seem to

work. >
> So, how can I get the XmlSerializer to accept XML that is missing
namespace
> declarations?
>
> --
> --
>
> David B. Bitton
> da***@codenoevil.com
> www.codenoevil.com
>
> Code Made Fresh DailyT
>
>



Nov 12 '05 #5
David,

Now I am with you ... and tha bad news is that the XmlSerializer is not
really intended to do what you're trying to do. From an XML perspective,
you're trying to deserialize two entirely different XML formats. While the
two formats share the same element names, their QNames (name+namespace) are
different. An XmlSerializer is really only good at processing one format.

You may be able to work around this with two serializer instances. One that
you instantiate with

XmlSerializer ser1 = new XmlSerializer( typeof( TransferManifest ) );

and another one that you instantiate with XmlOverrideAttributes supplied to
the constructor:

<notTested>
XmlAttributeOverrides overrides = new XmlAttributeOverrides();
XmlAttributes atts = new XmlAttributes();
// override the XmlType and XmlRoot attributes
atts.XmlType = new XmlTypeAttribute();
atts.XmlRoot = new XmlRootAttribute();
overrides.Add( typeof( TransferManifest ), atts );
XmlSerializer ser2 = new XmlSerializer( typeof( TransferManifest ),
overrides );
</notTested>

then you read the first element of your XML document with an XmlTextReader
to determine if any namespaces are declared.

TransferManifest tm = null;
XmlTextReader reader = new XmlTextReader( new StringReader( xml ) );
if( reader.Read() )
{
if( reader.NamespaceURI = "" )
{
reader.Close();
tm = ser2.Deserialize( new StringReader( xml ) );
}
else
{
reader.Close();
tm = ser1.Deserialize( new StringReader( xml ) );
}
}

Let me know if this works ...
--

Christoph Schittko [MVP, XmlInsider]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
Chris,
I am well aware of _why_ the exception occurs. Now I need a way to work around it. How can I provide a "hint" to the XmlSerializer that if the root node has either an empty xmlns, or none at all, that the root node namespace _should_ be something, and it's OK if the node is missing the declaration.

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
David,

The code you posted works fine for me with this code:

TransferManifest mfst = new TransferManifest();
string xml = TransferManifest.WriteXml( mfst );
mfst = TransferManifest.ReadXml( xml );

but I removed the three array type properties

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

because I didn't have the class definitions.

The root element

<transfermanifest>

you posted would not deserialize because it's missing the XML namespace that
you declared with the XmlRoot and XmlType attributes. The root element

needs
a namespace declaration like this:

<transfermanifest xmlns=http://codenoevil.com/TransferManifest.xsd>

which your code produces.

You could either post more code, or follow the instructions at [0] on how to
debug deserialization.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"David B. Bitton" <da***@codenoevil.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Chris,
Look inline below:

--
--

David B. Bitton
da***@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote
in message news:eN*************@TK2MSFTNGP12.phx.gbl...
> David,
>
> Can you post:
>
> * The serialization class

[System.Xml.Serialization.XmlTypeAttribute(Namespac e=TransferManifest.DEFAUL T_NAMESPACE)]

[System.Xml.Serialization.XmlRootAttribute(Namespac e=TransferManifest.DEFAUL
T_NAMESPACE, IsNullable=false, ElementName="transfermanifest")]
public class TransferManifest {

public const string DEFAULT_NAMESPACE =
"http://codenoevil.com/TransferManifest.xsd";

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("file list")]
public FileList[] FileLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("fold erlist")]
public FolderList[] FolderLists;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("uplo adinfo")]
public UploadInfo[] UploadInfos;

#region XML (de)serialization code
public static TransferManifest ReadXml(string xml)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest));

xmlSerializer.UnknownNode+= new
XmlNodeEventHandler(XmlSerializer_UnknownNode);
xmlSerializer.UnknownAttribute+= new
XmlAttributeEventHandler(XmlSerializer_UnknownAttr ibute);

try
{
TransferManifest transferManifest =
(TransferManifest)xmlSerializer.Deserialize(
new StringReader(xml)
);

return transferManifest;
}
catch(Exception ex)
{
throw new ApplicationException("TransferManifest failed to deserialize:
"
+ ex.Message, ex);
}
}

public static string WriteXml(TransferManifest transferManifest)
{
XmlSerializer xmlSerializer =
new XmlSerializer(typeof(TransferManifest), DEFAULT_NAMESPACE);

StringWriter stringWriter = new StringWriter();

xmlSerializer.Serialize(stringWriter, transferManifest);

return stringWriter.ToString();
}

private static void XmlSerializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
Debug.WriteLine("Unknown Node:" + e.Name + "\t" + e.Text);
}

private static void XmlSerializer_UnknownAttribute
(object sender, XmlAttributeEventArgs e)
{
System.Xml.XmlAttribute attr = e.Attr;
Debug.WriteLine("Unknown attribute " +
attr.Name + "='" + attr.Value + "'");
}
#endregion
}
> * the tag of the root element, including all namespace definitions

<transfermanifest>

> * the line of code where you instantiate the XmlSerializer

Look inside the WriteXml() method above.

>
> --
> Christoph Schittko [MVP]
> Software Architect, .NET Mentor
>
> "David B. Bitton" <da***@codenoevil.com> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
> > I am having a problem deserializing XML when the root node is

missing
a
> > namespace declaration. My Type has an XmlTypeAttribute with a

namespace
> > defined. If I attempt to deserialize the XML, I get the dreaded
> >
> > <elementname xmlns=''> was not expected
> >
> > exception. If I comment out the XmlTypeAttribute, it works just

fine. > Just
> > so you know, when I instantiate an instance of an XmlSerializer, I

pass
a
> > default namespace to the ctor. Unfortunately that doesn't seem to

work.
> >
> > So, how can I get the XmlSerializer to accept XML that is missing
> namespace
> > declarations?
> >
> > --
> > --
> >
> > David B. Bitton
> > da***@codenoevil.com
> > www.codenoevil.com
> >
> > Code Made Fresh DailyT
> >
> >
>
>



Nov 12 '05 #6
Hi David,

I agree with Chris on this. Since you're serializing two Xml documents with
different formats, I think you have to create two serializers to get them
work. For workaround, Chris has provided us with a good example. If
anything is unclear, please feel free to reply to the post. I'll try my
best to help.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: insane79 | last post by:
Hi, i have one problem with an xsl trasformation (I'm using Xalan) The source XML document is the following: <?xml version = '1.0' encoding = 'ISO-8859-1'?> <ROOT...
6
by: JoostV | last post by:
How can I set the default namespace of an XmlDocument/XmlElement? I've tried doing something like rootElement.SetAttribute( "xmlns", "http://www.w3.org/2000/xmlns/",...
6
by: Nikhil Patel | last post by:
Hi all, Following is a portion of an XML document. I need to remove all nodes that belong to ns0 without deleting their child nodes. So in the following example , I want to delete "ns0:Proposal"...
1
by: Dorte | last post by:
Hi, From an ASP.NET application I am loading an xml-file in order to modify it. This is part of the code I have produced so far: XmlDocument XMLDoc = new XmlDocument(); XmlNamespaceManager...
2
by: Joe Bloggs | last post by:
Hi, I am trying to remove the namespace in the root node in the following XML, <ordersHistory xmlns="http://tempuri.org/Orders.xsd"> <order number="PO-1" added="12/12/2002"> <client...
4
by: Karine Bosch | last post by:
Hi, My xml document uses different namespaces: <x:root xmlns:x="x:ns:meta/"> <element1 xmlns:adam="http://ns.alfaprint.be/"> </root> This gives problems when using an XPath query. I...
8
by: Simon Brooke | last post by:
I was debugging a new XML generator tonight and trying to determine why it wasn't working; and realised my dom printer does not output XML namespace declarations. My method to output an Element...
11
by: Michael Bray | last post by:
I'm playing around with XElement stuff, and I've come across a difficulty. The XML document that I'm reading contains an xmlns declaration on the main node... <root xmlns="http://www.me.com">...
1
by: farseerfc | last post by:
Hi, everyone here loves C++; As a student studying data structure, I'm writting a single list (with only one pointer to identity the next node in its node struct) simulating std::list like: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.