473,398 Members | 2,212 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,398 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 8310
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: ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.