Click here to Skip to main content
15,886,035 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 5:59
ajweber28-Apr-10 5:59 
GeneralRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 6:10
mentorNot Active28-Apr-10 6:10 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 6:17
ajweber28-Apr-10 6:17 
GeneralRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 6:31
mentorNot Active28-Apr-10 6:31 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 6:52
ajweber28-Apr-10 6:52 
QuestionDesperate seeking answer to simple problem Pin
Axiom70m27-Apr-10 5:45
Axiom70m27-Apr-10 5:45 
AnswerRe: Desperate seeking answer to simple problem Pin
Not Active27-Apr-10 6:57
mentorNot Active27-Apr-10 6:57 
GeneralRe: Desperate seeking answer to simple problem [modified] Pin
Axiom70m27-Apr-10 7:47
Axiom70m27-Apr-10 7:47 
Hi, Thanks for you message. Here's the XML file:

<AfasGetConnector>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="AfasGetConnector">
      <xs:complexType>
        <xs:choice maxOccurs="unbounded">
          <xs:element name="MNINT_Summary">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Itemtype" type="xs:string" minOccurs="0" />
                etc etc
                <xs:element name="Afbeelding_in_Summary" type="xs:boolean" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <MNINT_Summary>
    <Itemtype>2</Itemtype>
    <Itemcode>0401023100</Itemcode>
    <Omschrijving>Tales Legends - The Erzberg</Omschrijving>
    <Gewichtseenheid_code>3</Gewichtseenheid_code>
    <Bruto_gewicht>16</Bruto_gewicht>
    <Bestandsnaam ShowImage="">ERZBERGAVRV.JPG</Bestandsnaam>
    <Artikelcode>3988</Artikelcode>
    <Nominale_waarde>€ 10</Nominale_waarde>
    <Jaartal>2010</Jaartal>
    <Metaal>Silver</Metaal>
    <Kwaliteit>Proof</Kwaliteit>
    <Fijnheid>.925</Fijnheid>
    <Diameter>32</Diameter>
    <Mintage>40000</Mintage>
    <Prijs_5>24</Prijs_5>
    <Prijs_25>22</Prijs_25>
    <Prijs_50>20.75</Prijs_50>
    <Prijs_100>19.9</Prijs_100>
    <Sold_Out>false</Sold_Out>
    <Land>Austria</Land>
    <Logo_mint>AUT</Logo_mint>
    <Gewijzigd_op>2010-03-10</Gewijzigd_op>
    <Aangemaakt_op>2009-10-06</Aangemaakt_op>
    <Uitgifte_datum>2010-04-14</Uitgifte_datum>
    <Opnemen_in_Summary>false</Opnemen_in_Summary>
    <Afbeelding_in_Summary>true</Afbeelding_in_Summary>
  </MNINT_Summary>
  <MNINT_Summary>
    <Itemtype>2</Itemtype>
    <Itemcode>0401023400</Itemcode>
    <Omschrijving>Tales Legends - The Erzberg</Omschrijving>
    <Gewichtseenheid_code>3</Gewichtseenheid_code>
    <Bruto_gewicht>16</Bruto_gewicht>
    <Bestandsnaam ShowImage="">ERZBERGAVRV.JPG</Bestandsnaam>
    <Artikelcode>3984</Artikelcode>
    <Nominale_waarde>€ 10</Nominale_waarde>
    <Jaartal>2010</Jaartal>
    <Metaal>Silver</Metaal>
    <Kwaliteit>Unc</Kwaliteit>
    <Fijnheid>.925</Fijnheid>
    <Diameter>32</Diameter>
    <Mintage>130000</Mintage>
    <Prijs_5>12.5</Prijs_5>
    <Prijs_25>11.75</Prijs_25>
    <Prijs_50>11.25</Prijs_50>
    <Prijs_100>11</Prijs_100>
    <Sold_Out>false</Sold_Out>
    <Land>Austria</Land>
    <Logo_mint>AUT</Logo_mint>
    <Gewijzigd_op>2010-03-10</Gewijzigd_op>
    <Aangemaakt_op>2009-10-06</Aangemaakt_op>
    <Uitgifte_datum>2010-04-14</Uitgifte_datum>
    <Opnemen_in_Summary>false</Opnemen_in_Summary>
    <Afbeelding_in_Summary>true</Afbeelding_in_Summary>
  </MNINT_Summary>
  <MNINT_Summary>
    <Itemtype>2</Itemtype>
    <Itemcode>0401024300</Itemcode>
    <Omschrijving>Renewable Energy NIOB</Omschrijving>
    <Gewichtseenheid_code>3</Gewichtseenheid_code>
    <Bruto_gewicht>9.1</Bruto_gewicht>
    <Bestandsnaam ShowImage="">25EErneuerbareEnergieAVRV.JPG</Bestandsnaam>
    <Artikelcode>3983</Artikelcode>
    <Nominale_waarde>25 €</Nominale_waarde>
    <Jaartal>2010</Jaartal>
    <Metaal>Silver</Metaal>
    <Kwaliteit>B.U.</Kwaliteit>
    <Fijnheid>.9</Fijnheid>
    <Diameter>34</Diameter>
    <Mintage>65000</Mintage>
    <Prijs_5>44</Prijs_5>
    <Prijs_25>42.25</Prijs_25>
    <Prijs_50>40.5</Prijs_50>
    <Prijs_100>39.5</Prijs_100>
    <Sold_Out>false</Sold_Out>
    <Land>Austria</Land>
    <Logo_mint>AUT</Logo_mint>
    <Gewijzigd_op>2010-02-03</Gewijzigd_op>
    <Aangemaakt_op>2009-10-06</Aangemaakt_op>
    <Uitgifte_datum>2010-03-10</Uitgifte_datum>
    <Opnemen_in_Summary>false</Opnemen_in_Summary>
    <Afbeelding_in_Summary>true</Afbeelding_in_Summary>
  </MNINT_Summary>
</AfasGetConnector>


I've added an atribute ShowImage in this file. The value should be added based on the gridview's checkboxes.

I don't get errors, it happens that only the last attribute gets a value or none at all.

I get stuck with looping through the gridview checkboxes and the itemcodes in the xml to get the right checkbox value with the right attribute...

This is what I've done so far...
For Each row As GridViewRow In GrdImagesSel.Rows
            Dim cbSi As CheckBox = row.FindControl("chkShowImage")
            'add the Itemcode to the row index
            Dim productID As String = Convert.ToString(GrdImagesSel.DataKe(row.RowIndex).Value)            

There should be some code that matches the productID to the itemcode in the XMLfile and if it matches add the value of the checkbox...
Thanks

modified on Tuesday, April 27, 2010 2:03 PM

GeneralRe: Desperate seeking answer to simple problem Pin
Not Active27-Apr-10 9:41
mentorNot Active27-Apr-10 9:41 
GeneralRe: Desperate seeking answer to simple problem [modified] Pin
Axiom70m27-Apr-10 21:52
Axiom70m27-Apr-10 21:52 
GeneralRe: Desperate seeking answer to simple problem Pin
Not Active28-Apr-10 0:52
mentorNot Active28-Apr-10 0:52 
GeneralRe: Desperate seeking answer to simple problem Pin
Axiom70m28-Apr-10 2:00
Axiom70m28-Apr-10 2:00 
GeneralRe: Desperate seeking answer to simple problem Pin
Axiom70m29-Apr-10 0:16
Axiom70m29-Apr-10 0:16 
QuestionHow ti create sitemap in xml? Pin
JMecier25-Apr-10 0:59
JMecier25-Apr-10 0:59 
AnswerRe: How ti create sitemap in xml? Pin
User 171649225-Apr-10 1:11
professionalUser 171649225-Apr-10 1:11 
GeneralRe: How ti create sitemap in xml? Pin
JMecier27-Apr-10 3:57
JMecier27-Apr-10 3:57 
QuestionWord Formatting Pin
Mahesh Kulkarni14-Apr-10 0:09
Mahesh Kulkarni14-Apr-10 0:09 
Questionbuilding an XML page Pin
Farraj13-Apr-10 5:26
Farraj13-Apr-10 5:26 
AnswerRe: building an XML page Pin
Estys14-Apr-10 1:01
Estys14-Apr-10 1:01 
GeneralRe: building an XML page Pin
Farraj14-Apr-10 1:20
Farraj14-Apr-10 1:20 
GeneralRe: building an XML page Pin
Estys14-Apr-10 2:22
Estys14-Apr-10 2:22 
GeneralRe: building an XML page Pin
Farraj14-Apr-10 6:07
Farraj14-Apr-10 6:07 
GeneralRe: building an XML page Pin
Estys14-Apr-10 22:52
Estys14-Apr-10 22:52 
GeneralRe: building an XML page Pin
Farraj15-Apr-10 0:46
Farraj15-Apr-10 0:46 
AnswerRe: building an XML page Pin
Farraj16-Apr-10 4:26
Farraj16-Apr-10 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.