Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how do i read a certain node from xml

Featured Replies

i have an xml that i read the item tage every time

in the end o the exml i have an <errorCode> tage ! how can i check that's it's there and read it's value? (i dont get that errorCode always but in certain condition's which i dont control!) :

<item xsi:type="ns2:DRSpecData">

<DRType xsi:type="xsd:string"></DRType>

<fax xsi:type="xsd:string"> 04-6560111</fax>

<FName xsi:type="xsd:string"> &#1488;&#1489;&#1512;&#1492;&#1501;</FName>

<plcType xsi:type="xsd:string">&#1495;</plcType>

<licID xsi:type="xsd:string">14335</licID>

&#1506;&#1510;&#1502;&#1493;&#1503;</streetName>

<plcNo xsi:type="xsd:string">1356</plcNo>

<zip xsi:type="xsd:string"></zip>

<phone2 xsi:type="xsd:string"></phone2>

<phone1 xsi:type="xsd:string"> 04-6570030</phone1>

</item>

</DRSpecDataArray><errorCode xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:type="xsd:string">8</errorCode></ROOT>

- thanks in advance peleg!

  • 1 month later...

Sure!

<xsl:value-of select="/ROOT/errorCode" /> will give you the value "8" in your example.

If you don't have the element, then no value (empty) will be returned.

  • 1 month later...
  • Author

cool thnaks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.