Saturday, November 10, 2012

XML with Name-Value Pair

To retrieve the value from name-value pair xml as presented below -


<Parameters>
  <Item>
    <Name>Guid</Name>
    <Value>20101130121706</Value>
  </Item>
  <Item>
    <Name>Timestamp</Name>
    <Value>20101130121604</Value>
  </Item>
  <Item>
    <Name>TimeofArrival</Name>
    <Value>20101130161705</Value>
  </Item>
  <Item>
    <Name>Part</Name>
    <Value>20101130161236</Value>
  </Item>
  <Item>
    <Name>SiteID</Name>
    <Value>1520537</Value>
  </Item>
</Parameters>

Use the xpath - /Parameters/Item[Name='Guid']/Value

4 comments:

  1. Very helpful! Real-world ui ux design classes
    projects make learning design faster and more effective.

    ReplyDelete
  2. An iOS mobile app development course focuses on complete app creation. It explains design and logic. Practice improves expertise. Projects enhance skills. This ios mobile app development course supports careers. It is reliable.

    ReplyDelete
  3. An ios app development class offers instructor-led training with practical demos. It improves understanding through projects. This ios app development class supports learning clarity. It is effective.

    ReplyDelete
  4. "Fantastic read! Master the principles of ui design classes online
    with hands-on projects and learn to create intuitive, engaging interfaces that users love."

    ReplyDelete

Demystifying OIC, OCI and Oracle SOA CS

What is OIC (Oracle integration cloud), OCI (Oracle cloud infrastructure), and SOA cloud service and how they are different? - This has bee...