Results 1 to 6 of 6

Thread: What are the XForms and XPath?

  1. #1
    Join Date
    Jun 2009
    Posts
    230

    What are the XForms and XPath?

    Hi friends,
    I am an intermediate programmer and I have done with the C++, C# and the Core Java. Now I want to know about the XForms and the XPath. I have never heard this before in any programming language. So thought that posting here would be useful since you give the proper explanation for the queries. So please explain me what are the XForms and XPath? Need help as soon as possible.!!

  2. #2
    Join Date
    Aug 2006
    Posts
    227

    Re: What are the XForms and XPath?

    XForms : The two sections are used by the XForms to define data, which are :
    1. XForms model
    2. XForms user interface

    You can say that the XForms model is an XML template which is used for the data.
    XPath : XPath uses path expressions to identify nodes in an XML document. These path expressions look much like the expressions you see when you work with a computer file system.
    I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.

  3. #3
    Join Date
    Jul 2006
    Posts
    286

    Re: What are the XForms and XPath?

    When you use the XPath in the XForms, it usually contains a context node. Due to which the number of steps needed in the path expression are decreased. For example, if the instance data is a simple XHTML document :
    HTML Code:
    <html:html xmlns:html="http://www.techarena.in/2007/html">
      <html:head>
        <html:title>Global Warming Guidelines</html:title>
      </html:head>
      <html:body>
        <html:p>Save the Trees</html:p>
      </html:body>
    </html:html>
    the default context node is the element node named html:html.
    IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the XForms and XPath?

    You should keep in mind that you can change the default context node. Any element containing a binding expressions resets the context node for any child elements. XForms adopts the familiar XPath expression language. XPath was designed to be extensible both by users and implementers. Binding expressions include the ref attribute possibly with the model attribute, or alternatively the bind attribute. Languages such as XSLT, XQuery, XML Pointer Language (XPointer), XML Signature, and XForms that adopt the XPath expression language are expected to expand on this basic set with additional functions.

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What are the XForms and XPath?

    XPath which is the XML Path Language can be said as query language for selecting nodes from an XML document. Within the markup for the XForms Model, there are a few things to be aware of regarding context nodes used for XPath expressions on the <bind> element. XPath may be used to compute values from the content of an XML document. You can also say that the XPath language is based on a tree representation of the XML document, and provides the ability to navigate around the tree, selecting nodes by a variety of criteria. The nodeset attribute on this element selects an XPath node-set, applying certain properties such as calculate to each node.

  6. #6
    Join Date
    Nov 2008
    Posts
    996

    Re: What are the XForms and XPath?

    The following is an XHTML document containing a simple XForm, which would be very useful for you to understand the concepts :
    HTML Code:
    <html xmlns="URL goes here" 
        xmlns:xforms="URL / xforms">
       <head>
        <title>Date and Time</title>
        <xforms:model>
         <xforms:instance xmlns="">
          <Name/>
         </xforms:instance>
        </xforms:model>
       </head>
       <body>
        <h1>
          <xforms:output value="now()">
            <xforms:label>The time is now: </xforms:label>
          </xforms:output>
        </h1>
       </body>
    </html>

Similar Threads

  1. How to Manipulate XML with XPath in VBScript
    By Zavier in forum Software Development
    Replies: 4
    Last Post: 18-04-2010, 03:05 AM
  2. What are the Properties of XForms?
    By Rob Dizzle in forum Software Development
    Replies: 4
    Last Post: 03-03-2010, 06:59 AM
  3. How to use XForms in PHP?
    By Xylina in forum Software Development
    Replies: 4
    Last Post: 03-03-2010, 02:43 AM
  4. What is XPath
    By Eleeazar in forum Software Development
    Replies: 3
    Last Post: 21-11-2009, 05:30 AM
  5. Problem with inline elements in XPath
    By Solitario in forum Software Development
    Replies: 2
    Last Post: 25-10-2008, 05:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,852,967.37337 seconds with 17 queries