T
TOMERDR
Hi,
I have the following xml and i need to read all elements and insert
them to a hash table
hash[businessaddresscity]=""
hash[email1address]="(e-mail address removed)"
it seems that the reader is skeeping the password element
string x="<?xml version='1.0'?>" +
"<Document>" +
"<businessaddresscity />"+
"<email1address>[email protected]</email1address>" +
"<department />" +
"<password>{a18505d9-45bd-4772-87f5-3c24d786bd1d}</password>" +
"<companyname />" +
"<businessfaxnumber />" +
"<businessaddresspostalcode />"+
"</Document>";
public void ReadXml(System.Xml.XmlReader reader)
{
while (reader.Read())
{
if (reader.IsStartElement())
{
string propertyName= reader.Name;
reader.Read(); //Read the start tag.
this[propertyName.ToLower()]=reader.ReadString();
}
}
}
I have the following xml and i need to read all elements and insert
them to a hash table
hash[businessaddresscity]=""
hash[email1address]="(e-mail address removed)"
it seems that the reader is skeeping the password element
string x="<?xml version='1.0'?>" +
"<Document>" +
"<businessaddresscity />"+
"<email1address>[email protected]</email1address>" +
"<department />" +
"<password>{a18505d9-45bd-4772-87f5-3c24d786bd1d}</password>" +
"<companyname />" +
"<businessfaxnumber />" +
"<businessaddresspostalcode />"+
"</Document>";
public void ReadXml(System.Xml.XmlReader reader)
{
while (reader.Read())
{
if (reader.IsStartElement())
{
string propertyName= reader.Name;
reader.Read(); //Read the start tag.
this[propertyName.ToLower()]=reader.ReadString();
}
}
}