Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:14:32+00:00 2026-05-20T11:14:32+00:00

Specifically, given the following XML content in a column called metadata, how do I

  • 0

Specifically, given the following XML content in a column called metadata, how do I retrieve the value of nodes with a specific name attribute?

In this case I’m after the value associated with the int16_t tag and a name of ‘filterIndex’

<root version="1">
  <class derived_type="FilterInfo" name="FilterInfo">
    <string name="filterName" length="3" value="mt8" />
    <string name="filterText" length="3" value="SVR" />
    <string name="filterTable" length="11" value="CML_5_1_mt8" />
    <bool name="userDefined" value="true" />
    <bool name="multiResp" value="false" />
    <enumeration name="filterType" value="1" />
    <enumeration name="filterCategory" value="1" />
    <vector name="options" count="1">
      <class derived_type="OptionInfo" name="V0">
        <int16_t name="optionIndex" value="1" />
        <string name="optionName" length="3" value="mt8" />
        <string name="optionText" length="3" value="SVR" />
        <string name="optionTable" length="11" value="CML_5_1_mt8" />
      </class>
    </vector>
    <GUID name="primaryKey" value="fe66b60f-468a-4f0e-be80-0055e20baa35" />
    <int16_t name="filterIndex" value="1080" />
  </class>
</root>

Thx++

Jerry.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:14:32+00:00Added an answer on May 20, 2026 at 11:14 am

    Something like this??

    SELECT
        metadata.value('(/root/class/int16_t/@value)[1]', 'int') AS 'int16_value'
    FROM
        dbo.YourTable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a tuple (specifically, a functions varargs), I want to prepend a list containing
More specifically, I'm trying to check if given string (a sentence) is in Turkish.
Specifically this is regarding when using a client session cookie to identify a session
Specifically, is the following legal C++? class A{}; void foo(A*); void bar(const A&); int
Specifically what I am looking to do is make the icons for the Nodes
Guys I'm new to xml in Java. I have the following task. I need
Given the following string: var str = one,two,three; If I split the string on
I have polygon chains similar to the following... ...given the chain in the image,
I am trying to create an md5 value in php using the instruction given.
Given the following code: L1 db "word", 0 mov al, [L1] mov eax, L1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.