I have a following xml content:
<?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Demo12</h:title>
<model>
<instance>
<uploaded_form_bpdwls id="Demo12">
<formhub>
<uuid/>
</formhub>
<Household_Number/>
<Survey_Name/>
<start/>
<end/>
<meta>
<instanceID/>
</meta>
</uploaded_form_bpdwls>
</instance>
</model>
</h:head>
<h:body>
<input ref="/uploaded_form_bpdwls/Household_Number">
<label>Household Number</label>
</input>
<input ref="/uploaded_form_bpdwls/Survey_Name">
<label>Survey Name</label>
</input>
</h:body>
</h:html>
In above XML content,
inside body, there are two input tags with different attributes (i.e. @ref="/uploaded_form_bpdwls/Household_Number).
I am trying to select data in table format through postgresSQL. I want "House Hold" and "Survey Name" as separate columns.
I don't have an idea how to select data using attribute of tags.
Is it possible to select data under separate columns
What should be the select query to achieve this?