• Resolved kawo83

    (@kawo83)


    Hello, I have bought wp all import with woocommerce and i need access a value in the following xml format. The xml has properties i need to use to map it to individual fields.

    I want set indiviual field _woosea_gender to value of <propid>41</propid> (Männer/Frauen etc.)

    
        <properties>
          <prop>
            <propid>144</propid>
            <property>Benutzerlevel</property>
            <valueid>796</valueid>
            <values>
              <value>
                <id>796</id>
                <title>More Experienced</title>
              </value>
            </values>
            <value>More Experienced</value>
          </prop>
          <prop>
            <propid>41</propid>
            <property>Geeignet für</property>
            <valueid>230</valueid>
            <values>
              <value>
                <id>230</id>
                <title>Männer</title>
              </value>
            </values>
            <value>Männer</value>
          </prop>
          <prop>
            <propid>25</propid>
            <property>Farbe</property>
            <valueid>209</valueid>
            <values>
              <value>
                <id>209</id>
                <title>Schwarz</title>
              </value>
            </values>
            <value>Schwarz</value>
          </prop>
        </properties>
    

    The <prop> element is on a different number in each item, so I can’t just drag and drop it to my field. I need to access the <value> of the <prop> element by the <propid>. The <propid> is always the same for the value I need to use in my custom attribute field.

    Thanks for any help

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Access a specific value in xml file’ is closed to new replies.