Retrieving XML Resources
See Also
You can use a wizard to retrieve external schema files into your IDE project.
To retrieve XML resources:
- In the IDE, create a new project or use an existing project.
- If the Output window is not visible, choose Window > Output.
When the IDE retrieves the resources, informational messages appear in the Output window.
- In the Projects window, right-click the project node and choose New > File/Folder from the pop-up menu.
- In the New File dialog box, under Categories, select the XML node, and in the File Types list, select External XML Schema Document.
- Click Next.
The New Retrieve Documents page opens.
- Do one of the following:
- To retrieve a schema file from a running web service, select the From URL radio button and specify the location of the file on the web.
- To add a schema file stored in your local filesystem, select the From Local File System radio button and use the Browse button to navigate to and select the folder where the file resides on your local hard drive.
Note that you must select the folder, not the file. If the folder contains several .xsd files, the IDE adds them all to your project.
- (Optional) Change the target location in the Save to Folder field for the retrieved resource.
- To overwrite files with the same name in your project, select the Overwrite files with same name checkbox.
- Click Finish.
Notice the information that appears in the Output window. The IDE shows which files are being copied to project folders and if there are any errors, they appear in the Output window. Expand the Source Packages node of your project to see information about the schema file that you retrieved into your IDE project.
- If you added import or include statements using the Source view, or if you copied files with URL references into your project, the referenced schema may only be accessible through a URL. In this case, your project may not contain the true closure of all the documents. When the schemas are referenced, the IDE will perform the same logic that is used when retrieving XML resources using the External XML Schema Document wizard and transparently fetch the documents and store them in a non-version controlled area. This may cause a delay the first time these documents are accessed on your machine, because the referenced documents are not local. Subsequent accesses will be faster. If the URL points to an Internet resource, you may need to set up the correct proxy information in the IDE to ensure that the retriever process completes successfully (Tools > Options > General > Proxy).
- See Also
- New Retrieve Documents Wizard
- Referencing External Schemas
- About XML Schema Tools
Legal Notices