EDN Admin
Well-known member
<span style="font-size:small <span style="font-size:small
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af Hi;
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af I am trying to access an inner element from
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af this XML -
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af
<span class="x_x_x_m <<span class="x_x_x_t Contents<span class="x_x_x_m >
file:///C:/Documents%20and%20Settings/GORDONGODDARD.DJGR7CD1/Local%20Settings/Temp/VSD1.tmp.XML# -
<span class="x_x_x_m <<span class="x_x_x_t Content<span class="x_x_x_t Name<span class="x_x_x_m =" OADI <span class="x_x_x_m "<span class="x_x_x_t Type<span class="x_x_x_m =" XML <span class="x_x_x_m "<span class="x_x_x_m >
<span class="x_x_x_b <span class="x_x_x_m <<span class="x_x_x_t Data<span class="x_x_x_m ><span class="x_x_x_tx <FORMINFO FORMNUM="1004" FORMVERSION="3-2005" UADVERSION="UAD Version 9/2011" VENDOR="Bradford
Technologies" VERSION="4.5" FILENUM="123456" CASE_NO="" MAINFORM="1004 <SUBJECT><BORROWER></BORROWER><CURRENTOWNER></CURRENTOWNER><COUNTY>Gwinnett</COUNTY><LEGAL><DESCRIPTION>A </DESCRIPTION></LEGAL><ASSESPARCEL><NUM>111222333</NUM></ASSESPARCEL><TAXYEAR>2009</TAXYEAR><RETAXES></RETAXES><NBRHOODPROJNAME>l
<pre class="prettyprint
[/code]
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af I tried decoding the file but this doesnt seem to help -
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff string <span style="font-size:small <span style="font-size:small holdXml =
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af HttpUtility<span style="font-size:small <span style="font-size:small .UrlDecode(xmlData);<span style="font-size:small <span style="font-size:small <span style="font-size:small <span style="font-size:small
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af XmlNodeList<span style="font-size:small <span style="font-size:small elem_YearBuilt = incomingxml_doc.GetElementsByTagName(<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 "YRBUILT"
<span style="font-size:small <span style="font-size:small );
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff if<span style="font-size:small <span style="font-size:small (elem_YearBuilt.Count > 0)<span style="font-size:small <span style="font-size:small
{
YearBuilt = elem_YearBuilt[0].InnerText;
YearBuilt =
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af Regex<span style="font-size:small <span style="font-size:small .Replace(YearBuilt,
<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 @"[^~]"<span style="font-size:small <span style="font-size:small ,<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 ""<span style="font-size:small <span style="font-size:small );<span style="font-size:small <span style="font-size:small
}
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff else<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small <span style="font-size:small
{
YearBuilt =
<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 ""<span style="font-size:small <span style="font-size:small ;<a> <a> <a> <a> <a> <a> <a> <span style="font-size:small <span style="font-size:small
}
<
Thanks for your suggestions !
GeeMann
<br/>
<br/>
<br/>
<br/>
<br/>
View the full article
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af Hi;
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af I am trying to access an inner element from
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af this XML -
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af
<span class="x_x_x_m <<span class="x_x_x_t Contents<span class="x_x_x_m >
file:///C:/Documents%20and%20Settings/GORDONGODDARD.DJGR7CD1/Local%20Settings/Temp/VSD1.tmp.XML# -
<span class="x_x_x_m <<span class="x_x_x_t Content<span class="x_x_x_t Name<span class="x_x_x_m =" OADI <span class="x_x_x_m "<span class="x_x_x_t Type<span class="x_x_x_m =" XML <span class="x_x_x_m "<span class="x_x_x_m >
<span class="x_x_x_b <span class="x_x_x_m <<span class="x_x_x_t Data<span class="x_x_x_m ><span class="x_x_x_tx <FORMINFO FORMNUM="1004" FORMVERSION="3-2005" UADVERSION="UAD Version 9/2011" VENDOR="Bradford
Technologies" VERSION="4.5" FILENUM="123456" CASE_NO="" MAINFORM="1004 <SUBJECT><BORROWER></BORROWER><CURRENTOWNER></CURRENTOWNER><COUNTY>Gwinnett</COUNTY><LEGAL><DESCRIPTION>A </DESCRIPTION></LEGAL><ASSESPARCEL><NUM>111222333</NUM></ASSESPARCEL><TAXYEAR>2009</TAXYEAR><RETAXES></RETAXES><NBRHOODPROJNAME>l
<pre class="prettyprint
[/code]
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af I tried decoding the file but this doesnt seem to help -
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff string <span style="font-size:small <span style="font-size:small holdXml =
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af HttpUtility<span style="font-size:small <span style="font-size:small .UrlDecode(xmlData);<span style="font-size:small <span style="font-size:small <span style="font-size:small <span style="font-size:small
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af XmlNodeList<span style="font-size:small <span style="font-size:small elem_YearBuilt = incomingxml_doc.GetElementsByTagName(<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 "YRBUILT"
<span style="font-size:small <span style="font-size:small );
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff if<span style="font-size:small <span style="font-size:small (elem_YearBuilt.Count > 0)<span style="font-size:small <span style="font-size:small
{
YearBuilt = elem_YearBuilt[0].InnerText;
YearBuilt =
<span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af <span style="font-size:small; color:#2b91af Regex<span style="font-size:small <span style="font-size:small .Replace(YearBuilt,
<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 @"[^~]"<span style="font-size:small <span style="font-size:small ,<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 ""<span style="font-size:small <span style="font-size:small );<span style="font-size:small <span style="font-size:small
}
<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff else<span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small; color:#0000ff <span style="font-size:small <span style="font-size:small
{
YearBuilt =
<span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 <span style="font-size:small; color:#a31515 ""<span style="font-size:small <span style="font-size:small ;<a> <a> <a> <a> <a> <a> <a> <span style="font-size:small <span style="font-size:small
}
<
Thanks for your suggestions !
GeeMann
<br/>
<br/>
<br/>
<br/>
<br/>
View the full article