Several adjustments on filling xml with data
This commit is contained in:
@ -12,6 +12,7 @@ namespace CobXmlSupport
|
||||
private List<RowWord> __wordList;
|
||||
private string __rowSource;
|
||||
private int __startPos;
|
||||
private int __occNum;
|
||||
|
||||
public CobRow(string rowSource)
|
||||
{
|
||||
@ -111,6 +112,18 @@ namespace CobXmlSupport
|
||||
}
|
||||
}
|
||||
|
||||
public int occNum
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.isOccurs)
|
||||
{
|
||||
return __occNum;
|
||||
}
|
||||
else return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public static string checkLongNames(string inStr, int maxLngth=30)
|
||||
{
|
||||
string tmp = inStr;
|
||||
@ -224,6 +237,11 @@ namespace CobXmlSupport
|
||||
if (__wordList[i].ToString().ToLower() == searchVal.ToLower())
|
||||
{
|
||||
tmp = "true";
|
||||
if (__wordList[i + 1].NumVal().Length > 0)
|
||||
{
|
||||
__occNum = int.Parse(__wordList[i + 1].NumVal());
|
||||
}
|
||||
|
||||
i = __wordList.Count;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user