EDN Admin
Well-known member
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Hello guys,
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
I want to create XML like this in a loop because I dont know how much data is in my list. I could not find an example, all samples are for pre-defined number of data.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
So, XML should look like this:
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<pre class="prettyprint <AM>
<HM>
<FullName>aaa</FullName>
<ShortName>aa</ShortName>
<Code>1</Code>
</HM>
<HM>
<FullName>aaa</FullName>
<ShortName>aa</ShortName>
<Code>2</Code>
</HM>
</AM>[/code]
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
There is only one AM buth a lot of HMs. I store them in a list.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
I have tried with Exlement.Add but I get an non-closed element like <HM> and not </HM>.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Please help.
<br/>
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
View the full article
Hello guys,
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
I want to create XML like this in a loop because I dont know how much data is in my list. I could not find an example, all samples are for pre-defined number of data.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
So, XML should look like this:
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<pre class="prettyprint <AM>
<HM>
<FullName>aaa</FullName>
<ShortName>aa</ShortName>
<Code>1</Code>
</HM>
<HM>
<FullName>aaa</FullName>
<ShortName>aa</ShortName>
<Code>2</Code>
</HM>
</AM>[/code]
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
There is only one AM buth a lot of HMs. I store them in a list.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
I have tried with Exlement.Add but I get an non-closed element like <HM> and not </HM>.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Please help.
<br/>
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
View the full article