Click here to Skip to main content
15,906,567 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionUsing SAX and PHP Pin
vho12318-May-10 20:22
vho12318-May-10 20:22 
QuestionXSLT and asp.NET mixture Pin
ceviz16-May-10 13:02
ceviz16-May-10 13:02 
AnswerRe: XSLT and asp.NET mixture Pin
Not Active16-May-10 17:08
mentorNot Active16-May-10 17:08 
AnswerRe: XSLT and asp.NET mixture Pin
Atwind27-Jun-10 23:42
Atwind27-Jun-10 23:42 
Questionlanguage localization using XML in VC++ (MFC) Pin
punyah20108-May-10 9:03
punyah20108-May-10 9:03 
QuestionSuppress Xmlns in InnerXML / Rename an XML node in DOM Pin
Ger Hayden6-May-10 11:37
Ger Hayden6-May-10 11:37 
AnswerRe: Suppress Xmlns in InnerXML / Rename an XML node in DOM Pin
Ger Hayden8-May-10 7:24
Ger Hayden8-May-10 7:24 
QuestionParsing RSS Pin
Aljaz1116-May-10 3:37
Aljaz1116-May-10 3:37 
AnswerRe: Parsing RSS Pin
Stuart Dootson6-May-10 23:24
professionalStuart Dootson6-May-10 23:24 
QuestionXSLT to HTML Pin
vho12329-Apr-10 21:46
vho12329-Apr-10 21:46 
AnswerRe: XSLT to HTML Pin
Stuart Dootson6-May-10 1:00
professionalStuart Dootson6-May-10 1:00 
QuestionCan anyone give me a hand with this? Pin
ajweber27-Apr-10 19:20
ajweber27-Apr-10 19:20 
AnswerRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 0:54
mentorNot Active28-Apr-10 0:54 
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 

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.