wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Why would an XML document have a targetnamespace attribute set? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Why would an XML document have a targetnamespace attribute set?" Watch "Why would an XML document have a targetnamespace attribute set?" New topic
Author

Why would an XML document have a targetnamespace attribute set?

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,

I have an xml document, namely a WSDL file and I am trying to understand why the "definitions" element have "targetNamespace" attribute set??? I thought this attribute was only for schemas. Is this not confusing? Is this legal? Why wsdl files don't have a schema to validate themselves from?

Here is my document:


Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Duplicate post
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why would an XML document have a targetnamespace attribute set?