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 7031205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:46:20+00:00 2026-05-28T00:46:20+00:00

Here is an example of the XML I’m trying to get some values from:

  • 0

Here is an example of the XML I’m trying to get some values from:

<ows:Operation name="DescribeFeatureType">
    <ows:Parameter name="outputFormat">
        <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
    </ows:Parameter>
</ows:Operation>
<ows:Operation name="GetFeature">
    <ows:Parameter name="resultType">
        <ows:Value>results</ows:Value>
        <ows:Value>hits</ows:Value>
    </ows:Parameter>
    <ows:Parameter name="outputFormat">
        <ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
        <ows:Value>GML2</ows:Value>
        <ows:Value>GML2-GZIP</ows:Value>
        <ows:Value>SHAPE-ZIP</ows:Value>
        <ows:Value>csv</ows:Value>
        <ows:Value>gml3</ows:Value>
        <ows:Value>gml32</ows:Value>
        <ows:Value>json</ows:Value>
        <ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
        <ows:Value>text/xml; subtype=gml/3.2</ows:Value>
    </ows:Parameter>
</ows:Operation>

I want to access the “outputFormat” parameter values for operation “GetFeature” using XMLTABLE in Oracle 10GR2.

I’ve tried various things but they either gave me no results or all. Here is an example that returns all values.

select t.*
        from xmltable(xmlnamespaces(default 'http://www.opengis.net/wfs'
                                   ,'http://www.opengis.net/gml' as "gml"
                                    ,'http://www.opengis.net/wfs' as "wfs"
                                    ,'http://www.opengis.net/ows' as "ows"
                                    ,'http://www.w3.org/1999/xlink' as "xlink"
                                    ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi"
                                    ,'http://www.opengis.net/ogc' as "ogc")
                      ,'for $d in //ows:Operation/ows:Parameter/ows:Value
                        where //ows:Operation/@name = "GetFeature"
                        and //ows:Parameter/@name="outputFormat"
                        return $d' passing p_xml columns value varchar2(100) path '/') as t

Any help is much appreciated.

  • 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-28T00:46:21+00:00Added an answer on May 28, 2026 at 12:46 am

    Found an answer:

    select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wfs'
                                       ,'http://www.opengis.net/gml' as "gml"
                                        ,'http://www.opengis.net/wfs' as "wfs"
                                        ,'http://www.opengis.net/ows' as "ows"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi"
                                        ,'http://www.opengis.net/ogc' as "ogc")
                          ,'for $d in //ows:Operation/ows:Parameter/ows:Value
                            where $d/../../@name = "GetFeature"
                            and $d/../@name="outputFormat"
                            return $d' passing p_xml columns value varchar2(100) path '/') as t;
    

    using .. xpath expression to access the parent nodes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to read attributes from an XML stream. Here is an example
Why is twitter double encoding XML entity references? Here's an example tweet: xml entity
Here is an example of polymorphism from http://www.cplusplus.com/doc/tutorial/polymorphism.html (edited for readability): // abstract base
Here is an example XML (case 1) : <root> <Item> <ItemID>4504216603</ItemID> <ListingDetails> <StartTime>10:00:10.000Z</StartTime> <EndTime>10:00:30.000Z</EndTime>
I'm trying to parse a web service response using SAXParser and get certain values,
Here's an example of an XML file created in InfoPath: <?xml version=1.0 encoding=UTF-8?> <?mso-infoPathSolution
I'm calling the Bing Maps Service to return some XML here: http://dev.virtualearth.net/REST/v1/Locations/Encoded_Address?o=xml&key=Maps_Key For the
I'm trying to get more into LINQ-to-XML, so I've made myself a neat little
Here's my example XML. How can I group these Department elements using LINQ to
in my XML I have some child elements with the same name as the

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.