Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How To Perform Binding Using Bind Attribute?

Answer»

We can also perform binding b/w the XForms model and XForms user interface With bind ATTRIBUTE like that,

Example: I have given you XForms model instance:

<model>
<instance>
<PERSON>
<name> <FNAME/>
<mname/>
<lname/>
</name>
</person>
</instance>
<bind nodeset="/person/name/fname" ID="firstname"/>
<bind nodeset="/person/name/mname" id="middlename"/>
<bind nodeset="/person/name/lname" id="LASTNAME"/>
</model> 
Now, Using bind attribute XForms user interface can bind <input> elements like that:

<input bind="firstname">
<label>First Name</label>
</input>
<input bind="middlename">
<label>Middle Name</label>
</input>
<input bind="lastname">
<label>Last Name</label>
</input>
Using binding we can easily deal with multiple instance model and multiple forms.

We can also perform binding b/w the XForms model and XForms user interface With bind attribute like that,

Example: I have given you XForms model instance:

<model>
<instance>
<person>
<name> <fname/>
<mname/>
<lname/>
</name>
</person>
</instance>
<bind nodeset="/person/name/fname" id="firstname"/>
<bind nodeset="/person/name/mname" id="middlename"/>
<bind nodeset="/person/name/lname" id="lastname"/>
</model> 
Now, Using bind attribute XForms user interface can bind <input> elements like that:

<input bind="firstname">
<label>First Name</label>
</input>
<input bind="middlename">
<label>Middle Name</label>
</input>
<input bind="lastname">
<label>Last Name</label>
</input>
Using binding we can easily deal with multiple instance model and multiple forms.

2.

How You Define Input Control?

Answer»

One of the most common XForms control is input control.

Example:

<input ref="name/fname">
<label>First Name</label>
</input>
<input ref="name/mname">
<label>MIDDLE Name</label>
</input>
<input ref="name/lname">
<label>LAST Name</label>
</input>

These input control will DISPLAY LIKE that,

First Name:
Middle Name:
Last Name:

One of the most common XForms control is input control.

Example:

<input ref="name/fname">
<label>First Name</label>
</input>
<input ref="name/mname">
<label>Middle Name</label>
</input>
<input ref="name/lname">
<label>Last Name</label>
</input>

These input control will display like that,

First Name:
Middle Name:
Last Name:

3.

How You Define Controls In Xforms?

Answer»

XForms CONTROLS are also told as USER interface elements we use to control user interface of XForms.
I have given you some main common controls given below:

<input>
<submit>
 a REF attribute is ATTACH with each controls element.That is use to point the XForms DATA model of each control element.

XForms controls are also told as user interface elements we use to control user interface of XForms.
I have given you some main common controls given below:

<input>
<submit>
 a ref attribute is attach with each controls element.That is use to point the XForms data model of each control element.

4.

How You Define Data Types In Xforms?

Answer»
  • XML Schema data type supported by XForms model.
  • XML Schema Data Types: Because XFormes model supports XML Schema data types. Using this feature XForms processor check the data for correct input values.
  • If we want to use XML Schema data types, we must have to use XML Schema namespaces into our namespace declaration,

Example:
<html
XMLNS:xf="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this:

Example:
<xf:instance>
<person xmlns="">
<FNAME xsi:type="xsd:string"/>
<lname xsi:type="xsd:string"/>
<born xsi:type="xsd:date"/>
<size xsi:type="xsd:integer"/>
</person>
</xf:instance>
 I haven GIVEN you a list of XML Schema data types except that XForms uses all XML schema data type.

List of unsupported XML Schema datatype in XForms:

Example:
<html
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this:

Example:
<xf:instance>
<person xmlns="">
<fname xsi:type="xsd:string"/>
<lname xsi:type="xsd:string"/>
<born xsi:type="xsd:date"/>
<size xsi:type="xsd:integer"/>
</person>
</xf:instance>
 I haven given you a list of XML Schema data types except that XForms uses all XML schema data type.

List of unsupported XML Schema datatype in XForms:

5.

Explain About Select Control?

Answer»

Select Control: When we want to select one or more items from list of items we use select control.

Example:

<select ref="languages"&GT;
<label>Languages:</label>
<item>
<label>English</label>
<VALUE>E</value>
</item>
<item>
<label>Hindi</label>
<value>H</value>
</item>
<item>
<label>French</label>
<value>F</value>
</item>
<item>
<label>Spanish</label>
<value>S</value>
</item>
<item>
<label>German</label>
<value>G</value>
</item>
</select>

Now, In the above example USER can select more than LANGUAGE.

Select Control: When we want to select one or more items from list of items we use select control.

Example:

<select ref="languages">
<label>Languages:</label>
<item>
<label>English</label>
<value>E</value>
</item>
<item>
<label>Hindi</label>
<value>H</value>
</item>
<item>
<label>French</label>
<value>F</value>
</item>
<item>
<label>Spanish</label>
<value>S</value>
</item>
<item>
<label>German</label>
<value>G</value>
</item>
</select>

Now, In the above example user can select more than language.

6.

Explain Range Control?

Answer»

RANGE CONTROL: Using Range control we can select a value from a range of VALUES.

EXAMPLE:

<range REF="length" start="0" end="200" step="10">
<label>Length:</label>
</range>
Now, In the above example user can select a value between 0 and 200 in steps of 10.

Range Control: Using Range control we can select a value from a range of values.

Example:

<range ref="length" start="0" end="200" step="10">
<label>Length:</label>
</range>
Now, In the above example user can select a value between 0 and 200 in steps of 10.

7.

How To Perform Selection Control In Xforms?

Answer»

When we want PERFORM control on one or more ITEMS in user INTERFACE of XForms we USE Selection control.

We can perform THREE type of selection control :

  • 1.Select1 Control
  • 2.Select Control
  • 3.Range Control

When we want perform control on one or more items in user interface of XForms we use Selection control.

We can perform three type of selection control :

8.

How To Perform Upload Control?

Answer»

We use upload control perform task to control when we uploaded FILES into server.

<upload bind="NAME">
<LABEL>File is USED to upload:</label>
<FILENAME bind="file"/>
<mediatype bind="media"/>
</upload>

We use upload control perform task to control when we uploaded files into server.

<upload bind="name">
<label>File is used to upload:</label>
<filename bind="file"/>
<mediatype bind="media"/>
</upload>

9.

How To Perform Textarea Control?

Answer»

 Using textarea control we can PERFORM TASK to control multi-line user input.

<textarea REF="message">
<LABEL>Message Box:</label>
</textarea>

 Using textarea control we can perform task to control multi-line user input.

<textarea ref="message">
<label>Message Box:</label>
</textarea>

10.

How To Bind Datatype In Xforms?

Answer»

If you want bind DATA types in XForms than you have to USE <bind> ELEMENT. which is use to bind datatype with their INSTANCE data.

Example:

<XF:bind nodeset="/person/size" type="xsd:integer"/>

If you want bind data types in XForms than you have to use <bind> element. which is use to bind datatype with their instance data.

Example:

<xf:bind nodeset="/person/size" type="xsd:integer"/>

11.

What Is Xforms?

Answer»
  • We can DEFINE XForms as the new GENERATION of HTML forms.
  • In an XForms we USE XML to create input forms on the Web.

12.

How Can You Perform Secret Control?

Answer»

The secret controls are designed to perform some SPECIAL TASK like input passwords or other hidden information.

For Example:
<secret REF="name/password">
<LABEL>PASS:</label>
</secret> 

The secret controls are designed to perform some special task like input passwords or other hidden information.

For Example:
<secret ref="name/password">
<label>Pass:</label>
</secret> 

13.

What Is A &lt;label&gt; Element In Xforms?

Answer»

The <LABEL> ELEMENT is a necessary child element for performing INPUT controls. By using <label> element, we can make FORMS secure anduse in all different types of devices. i.e. Label will be SPOKEN for voice software.

The <label> element is a necessary child element for performing input controls. By using <label> element, we can make forms secure anduse in all different types of devices. i.e. Label will be spoken for voice software.

14.

How Can You Define Controls In Xforms?

Answer»

XForms controls are used to control user INTERFACE of XForms. They are also known as user interface control ELEMENTS.

I have given you some main common controls given below:

<INPUT>
<submit>
A ref attribute is attached with each controls element. That is use to point the XForms data model of each control element.

XForms controls are used to control user interface of XForms. They are also known as user interface control elements.

I have given you some main common controls given below:

<input>
<submit>
A ref attribute is attached with each controls element. That is use to point the XForms data model of each control element.

15.

How Can You Perform Output Control?

Answer»

Output CONTROL is used to control how to display Xform data:

For example:

See an instance of XML document:

&LT;instance&GT;
<person>
<NAME>
<firstname>xxx</firstname>
<middlename>yyy</middlename>
<lastname>zzz</lastname>
</name>
</person>
</instance>

We can perform output control on above XML instance:

<p>First Name: <output REF="name/firstname" /></p>
<p>Middle Name: <output ref="name/middlename" /></p>
<p>Last Name: <output ref="name/lastname" /></p>
Output:
Firse Name:xxx
Middle Name: yyy
Last Name: zzz

Output control is used to control how to display Xform data:

For example:

See an instance of XML document:

<instance>
<person>
<name>
<firstname>xxx</firstname>
<middlename>yyy</middlename>
<lastname>zzz</lastname>
</name>
</person>
</instance>

We can perform output control on above XML instance:

<p>First Name: <output ref="name/firstname" /></p>
<p>Middle Name: <output ref="name/middlename" /></p>
<p>Last Name: <output ref="name/lastname" /></p>
Output:
Firse Name:xxx
Middle Name: yyy
Last Name: zzz

16.

How Can You Perform Upload Control?

Answer»

The upload CONTROL is used to upload files into server.

For example:

&LT;upload BIND="name">
<LABEL>File is used to upload:</label>
<FILENAME bind="file"/>
<mediatype bind="media"/>
</upload>

The upload control is used to upload files into server.

For example:

<upload bind="name">
<label>File is used to upload:</label>
<filename bind="file"/>
<mediatype bind="media"/>
</upload>

17.

How Can You Perform Textarea Control?

Answer»

TEXTAREA control is used to perform task to control multi-line user INPUTS.

<textarea REF="message">
<LABEL>Message Box:</label>
</textarea>

Textarea control is used to perform task to control multi-line user inputs.

<textarea ref="message">
<label>Message Box:</label>
</textarea>

18.

How Can You Bind Data Types In Xforms?

Answer»

The <bind> element is used to bind the data TYPES in XForms. It is used to bind data types with their instance data.

EXAMPLE:

<xf:bind nodeset="/person/size" TYPE="XSD:integer"/>

The <bind> element is used to bind the data types in XForms. It is used to bind data types with their instance data.

Example:

<xf:bind nodeset="/person/size" type="xsd:integer"/>

19.

How Can You Define Data Types In Xforms?

Answer»

XML Schema Data Types: XFORMS model supports XML Schema data types. This feature facilitates XForms processor to check the data for correct input values. 

To use XML Schema data types, you must have to use XML Schema namespaces into our NAMESPACE declaration.

For Example:
<html
xmlns:XF="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this:

For Example:

<xf:instance>
<PERSON xmlns="">
<fname xsi:type="xsd:string"/>
<lname xsi:type="xsd:string"/>
<born xsi:type="xsd:date"/>
<size xsi:type="xsd:integer"/>
</person>
</xf:instance>

There are some UNSUPPORTED XML Schema datatype in XForms:

  • Duration
  • ENTITY
  • ENTITIES
  • NOTATION

XML Schema Data Types: XForms model supports XML Schema data types. This feature facilitates XForms processor to check the data for correct input values. 

To use XML Schema data types, you must have to use XML Schema namespaces into our namespace declaration.

For Example:
<html
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
After using the XML Schema namespaces, we can add type attributes into our XForms instance elements like this:

For Example:

<xf:instance>
<person xmlns="">
<fname xsi:type="xsd:string"/>
<lname xsi:type="xsd:string"/>
<born xsi:type="xsd:date"/>
<size xsi:type="xsd:integer"/>
</person>
</xf:instance>

There are some unsupported XML Schema datatype in XForms:

20.

What Is The Use Of Setvalue Action?

Answer»

Setvalue Action: The &LT;setvalue> ELEMENT in XForms is used to set a value which you WANT to SHOW with response of an event.

For Example:

<input REF="size">
<label>Size</label>
<setvalue value="100" event="xforms-ready"/>
</input>
Note: In the above example, the instance element <size> will store a value 100 when the form opens.

Setvalue Action: The <setvalue> element in XForms is used to set a value which you want to show with response of an event.

For Example:

<input ref="size">
<label>Size</label>
<setvalue value="100" event="xforms-ready"/>
</input>
Note: In the above example, the instance element <size> will store a value 100 when the form opens.

21.

What Is The Use Of Message Action?

Answer»

The <message> element is used in XFORMS to define and display a message into XForms user interface.

For example:

<input ref="FNAME">
<label>First NAME</label>
<message LEVEL="ephemeral" event="DOMFocusIn">
Enter Your First Name
</message>
</input>
Note: In the above example the message "Enter Your First Name" will displayed as a tool tip when user will focus on the input field.

  • The event="DomFocusIn" is use to define the event to trigger that action.
  • The level="ephemeral" is use to define the message that will display as a tool tip.

The <message> element is used in XForms to define and display a message into XForms user interface.

For example:

<input ref="fname">
<label>First Name</label>
<message level="ephemeral" event="DOMFocusIn">
Enter Your First Name
</message>
</input>
Note: In the above example the message "Enter Your First Name" will displayed as a tool tip when user will focus on the input field.

22.

What Is The Use Of Actions In Xforms?

Answer»

ACTIONS are used to HANDLE responses to EVENTS in XForms.

There are TWO types of actions in XForms:

Actions are used to handle responses to events in XForms.

There are two types of actions in XForms:

23.

How You Define Xforms Processor?

Answer»

XForms processor is used inside the browser to submit XForms DATA to the TARGET. See how to submit data into XML:

&LT;PERSON&GT;
<fname>Ajeet</fname>
<mname>Kumar</mname>
<lname>Maurya</lname>
</person>

XForms processor is used inside the browser to submit XForms data to the target. See how to submit data into XML:

<person>
<fname>Ajeet</fname>
<mname>Kumar</mname>
<lname>Maurya</lname>
</person>

24.

How To Define Xforms Framework?

Answer»

The main purpose of XForms is to collect data. INPUT data using XForms can be DESCRIBED into two different parts.

  1. XForm model: XForms model is used to describe the data and the LOGIC. Using XForms, we can define what the form is, what data it contains and what it should do.
  2. XForm user INTERFACE: XForm user interface is used to perform input and OUTPUT task on data. It defines the input fields and how they should be displayed.

The main purpose of XForms is to collect data. Input data using XForms can be described into two different parts.

25.

What Is The Benefit Of Device Independent Feature Of Xforms?

Answer»

Device independent FEATURES of XForms makes you able to add XForms element into other XML application DIRECTLY i.e. WML(WIRELESS Markup Language),VoiceXML etc.

Device independent features of XForms makes you able to add XForms element into other XML application directly i.e. WML(Wireless Markup Language),VoiceXML etc.

26.

How Can You Say That Xforms Is Device Independent?

Answer»
  • XForms is device independent because it is used to separate data from PRESENTATION and makes you able to USE data MODELS for all DEVICES.
  • It facilitates you to customize presentation for different user interface like mobile phones, handheld devices etc.

27.

How Can You Store And Transport Data Using Xforms?

Answer»

We can PERFORM TASK of store and transport data USING XFORMS. Using XForms we can store data or to submit data from the form. We use XML to transfer data over the net.Keep in mind XForms Store and Transform data in the form of UNICODE bytes.

We can perform task of store and transport data using XForms. Using XForms we can store data or to submit data from the form. We use XML to transfer data over the net.Keep in mind XForms Store and Transform data in the form of Unicode bytes.

28.

How Xforms Is Used To Separate Data From Presentation?

Answer»

XForms can be used to perform both tasks to DEFINE data and to display data.

  • To Define Data: XForms USES XML to define data.
  • To Display Data: XForms uses HTML or XHTML to display data.

Using XForms we can SEPARATE data logic of a form from its presentation.

XForms can be used to perform both tasks to define data and to display data.

Using XForms we can separate data logic of a form from its presentation.

29.

How Can You Say That Xforms Is Successor Of Html Forms?

Answer»
  • HTML Forms are used to collect input from web application. HTML Forms is a PART of HTML STANDARD. After collecting the INPUTS the web user try to solve complex transactions but HTML standard does achieve that task.
  • To overcome from this LIMITATION XForms is used. Because using XForms handle a richer, more secure and device independent web input.
  • XForms are supported by all future browsers.

30.

When Xforms 1.0 Become A W3c Recommendation?

Answer»

XForms 1.0 has become W3C recommendation since OCTOBER 2003.

XForms 1.0 has become W3C recommendation since October 2003.

31.

What Are The Most Important Features Of Xforms?

Answer»

A list of most important features of XForms:

  • XForms is USED to generate forms that are much richer and flexible than HTML forms.
  • XForms will act as form standard in XHTML2.0.
  • XForms is platform and device independent.
  • XForms can be used to SEPARATE logic and device from PRESENTATION.
  • XForms can be used to define data of form.
  • XForms can be used to store and transport data into an XML document.
  • XForms can also be used to perform calculation and also to validate our forms.
  • XForms also help us to reduce or eleminate need of scripting.
  • XForms is a W3C Recommendation.

A list of most important features of XForms: