wood burning stoves 2.0*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Questions regarding name spaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Questions regarding name spaces" Watch "Questions regarding name spaces" New topic
Author

Questions regarding name spaces

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
In many tutorials on the internet, I have read that global elements must be name space qualified.

Here are my questions regarding the global emenets :

  • What is meant by global elements. Are they root elements like <purchaseOrder>
  • If I used a default name space for a global elements, do I have still to qualify the element ??


  • Thanks in advance.


    SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
    Life is the biggest school
    Hany Shafik
    Ranch Hand

    Joined: Jun 21, 2008
    Posts: 80
    Hi Khaled,

    To answer your first questions yes, global elements enables the element to appear at the top-level of an instance document, also global element can be referenced in one or more declarations using the ref attribute. Also in addition to global elements there are global attributes.
    I am not sure about your second question, however I think global element must be qualified either by explicit qualification of the element or implicit qualification provided by a default namespace.
    Gilberto Holms
    Greenhorn

    Joined: Feb 12, 2010
    Posts: 1
    Hello Khaled

    Take a watch on this tutorial:
    http://www.oracle.com/technology/pub/articles/srivastava_namespaces.html

    Its veryy good to understand namespaces.

    Regards !
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Questions regarding name spaces
     
    Similar Threads
    Name space from xslt into transformed xml
    Question on JWebUnit testing
    Need to change the Tag name of Response Tag.
    XML One liners for the exam....
    In the exam