G
George
I need to desearilize following XML
<QUOTE>
.....
<aaia:Line>
<LineNumber>1</LineNumber>
.....
</aaia:Line>
.....
</QUOTE>
The problem is that I had to specify that object Line has a namespace. But the LineNumber does not. For what eve reason the parser looking for namespace prefixed LineNumber too. Meaning that when i prefix the LineNumber tag with "aaia" it works but without it the parser does not read the value "1".
How do i tell the parser that it should not look for "aaia" in front of LineNumber?
I have following classes for it.
public class clsQuote
{
[System.Xml.Serialization.XmlElementAttribute(ElementName="Line", Namespace="aaia")]
public clsQuoteLine[] Lines;
};
public class clsAddRequestForQuoteLine
{
public int LineNumber;
}
thanks
George
<QUOTE>
.....
<aaia:Line>
<LineNumber>1</LineNumber>
.....
</aaia:Line>
.....
</QUOTE>
The problem is that I had to specify that object Line has a namespace. But the LineNumber does not. For what eve reason the parser looking for namespace prefixed LineNumber too. Meaning that when i prefix the LineNumber tag with "aaia" it works but without it the parser does not read the value "1".
How do i tell the parser that it should not look for "aaia" in front of LineNumber?
I have following classes for it.
public class clsQuote
{
[System.Xml.Serialization.XmlElementAttribute(ElementName="Line", Namespace="aaia")]
public clsQuoteLine[] Lines;
};
public class clsAddRequestForQuoteLine
{
public int LineNumber;
}
thanks
George