File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Questions regarding name spaces" Watch "Questions regarding name spaces" New topic

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.

    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

    Joined: Feb 12, 2010
    Posts: 1
    Hello Khaled

    Take a watch on this tutorial:

    Its veryy good to understand namespaces.

    Regards !
    It is sorta covered in the JavaRanch Style Guide.
    subject: Questions regarding name spaces
    It's not a secret anymore!